-
Notifications
You must be signed in to change notification settings - Fork 659
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renames connections to financial connections. (#4887)
* Renames connections module and package. * Renames classes to FinancialConnections. * Reverts docs changes. * Renames testable modules and codeowners. * Renames missing connections occurences. * Renames proxy on payments. * Static analysis and api dump.
- Loading branch information
1 parent
a2a3633
commit c20ae87
Showing
81 changed files
with
1,536 additions
and
1,515 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
connections/src/main/java/com/stripe/android/connections/ConnectionsSheetLauncher.kt
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
connections/src/main/java/com/stripe/android/connections/ConnectionsSheetResultCallback.kt
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
connections/src/main/java/com/stripe/android/connections/DefaultConnectionsSheetLauncher.kt
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
...ctions/src/main/java/com/stripe/android/connections/analytics/ConnectionsEventReporter.kt
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
connections/src/test/java/com/stripe/android/connections/ConnectionsSheetTest.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
.../java/com/stripe/android/financialconnections/DefaultFinancialConnectionsSheetLauncher.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.stripe.android.financialconnections | ||
|
||
import androidx.activity.ComponentActivity | ||
import androidx.activity.result.ActivityResultLauncher | ||
import androidx.fragment.app.Fragment | ||
|
||
internal class DefaultFinancialConnectionsSheetLauncher( | ||
private val activityResultLauncher: ActivityResultLauncher<FinancialConnectionsSheetContract.Args> | ||
) : FinancialConnectionsSheetLauncher { | ||
|
||
constructor( | ||
activity: ComponentActivity, | ||
callback: FinancialConnectionsSheetResultCallback | ||
) : this( | ||
activity.registerForActivityResult( | ||
FinancialConnectionsSheetContract() | ||
) { | ||
callback.onFinancialConnectionsSheetResult(it) | ||
} | ||
) | ||
|
||
constructor( | ||
fragment: Fragment, | ||
callback: FinancialConnectionsSheetResultCallback | ||
) : this( | ||
fragment.registerForActivityResult( | ||
FinancialConnectionsSheetContract() | ||
) { | ||
callback.onFinancialConnectionsSheetResult(it) | ||
} | ||
) | ||
|
||
override fun present(configuration: FinancialConnectionsSheet.Configuration) { | ||
activityResultLauncher.launch( | ||
FinancialConnectionsSheetContract.Args( | ||
configuration, | ||
) | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.