-
Notifications
You must be signed in to change notification settings - Fork 649
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move confirmation injection to a separate module (#9636)
- Loading branch information
1 parent
bb348ae
commit 29ba1ce
Showing
16 changed files
with
85 additions
and
106 deletions.
There are no files selected for viewing
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 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
11 changes: 11 additions & 0 deletions
11
...eet/src/main/java/com/stripe/android/paymentelement/confirmation/ConfirmationConstants.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,11 @@ | ||
package com.stripe.android.paymentelement.confirmation | ||
|
||
/** | ||
* Whether the integration allows for manual confirmation | ||
*/ | ||
internal const val ALLOWS_MANUAL_CONFIRMATION = "ALLOWS_MANUAL_CONFIRMATION" | ||
|
||
/** | ||
* Color of the status bar on the user's device | ||
*/ | ||
internal const val STATUS_BAR_COLOR_PROVIDER = "STATUS_BAR_COLOR_PROVIDER" |
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
26 changes: 26 additions & 0 deletions
26
...tsheet/src/main/java/com/stripe/android/paymentelement/confirmation/ConfirmationModule.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,26 @@ | ||
package com.stripe.android.paymentelement.confirmation | ||
|
||
import com.stripe.android.paymentsheet.paymentdatacollection.bacs.BacsMandateConfirmationLauncherFactory | ||
import com.stripe.android.paymentsheet.paymentdatacollection.bacs.DefaultBacsMandateConfirmationLauncherFactory | ||
import dagger.Binds | ||
import dagger.Module | ||
import dagger.Provides | ||
|
||
@Module | ||
internal interface ConfirmationModule { | ||
@Binds | ||
fun bindsConfirmationHandlerFactory( | ||
defaultConfirmationHandlerFactory: DefaultConfirmationHandler.Factory | ||
): ConfirmationHandler.Factory | ||
|
||
@Binds | ||
fun bindsIntentConfirmationInterceptor( | ||
defaultConfirmationHandlerFactory: DefaultIntentConfirmationInterceptor | ||
): IntentConfirmationInterceptor | ||
|
||
companion object { | ||
@Provides | ||
fun providesBacsMandateConfirmationLauncherFactory(): BacsMandateConfirmationLauncherFactory = | ||
DefaultBacsMandateConfirmationLauncherFactory | ||
} | ||
} |
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 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 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
6 changes: 0 additions & 6 deletions
6
paymentsheet/src/main/java/com/stripe/android/paymentsheet/injection/NamedConstants.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
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.