@stripe/stripe-react-native 0.64.0 → 0.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/.idea/AndroidProjectSystem.xml +6 -0
- package/android/.idea/caches/deviceStreaming.xml +835 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +17 -0
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +10 -0
- package/android/.idea/runConfigurations.xml +17 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/build.gradle +2 -2
- package/android/detekt/detekt-baseline.xml +146 -0
- package/android/detekt/detekt.gradle +45 -0
- package/android/detekt/detekt.yml +722 -0
- package/android/gradle.properties +1 -1
- package/android/local.properties +8 -0
- package/android/src/main/java/com/reactnativestripesdk/PaymentLauncherManager.kt +0 -1
- package/android/src/main/java/com/reactnativestripesdk/PaymentMethodMessagingElementConfig.kt +2 -3
- package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +76 -4
- package/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt +0 -4
- package/android/src/oldarch/java/com/reactnativestripesdk/NativeStripeSdkModuleSpec.java +36 -0
- package/android/src/test/java/com/reactnativestripesdk/PaymentMethodMessagingElementConfigTest.kt +3 -3
- package/ios/Mappers.swift +0 -5
- package/ios/PaymentMethodMessagingElementConfig.swift +6 -3
- package/ios/PaymentMethodMessagingElementView.swift +19 -0
- package/ios/StripeSdkImpl.swift +0 -92
- package/jest/mock.js +1 -0
- package/lib/commonjs/components/AddToWalletButton.js +1 -1
- package/lib/commonjs/components/AddToWalletButton.js.map +1 -1
- package/lib/commonjs/components/AddressSheet.js +1 -1
- package/lib/commonjs/components/AddressSheet.js.map +1 -1
- package/lib/commonjs/components/AuBECSDebitForm.js +1 -1
- package/lib/commonjs/components/AuBECSDebitForm.js.map +1 -1
- package/lib/commonjs/components/CardField.js +1 -1
- package/lib/commonjs/components/CardField.js.map +1 -1
- package/lib/commonjs/components/CardForm.js +1 -1
- package/lib/commonjs/components/CardForm.js.map +1 -1
- package/lib/commonjs/components/PaymentMethodMessagingElement.js +2 -0
- package/lib/commonjs/components/PaymentMethodMessagingElement.js.map +1 -0
- package/lib/commonjs/components/PlatformPayButton.js +1 -1
- package/lib/commonjs/components/PlatformPayButton.js.map +1 -1
- package/lib/commonjs/components/StripeContainer.js +1 -1
- package/lib/commonjs/components/StripeContainer.js.map +1 -1
- package/lib/commonjs/connect/Components.js +1 -1
- package/lib/commonjs/connect/Components.js.map +1 -1
- package/lib/commonjs/connect/ConnectComponentsProvider.js +1 -1
- package/lib/commonjs/connect/ConnectComponentsProvider.js.map +1 -1
- package/lib/commonjs/connect/EmbeddedComponent.js +1 -1
- package/lib/commonjs/connect/EmbeddedComponent.js.map +1 -1
- package/lib/commonjs/connect/ModalCloseButton.js +1 -1
- package/lib/commonjs/connect/ModalCloseButton.js.map +1 -1
- package/lib/commonjs/connect/NavigationBar.js +1 -1
- package/lib/commonjs/connect/NavigationBar.js.map +1 -1
- package/lib/commonjs/helpers.js +1 -1
- package/lib/commonjs/hooks/useCheckout.js +2 -0
- package/lib/commonjs/hooks/useCheckout.js.map +1 -0
- package/lib/commonjs/hooks/useOnramp.js +1 -1
- package/lib/commonjs/hooks/useOnramp.js.map +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/specs/NativeAddToWalletButton.js +1 -1
- package/lib/commonjs/specs/NativeAddressSheet.js +1 -1
- package/lib/commonjs/specs/NativeApplePayButton.js +1 -1
- package/lib/commonjs/specs/NativeAuBECSDebitForm.js +1 -1
- package/lib/commonjs/specs/NativeCardField.js +1 -1
- package/lib/commonjs/specs/NativeCardField.js.map +1 -1
- package/lib/commonjs/specs/NativeCardForm.js +1 -1
- package/lib/commonjs/specs/NativeCardForm.js.map +1 -1
- package/lib/commonjs/specs/NativeConnectAccountOnboardingView.js +1 -1
- package/lib/commonjs/specs/NativeEmbeddedPaymentElement.js +1 -1
- package/lib/commonjs/specs/NativeEmbeddedPaymentElement.js.map +1 -1
- package/lib/commonjs/specs/NativeGooglePayButton.js +1 -1
- package/lib/commonjs/specs/NativeNavigationBar.js +1 -1
- package/lib/commonjs/specs/NativePaymentMethodMessagingElement.js +1 -1
- package/lib/commonjs/specs/NativePaymentMethodMessagingElement.js.map +1 -1
- package/lib/commonjs/specs/NativeStripeContainer.js +1 -1
- package/lib/commonjs/specs/NativeStripeSdkModule.js.map +1 -1
- package/lib/commonjs/types/Checkout.js +2 -0
- package/lib/commonjs/types/Checkout.js.map +1 -0
- package/lib/commonjs/types/EmbeddedPaymentElement.js +1 -1
- package/lib/commonjs/types/EmbeddedPaymentElement.js.map +1 -1
- package/lib/commonjs/types/PaymentSheet.js.map +1 -1
- package/lib/module/components/AddToWalletButton.js +1 -1
- package/lib/module/components/AddToWalletButton.js.map +1 -1
- package/lib/module/components/AddressSheet.js +1 -1
- package/lib/module/components/AddressSheet.js.map +1 -1
- package/lib/module/components/AuBECSDebitForm.js +1 -1
- package/lib/module/components/AuBECSDebitForm.js.map +1 -1
- package/lib/module/components/CardField.js +1 -1
- package/lib/module/components/CardField.js.map +1 -1
- package/lib/module/components/CardForm.js +1 -1
- package/lib/module/components/CardForm.js.map +1 -1
- package/lib/module/components/PaymentMethodMessagingElement.js +2 -0
- package/lib/module/components/PaymentMethodMessagingElement.js.map +1 -0
- package/lib/module/components/PlatformPayButton.js +1 -1
- package/lib/module/components/PlatformPayButton.js.map +1 -1
- package/lib/module/components/StripeContainer.js +1 -1
- package/lib/module/components/StripeContainer.js.map +1 -1
- package/lib/module/connect/Components.js +1 -1
- package/lib/module/connect/Components.js.map +1 -1
- package/lib/module/connect/ConnectComponentsProvider.js +1 -1
- package/lib/module/connect/ConnectComponentsProvider.js.map +1 -1
- package/lib/module/connect/EmbeddedComponent.js +1 -1
- package/lib/module/connect/EmbeddedComponent.js.map +1 -1
- package/lib/module/connect/ModalCloseButton.js +1 -1
- package/lib/module/connect/ModalCloseButton.js.map +1 -1
- package/lib/module/connect/NavigationBar.js +1 -1
- package/lib/module/connect/NavigationBar.js.map +1 -1
- package/lib/module/helpers.js +1 -1
- package/lib/module/hooks/useCheckout.js +2 -0
- package/lib/module/hooks/useCheckout.js.map +1 -0
- package/lib/module/hooks/useOnramp.js +1 -1
- package/lib/module/hooks/useOnramp.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/specs/NativeAddToWalletButton.js +1 -1
- package/lib/module/specs/NativeAddressSheet.js +1 -1
- package/lib/module/specs/NativeApplePayButton.js +1 -1
- package/lib/module/specs/NativeAuBECSDebitForm.js +1 -1
- package/lib/module/specs/NativeCardField.js +1 -1
- package/lib/module/specs/NativeCardField.js.map +1 -1
- package/lib/module/specs/NativeCardForm.js +1 -1
- package/lib/module/specs/NativeCardForm.js.map +1 -1
- package/lib/module/specs/NativeConnectAccountOnboardingView.js +1 -1
- package/lib/module/specs/NativeEmbeddedPaymentElement.js +1 -1
- package/lib/module/specs/NativeEmbeddedPaymentElement.js.map +1 -1
- package/lib/module/specs/NativeGooglePayButton.js +1 -1
- package/lib/module/specs/NativeNavigationBar.js +1 -1
- package/lib/module/specs/NativePaymentMethodMessagingElement.js +1 -1
- package/lib/module/specs/NativePaymentMethodMessagingElement.js.map +1 -1
- package/lib/module/specs/NativeStripeContainer.js +1 -1
- package/lib/module/specs/NativeStripeSdkModule.js.map +1 -1
- package/lib/module/types/Checkout.js +2 -0
- package/lib/module/types/Checkout.js.map +1 -0
- package/lib/module/types/EmbeddedPaymentElement.js +1 -1
- package/lib/module/types/EmbeddedPaymentElement.js.map +1 -1
- package/lib/module/types/PaymentSheet.js.map +1 -1
- package/lib/typescript/src/components/PaymentMethodMessagingElement.d.ts +41 -0
- package/lib/typescript/src/components/PaymentMethodMessagingElement.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCheckout.d.ts +21 -0
- package/lib/typescript/src/hooks/useCheckout.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useOnramp.d.ts +1 -0
- package/lib/typescript/src/hooks/useOnramp.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativePaymentMethodMessagingElement.d.ts +1 -6
- package/lib/typescript/src/specs/NativePaymentMethodMessagingElement.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeStripeSdkModule.d.ts +13 -0
- package/lib/typescript/src/specs/NativeStripeSdkModule.d.ts.map +1 -1
- package/lib/typescript/src/types/Checkout.d.ts +336 -0
- package/lib/typescript/src/types/Checkout.d.ts.map +1 -0
- package/lib/typescript/src/types/PaymentMethod.d.ts +1 -5
- package/lib/typescript/src/types/PaymentMethod.d.ts.map +1 -1
- package/lib/typescript/src/types/PaymentSheet.d.ts +22 -6
- package/lib/typescript/src/types/PaymentSheet.d.ts.map +1 -1
- package/lib/typescript/src/types/components/PaymentMethodMessagingElementComponent.d.ts +16 -1
- package/lib/typescript/src/types/components/PaymentMethodMessagingElementComponent.d.ts.map +1 -1
- package/package.json +8 -5
- package/src/components/PaymentMethodMessagingElement.tsx +109 -0
- package/src/hooks/useCheckout.tsx +168 -0
- package/src/hooks/useOnramp.tsx +9 -3
- package/src/index.tsx +4 -0
- package/src/specs/NativePaymentMethodMessagingElement.ts +0 -7
- package/src/specs/NativeStripeSdkModule.ts +50 -0
- package/src/types/Checkout.ts +377 -0
- package/src/types/PaymentMethod.ts +0 -6
- package/src/types/PaymentSheet.ts +29 -6
- package/src/types/components/PaymentMethodMessagingElementComponent.tsx +17 -1
- package/stripe-react-native.podspec +8 -8
- package/android/spotless.gradle +0 -19
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="GradleSettings">
|
|
4
|
+
<option name="linkedExternalProjectsSettings">
|
|
5
|
+
<GradleProjectSettings>
|
|
6
|
+
<option name="testRunner" value="CHOOSE_PER_TEST" />
|
|
7
|
+
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
8
|
+
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
|
9
|
+
<option name="modules">
|
|
10
|
+
<set>
|
|
11
|
+
<option value="$PROJECT_DIR$" />
|
|
12
|
+
</set>
|
|
13
|
+
</option>
|
|
14
|
+
</GradleProjectSettings>
|
|
15
|
+
</option>
|
|
16
|
+
</component>
|
|
17
|
+
</project>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
4
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" project-jdk-name="jbr-21" project-jdk-type="JavaSDK">
|
|
5
|
+
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
6
|
+
</component>
|
|
7
|
+
<component name="ProjectType">
|
|
8
|
+
<option name="id" value="Android" />
|
|
9
|
+
</component>
|
|
10
|
+
</project>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="RunConfigurationProducerService">
|
|
4
|
+
<option name="ignoredProducers">
|
|
5
|
+
<set>
|
|
6
|
+
<option value="com.intellij.execution.junit.AbstractAllInDirectoryConfigurationProducer" />
|
|
7
|
+
<option value="com.intellij.execution.junit.AllInPackageConfigurationProducer" />
|
|
8
|
+
<option value="com.intellij.execution.junit.PatternConfigurationProducer" />
|
|
9
|
+
<option value="com.intellij.execution.junit.TestInClassConfigurationProducer" />
|
|
10
|
+
<option value="com.intellij.execution.junit.UniqueIdConfigurationProducer" />
|
|
11
|
+
<option value="com.intellij.execution.junit.testDiscovery.JUnitTestDiscoveryConfigurationProducer" />
|
|
12
|
+
<option value="org.jetbrains.kotlin.idea.junit.KotlinJUnitRunConfigurationProducer" />
|
|
13
|
+
<option value="org.jetbrains.kotlin.idea.junit.KotlinPatternConfigurationProducer" />
|
|
14
|
+
</set>
|
|
15
|
+
</option>
|
|
16
|
+
</component>
|
|
17
|
+
</project>
|
package/android/build.gradle
CHANGED
|
@@ -15,7 +15,7 @@ buildscript {
|
|
|
15
15
|
classpath "com.android.tools.build:gradle:7.2.2"
|
|
16
16
|
// noinspection DifferentKotlinGradleVersion
|
|
17
17
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
|
18
|
-
classpath "
|
|
18
|
+
classpath "dev.detekt:detekt-gradle-plugin:2.0.0-alpha.2"
|
|
19
19
|
// only use this old compose-compiler plugin when Kotlin >= 2.0
|
|
20
20
|
if (kotlinMajor >= 2) {
|
|
21
21
|
classpath "org.jetbrains.kotlin:compose-compiler-gradle-plugin:$kotlinVersion"
|
|
@@ -24,7 +24,7 @@ buildscript {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
if (project == rootProject) {
|
|
27
|
-
apply from: "
|
|
27
|
+
apply from: "detekt/detekt.gradle"
|
|
28
28
|
return
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
|
2
|
+
<SmellBaseline>
|
|
3
|
+
<ManuallySuppressedIssues/>
|
|
4
|
+
<CurrentIssues>
|
|
5
|
+
<ID>CyclomaticComplexMethod:CardFieldView.kt:CardFieldView$fun setCardStyle</ID>
|
|
6
|
+
<ID>CyclomaticComplexMethod:CardFormView.kt:CardFormView$@SuppressLint("RestrictedApi", "VisibleForTests") fun setCardStyle</ID>
|
|
7
|
+
<ID>CyclomaticComplexMethod:EmbeddedPaymentElementView.kt:EmbeddedPaymentElementView$@SuppressLint("RestrictedApi") @Composable override fun Content</ID>
|
|
8
|
+
<ID>CyclomaticComplexMethod:Mappers.kt:@SuppressLint("RestrictedApi") internal fun mapNextAction: WritableMap?</ID>
|
|
9
|
+
<ID>CyclomaticComplexMethod:Mappers.kt:fun mapToUICustomization: PaymentAuthConfig.Stripe3ds2UiCustomization</ID>
|
|
10
|
+
<ID>CyclomaticComplexMethod:Mappers.kt:internal fun mapPaymentMethodType: String</ID>
|
|
11
|
+
<ID>CyclomaticComplexMethod:Mappers.kt:internal fun mapToPaymentMethodType: PaymentMethod.Type?</ID>
|
|
12
|
+
<ID>CyclomaticComplexMethod:PaymentMethodCreateParamsFactory.kt:PaymentMethodCreateParamsFactory$@Throws(PaymentMethodCreateParamsException::class) fun createPaymentMethodParams: PaymentMethodCreateParams</ID>
|
|
13
|
+
<ID>CyclomaticComplexMethod:PaymentSheetAppearance.kt:@SuppressLint("RestrictedApi") @Throws(PaymentSheetAppearanceException::class) private fun buildEmbeddedAppearance: PaymentSheet.Appearance.Embedded</ID>
|
|
14
|
+
<ID>EmptyFunctionBlock:CardFieldView.kt:CardFieldView.<no name provided>${ }</ID>
|
|
15
|
+
<ID>EmptyFunctionBlock:CardFieldView.kt:CardFieldView.<no name provided>${}</ID>
|
|
16
|
+
<ID>EmptyFunctionBlock:CustomerSheetManager.kt:CustomerSheetManager.<no name provided>${ }</ID>
|
|
17
|
+
<ID>EmptyFunctionBlock:CustomerSheetManager.kt:CustomerSheetManager.<no name provided>${}</ID>
|
|
18
|
+
<ID>EmptyFunctionBlock:DrawableLoadingTest.kt:DrawableLoadingTest.MockAsyncDrawable${}</ID>
|
|
19
|
+
<ID>EmptyFunctionBlock:PaymentSheetManager.kt:<no name provided>${}</ID>
|
|
20
|
+
<ID>EmptyFunctionBlock:PaymentSheetManager.kt:PaymentSheetManager.<no name provided>${ }</ID>
|
|
21
|
+
<ID>EmptyFunctionBlock:PaymentSheetManager.kt:PaymentSheetManager.<no name provided>${}</ID>
|
|
22
|
+
<ID>EmptyFunctionBlock:StripeAbstractComposeView.kt:StripeAbstractComposeView.CompatView${ }</ID>
|
|
23
|
+
<ID>EmptyFunctionBlock:StripeSdkModule.kt:StripeSdkModule.<no name provided>${}</ID>
|
|
24
|
+
<ID>ForbiddenComment:Mappers.kt:// TODO: Can't access, private</ID>
|
|
25
|
+
<ID>ForbiddenComment:PaymentSheetAppearance.kt:// TODO: The theme is so crazy long, why does each Color thing has the same redundant Theme...</ID>
|
|
26
|
+
<ID>ForbiddenComment:PaymentSheetAppearance.kt:// TODO: Why is background a string but successBackgroundColor a "dynamic" color?</ID>
|
|
27
|
+
<ID>ForbiddenComment:StripeSdkModule.kt:StripeSdkModule$// TODO:</ID>
|
|
28
|
+
<ID>ForbiddenComment:StripeSdkModule.kt:StripeSdkModule$// TODO: Uncomment when WeChat is re-enabled in stripe-ios</ID>
|
|
29
|
+
<ID>LargeClass:PaymentElementConfigTest.kt:PaymentElementConfigTest</ID>
|
|
30
|
+
<ID>LargeClass:PaymentSheetAppearanceTest.kt:PaymentSheetAppearanceTest</ID>
|
|
31
|
+
<ID>LargeClass:StripeSdkModule.kt:StripeSdkModule : NativeStripeSdkModuleSpec</ID>
|
|
32
|
+
<ID>LongMethod:CardFieldView.kt:CardFieldView$fun setCardStyle</ID>
|
|
33
|
+
<ID>LongMethod:CardFieldView.kt:CardFieldView$private fun setListeners</ID>
|
|
34
|
+
<ID>LongMethod:CardFormView.kt:CardFormView$@SuppressLint("RestrictedApi", "VisibleForTests") fun setCardStyle</ID>
|
|
35
|
+
<ID>LongMethod:CardFormView.kt:CardFormView$private fun setListeners</ID>
|
|
36
|
+
<ID>LongMethod:CustomerSheetManager.kt:CustomerSheetManager$override fun onCreate</ID>
|
|
37
|
+
<ID>LongMethod:EmbeddedPaymentElementView.kt:EmbeddedPaymentElementView$@SuppressLint("RestrictedApi") @Composable override fun Content</ID>
|
|
38
|
+
<ID>LongMethod:EmbeddedPaymentElementViewManager.kt:EmbeddedPaymentElementViewManager$@SuppressLint("RestrictedApi") @OptIn( ExperimentalAllowsRemovalOfLastSavedPaymentMethodApi::class, CardFundingFilteringPrivatePreview::class, ) private fun parseElementConfiguration: EmbeddedPaymentElement.Configuration</ID>
|
|
39
|
+
<ID>LongMethod:Mappers.kt:@SuppressLint("RestrictedApi") internal fun mapNextAction: WritableMap?</ID>
|
|
40
|
+
<ID>LongMethod:Mappers.kt:fun mapToUICustomization: PaymentAuthConfig.Stripe3ds2UiCustomization</ID>
|
|
41
|
+
<ID>LongMethod:Mappers.kt:internal fun mapFromPaymentMethod: WritableMap</ID>
|
|
42
|
+
<ID>LongMethod:PaymentOptionDisplayDataMapper.kt:fun AnnotatedString.toHtmlString: String</ID>
|
|
43
|
+
<ID>LongMethod:PaymentSheetAppearance.kt:@SuppressLint("RestrictedApi") @Throws(PaymentSheetAppearanceException::class) private fun buildEmbeddedAppearance: PaymentSheet.Appearance.Embedded</ID>
|
|
44
|
+
<ID>LongMethod:PaymentSheetAppearanceTest.kt:PaymentSheetAppearanceTest$@Test fun testFullAppearanceConfiguration</ID>
|
|
45
|
+
<ID>LongMethod:PaymentSheetAppearanceTest.kt:PaymentSheetAppearanceTest$@Test fun testFullEmbeddedAppearance_FlatWithRadio</ID>
|
|
46
|
+
<ID>LongMethod:PaymentSheetAppearanceTest.kt:PaymentSheetAppearanceTest$@Test fun testPartialAppearanceConfiguration</ID>
|
|
47
|
+
<ID>LongMethod:PaymentSheetManager.kt:PaymentSheetManager$fun configure</ID>
|
|
48
|
+
<ID>LongMethod:StripeSdkModule.kt:StripeSdkModule$@ReactMethod override fun confirmPlatformPay</ID>
|
|
49
|
+
<ID>MagicNumber:CardFieldView.kt:CardFieldView$20</ID>
|
|
50
|
+
<ID>MagicNumber:EmbeddedPaymentElementView.kt:EmbeddedPaymentElementView$100</ID>
|
|
51
|
+
<ID>MagicNumber:FinancialConnectionsSheetManager.kt:FinancialConnectionsSheetManager.Companion$1000.0</ID>
|
|
52
|
+
<ID>MagicNumber:GooglePayButtonView.kt:GooglePayButtonView$1000</ID>
|
|
53
|
+
<ID>MagicNumber:GooglePayButtonView.kt:GooglePayButtonView$1001</ID>
|
|
54
|
+
<ID>MagicNumber:GooglePayButtonView.kt:GooglePayButtonView$11</ID>
|
|
55
|
+
<ID>MagicNumber:GooglePayButtonView.kt:GooglePayButtonView$4</ID>
|
|
56
|
+
<ID>MagicNumber:GooglePayButtonView.kt:GooglePayButtonView$5</ID>
|
|
57
|
+
<ID>MagicNumber:GooglePayButtonView.kt:GooglePayButtonView$6</ID>
|
|
58
|
+
<ID>MagicNumber:GooglePayButtonView.kt:GooglePayButtonView$7</ID>
|
|
59
|
+
<ID>MagicNumber:Mappers.kt:1000</ID>
|
|
60
|
+
<ID>MagicNumber:Mappers.kt:3</ID>
|
|
61
|
+
<ID>MagicNumber:Mappers.kt:4</ID>
|
|
62
|
+
<ID>MagicNumber:Mappers.kt:5</ID>
|
|
63
|
+
<ID>MagicNumber:Mappers.kt:6</ID>
|
|
64
|
+
<ID>MagicNumber:Mappers.kt:7</ID>
|
|
65
|
+
<ID>MagicNumber:Mappers.kt:8</ID>
|
|
66
|
+
<ID>MagicNumber:NavigationBarView.kt:NavigationBarView$16</ID>
|
|
67
|
+
<ID>MagicNumber:NavigationBarView.kt:NavigationBarView$17f</ID>
|
|
68
|
+
<ID>MagicNumber:NavigationBarView.kt:NavigationBarView$4f</ID>
|
|
69
|
+
<ID>MagicNumber:NavigationBarView.kt:NavigationBarView$56</ID>
|
|
70
|
+
<ID>MagicNumber:PaymentMethodMessagingElementConfig.kt:16.0</ID>
|
|
71
|
+
<ID>MagicNumber:PaymentMethodMessagingElementConfig.kt:6</ID>
|
|
72
|
+
<ID>MagicNumber:PaymentMethodMessagingElementConfig.kt:8</ID>
|
|
73
|
+
<ID>MagicNumber:PaymentOptionDisplayDataMapper.kt:0xFFFFFF</ID>
|
|
74
|
+
<ID>MagicNumber:PaymentOptionDisplayDataMapper.kt:16f</ID>
|
|
75
|
+
<ID>MagicNumber:PaymentOptionDisplayDataMapper.kt:5_000L</ID>
|
|
76
|
+
<ID>MagicNumber:PaymentSheetAppearance.kt:6</ID>
|
|
77
|
+
<ID>MagicNumber:PaymentSheetAppearance.kt:8</ID>
|
|
78
|
+
<ID>MagicNumber:PaymentSheetManager.kt:100</ID>
|
|
79
|
+
<ID>MagicNumber:PaymentSheetManager.kt:PaymentSheetManager$100</ID>
|
|
80
|
+
<ID>MagicNumber:StripeSdkModule.kt:StripeSdkModule$3000</ID>
|
|
81
|
+
<ID>MaxLineLength:AddToWalletButtonManager.kt:AddToWalletButtonManager$override fun createViewInstance: AddToWalletButtonView</ID>
|
|
82
|
+
<ID>MaxLineLength:AddressLauncherManager.kt:AddressLauncherManager$"No publishable key set. Stripe has not been initialized. Initialize Stripe in your app with the StripeProvider component or the initStripe method."</ID>
|
|
83
|
+
<ID>MaxLineLength:AddressSheetView.kt:AddressSheetView.Companion$internal</ID>
|
|
84
|
+
<ID>MaxLineLength:AuBECSDebitFormView.kt:AuBECSDebitFormView$UIManagerHelper.getEventDispatcherForReactTag(context, id)?.dispatchEvent(FormCompleteEvent(context.surfaceId, id, formDetails))</ID>
|
|
85
|
+
<ID>MaxLineLength:AuBECSDebitFormViewManager.kt:AuBECSDebitFormViewManager$override fun createViewInstance: AuBECSDebitFormView</ID>
|
|
86
|
+
<ID>MaxLineLength:CustomerSheetManager.kt:CustomerSheetManager.Companion$internal</ID>
|
|
87
|
+
<ID>MaxLineLength:EmbeddedPaymentElementView.kt:EmbeddedPaymentElementView$"Tried to call confirmHandler, but no callback was found. Please file an issue: https://github.com/stripe/stripe-react-native/issues"</ID>
|
|
88
|
+
<ID>MaxLineLength:EmbeddedPaymentElementView.kt:EmbeddedPaymentElementView$"Tried to call confirmationTokenConfirmHandler, but no callback was found. Please file an issue: https://github.com/stripe/stripe-react-native/issues"</ID>
|
|
89
|
+
<ID>MaxLineLength:Errors.kt:"Stripe has not been initialized. Initialize Stripe in your app with the StripeProvider component or the initStripe method."</ID>
|
|
90
|
+
<ID>MaxLineLength:Errors.kt:internal fun createCanceledError: WritableMap</ID>
|
|
91
|
+
<ID>MaxLineLength:Extensions.kt:)</ID>
|
|
92
|
+
<ID>MaxLineLength:FinancialConnectionsSheetManager.kt:FinancialConnectionsSheetManager.Companion$private</ID>
|
|
93
|
+
<ID>MaxLineLength:GooglePayButtonManager.kt:GooglePayButtonManager$override fun createViewInstance: GooglePayButtonView</ID>
|
|
94
|
+
<ID>MaxLineLength:GooglePayLauncherManager.kt:GooglePayLauncherManager$"Google Pay is not available on this device. You can use isPlatformPaySupported to preemptively check for Google Pay support."</ID>
|
|
95
|
+
<ID>MaxLineLength:Mappers.kt:internal</ID>
|
|
96
|
+
<ID>MaxLineLength:Mappers.kt:val disableBillingDetailCollection = customPaymentMethodMap.getBooleanOr("disableBillingDetailCollection", false)</ID>
|
|
97
|
+
<ID>MaxLineLength:NavigationBarView.kt:NavigationBarView$drawable?.setColorFilter(android.graphics.BlendModeColorFilter(Color.BLACK, android.graphics.BlendMode.SRC_IN))</ID>
|
|
98
|
+
<ID>MaxLineLength:PaymentElementConfig.kt:internal</ID>
|
|
99
|
+
<ID>MaxLineLength:PaymentLauncherManager.kt:PaymentLauncherManager$"Invalid parameters provided to PaymentLauncher. Ensure that you are providing the correct client secret and setup params (if necessary)."</ID>
|
|
100
|
+
<ID>MaxLineLength:PaymentMethodCreateParamsFactory.kt:PaymentMethodCreateParamsFactory$private</ID>
|
|
101
|
+
<ID>MaxLineLength:PaymentMethodMessagingElementViewManager.kt:PaymentMethodMessagingElementViewManager$override fun createViewInstance: PaymentMethodMessagingElementView</ID>
|
|
102
|
+
<ID>MaxLineLength:PaymentOptionDisplayDataMapperTest.kt:PaymentOptionDisplayDataMapperTest$"By continuing, you agree to <b><font color=\"#0000FF\"><u><a href=\"https://stripe.com/terms\">Terms</a></u></font></b> and <i><font color=\"#FF0000\"><a href=\"https://stripe.com/privacy\">Privacy</a></font></i>. Important details are <span style=\"background-color: #FFFF00;\">highlighted</span>."</ID>
|
|
103
|
+
<ID>MaxLineLength:PaymentOptionDisplayDataMapperTest.kt:PaymentOptionDisplayDataMapperTest$"By continuing, you agree to our <a href=\"https://stripe.com/privacy\">Privacy Policy</a> and <a href=\"https://stripe.com/terms\">Terms of Service</a>."</ID>
|
|
104
|
+
<ID>MaxLineLength:PaymentOptionDisplayDataMapperTest.kt:PaymentOptionDisplayDataMapperTest$"Check <b><a href=\"https://stripe.com\">Stripe</a></b> and <i><font color=\"#00FF00\"><a href=\"https://github.com\">GitHub</a></font></i>"</ID>
|
|
105
|
+
<ID>MaxLineLength:PaymentOptionDisplayDataMapperTest.kt:PaymentOptionDisplayDataMapperTest$"Visit our <b><font color=\"#0000FF\"><a href=\"https://stripe.com/privacy\">Privacy Policy</a></font></b> for details"</ID>
|
|
106
|
+
<ID>MaxLineLength:PaymentSheetAppearance.kt:"$fontErrorPrefix appearance.font.$key should only contain lowercase alphanumeric characters on Android, but received '$fontFileName'. This value must match the filename in android/app/src/main/res/font"</ID>
|
|
107
|
+
<ID>MaxLineLength:PaymentSheetAppearance.kt:System.err.println("WARN: Unsupported embedded payment element row style received: $styleString. Falling back to default.")</ID>
|
|
108
|
+
<ID>MaxLineLength:PaymentSheetManager.kt:internal</ID>
|
|
109
|
+
<ID>MaxLineLength:PostalCodeUtilities.kt:PostalCodeUtilities.Companion$internal fun isValidGlobalPostalCodeCharacter: Boolean</ID>
|
|
110
|
+
<ID>MaxLineLength:ReactNativeCustomerAdapter.kt:ReactNativeCustomerAdapter$override suspend</ID>
|
|
111
|
+
<ID>MaxLineLength:ReactNativeCustomerSessionProvider.kt:ReactNativeCustomerSessionProvider$override suspend fun intentConfiguration: Result<CustomerSheet.IntentConfiguration></ID>
|
|
112
|
+
<ID>MaxLineLength:StripeSdkModule.kt:StripeSdkModule$composeCompatView</ID>
|
|
113
|
+
<ID>MaxLineLength:StripeSdkModule.kt:StripeSdkModule$reactApplicationContext.currentActivity?.application?.unregisterActivityLifecycleCallbacks(activityLifecycleCallbacks)</ID>
|
|
114
|
+
<ID>RethrowCaughtException:PaymentMethodCreateParamsFactory.kt:PaymentMethodCreateParamsFactory$throw error</ID>
|
|
115
|
+
<ID>SwallowedException:StripeSdkModule.kt:StripeSdkModule$e: Exception</ID>
|
|
116
|
+
<ID>ThrowsCount:PaymentSheetAppearance.kt:@Throws(PaymentSheetAppearanceException::class) internal fun getFontResId: Int?</ID>
|
|
117
|
+
<ID>TooGenericExceptionCaught:CardFieldView.kt:CardFieldView$e: Exception</ID>
|
|
118
|
+
<ID>TooGenericExceptionCaught:CustomerSheetManager.kt:CustomerSheetManager$e: Exception</ID>
|
|
119
|
+
<ID>TooGenericExceptionCaught:EmbeddedPaymentElementView.kt:EmbeddedPaymentElementView$e: Exception</ID>
|
|
120
|
+
<ID>TooGenericExceptionCaught:EmbeddedPaymentElementViewManager.kt:EmbeddedPaymentElementViewManager$e: Exception</ID>
|
|
121
|
+
<ID>TooGenericExceptionCaught:PaymentSheetManager.kt:PaymentSheetManager$e: Exception</ID>
|
|
122
|
+
<ID>TooGenericExceptionCaught:PaymentSheetManager.kt:e: Exception</ID>
|
|
123
|
+
<ID>TooGenericExceptionCaught:PushProvisioningProxy.kt:PushProvisioningProxy$e: Exception</ID>
|
|
124
|
+
<ID>TooGenericExceptionCaught:StripeConnectDeepLinkInterceptorActivity.kt:StripeConnectDeepLinkInterceptorActivity$e: Exception</ID>
|
|
125
|
+
<ID>TooGenericExceptionCaught:StripeSdkModule.kt:StripeSdkModule$e: Exception</ID>
|
|
126
|
+
<ID>TooGenericExceptionCaught:TapAndPayProxy.kt:TapAndPayProxy$e: Exception</ID>
|
|
127
|
+
<ID>TooGenericExceptionThrown:EmbeddedPaymentElementViewManager.kt:EmbeddedPaymentElementViewManager$throw Error()</ID>
|
|
128
|
+
<ID>TooGenericExceptionThrown:PaymentLauncherManager.kt:PaymentLauncherManager$throw Exception( "Invalid parameters provided to PaymentLauncher. Ensure that you are providing the correct client secret and setup params (if necessary).", )</ID>
|
|
129
|
+
<ID>TooGenericExceptionThrown:PaymentLauncherManager.kt:PaymentLauncherManager$throw Exception("Failed to create Payment Launcher. No client secret provided.")</ID>
|
|
130
|
+
<ID>TooGenericExceptionThrown:PaymentMethodCreateParamsFactory.kt:PaymentMethodCreateParamsFactory$throw Exception("This paymentMethodType is not supported yet")</ID>
|
|
131
|
+
<ID>TooManyFunctions:AddToWalletButtonManager.kt:AddToWalletButtonManager : SimpleViewManagerAddToWalletButtonManagerInterface</ID>
|
|
132
|
+
<ID>TooManyFunctions:AddressSheetViewManager.kt:AddressSheetViewManager : SimpleViewManagerAddressSheetViewManagerInterface</ID>
|
|
133
|
+
<ID>TooManyFunctions:CardFieldView.kt:CardFieldView : FrameLayout</ID>
|
|
134
|
+
<ID>TooManyFunctions:CardFieldViewManager.kt:CardFieldViewManager : SimpleViewManagerCardFieldManagerInterface</ID>
|
|
135
|
+
<ID>TooManyFunctions:CardFormViewManager.kt:CardFormViewManager : SimpleViewManagerCardFormManagerInterface</ID>
|
|
136
|
+
<ID>TooManyFunctions:EventEmitterCompat.kt:EventEmitterCompat</ID>
|
|
137
|
+
<ID>TooManyFunctions:Extensions.kt:com.reactnativestripesdk.utils.Extensions.kt</ID>
|
|
138
|
+
<ID>TooManyFunctions:Mappers.kt:com.reactnativestripesdk.utils.Mappers.kt</ID>
|
|
139
|
+
<ID>TooManyFunctions:PaymentElementConfig.kt:com.reactnativestripesdk.PaymentElementConfig.kt</ID>
|
|
140
|
+
<ID>TooManyFunctions:StripeSdkModule.kt:StripeSdkModule : NativeStripeSdkModuleSpec</ID>
|
|
141
|
+
<ID>UtilityClassWithPublicConstructor:GooglePayRequestHelper.kt:GooglePayRequestHelper</ID>
|
|
142
|
+
<ID>UtilityClassWithPublicConstructor:PaymentSheetAppearance.kt:PaymentSheetAppearanceKeys</ID>
|
|
143
|
+
<ID>UtilityClassWithPublicConstructor:PostalCodeUtilities.kt:PostalCodeUtilities</ID>
|
|
144
|
+
<ID>UtilityClassWithPublicConstructor:ShadowArguments.kt:ShadowArguments</ID>
|
|
145
|
+
</CurrentIssues>
|
|
146
|
+
</SmellBaseline>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
apply plugin: 'dev.detekt'
|
|
2
|
+
|
|
3
|
+
repositories {
|
|
4
|
+
google()
|
|
5
|
+
mavenCentral()
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
def isDetektFormat = gradle.startParameter.taskNames.any { it.contains('detektFormat') }
|
|
9
|
+
|
|
10
|
+
detekt {
|
|
11
|
+
buildUponDefaultConfig = true
|
|
12
|
+
config.setFrom(file("detekt/detekt.yml"))
|
|
13
|
+
baseline = file("detekt/detekt-baseline.xml") // https://detekt.dev/docs/introduction/baseline/
|
|
14
|
+
ignoredBuildTypes = ["debug"]
|
|
15
|
+
ignoredFlavors = []
|
|
16
|
+
ignoredVariants = []
|
|
17
|
+
parallel = true
|
|
18
|
+
autoCorrect = isDetektFormat
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
tasks.register('detektFormat') {
|
|
22
|
+
group = 'formatting'
|
|
23
|
+
description = 'Run detekt with auto-correction enabled.'
|
|
24
|
+
dependsOn 'detekt'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def detektIgnoreFile = file('detekt/.detektignore')
|
|
28
|
+
if (detektIgnoreFile.exists()) {
|
|
29
|
+
def detektIgnorePatterns = []
|
|
30
|
+
detektIgnoreFile.eachLine { line ->
|
|
31
|
+
line = line.trim()
|
|
32
|
+
if (!line.isEmpty() && !line.startsWith('#')) {
|
|
33
|
+
detektIgnorePatterns.add(line)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
afterEvaluate {
|
|
37
|
+
tasks.matching { it.name.startsWith('detekt') && it instanceof org.gradle.api.tasks.SourceTask }.configureEach {
|
|
38
|
+
detektIgnorePatterns.each { pattern -> exclude(pattern) }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
dependencies {
|
|
44
|
+
detektPlugins "dev.detekt:detekt-rules-ktlint-wrapper:2.0.0-alpha.2"
|
|
45
|
+
}
|