@tapayadot/accept-react-native 1.3.2 → 1.14.1
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/README.md +196 -363
- package/android/build.gradle +23 -34
- package/android/src/main/java/com/tapaya/acceptsdkreactnative/AcceptSdkReactNativeModule.kt +191 -673
- package/android/src/main/java/com/tapaya/acceptsdkreactnative/Errors.kt +81 -0
- package/android/src/main/java/com/tapaya/acceptsdkreactnative/Parsing.kt +166 -0
- package/android/src/main/java/com/tapaya/acceptsdkreactnative/Serialization.kt +216 -0
- package/app.json +2 -2
- package/app.plugin.js +1 -1
- package/build/Accept.d.ts +255 -0
- package/build/Accept.d.ts.map +1 -0
- package/build/Accept.js +387 -0
- package/build/Accept.js.map +1 -0
- package/build/Accept.types.d.ts +352 -0
- package/build/Accept.types.d.ts.map +1 -0
- package/build/Accept.types.js +9 -0
- package/build/Accept.types.js.map +1 -0
- package/build/AcceptError.d.ts +53 -0
- package/build/AcceptError.d.ts.map +1 -0
- package/build/AcceptError.js +107 -0
- package/build/AcceptError.js.map +1 -0
- package/build/AcceptSdkReactNativeModule.d.ts +67 -26
- package/build/AcceptSdkReactNativeModule.d.ts.map +1 -1
- package/build/AcceptSdkReactNativeModule.js +53 -3
- package/build/AcceptSdkReactNativeModule.js.map +1 -1
- package/build/index.d.ts +7 -237
- package/build/index.d.ts.map +1 -1
- package/build/index.js +7 -254
- package/build/index.js.map +1 -1
- package/build/utils.d.ts.map +1 -1
- package/build/utils.js +2 -2
- package/build/utils.js.map +1 -1
- package/expo-module.config.json +1 -6
- package/package.json +8 -12
- package/plugin/withAcceptSdk.js +45 -0
- package/build/AcceptSdkReactNative.types.d.ts +0 -259
- package/build/AcceptSdkReactNative.types.d.ts.map +0 -1
- package/build/AcceptSdkReactNative.types.js +0 -2
- package/build/AcceptSdkReactNative.types.js.map +0 -1
- package/ios/.xcode.env +0 -11
- package/ios/AcceptSdkReactNative.podspec +0 -33
- package/ios/AcceptSdkReactNativeAppDelegate.swift +0 -13
- package/ios/AcceptSdkReactNativeModule.swift +0 -749
- package/ios/Podfile +0 -63
- package/ios/Podfile.properties.json +0 -4
- package/ios/acceptsdkreactnative.xcodeproj/project.pbxproj +0 -540
- package/ios/acceptsdkreactnative.xcodeproj/xcshareddata/xcschemes/acceptsdkreactnative.xcscheme +0 -88
- package/plugin/withCustomRepoModule.js +0 -96
package/android/build.gradle
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
2
|
|
|
3
3
|
group = 'com.tapaya.acceptsdkreactnative'
|
|
4
|
-
version = '1.
|
|
4
|
+
version = '1.14.1'
|
|
5
5
|
|
|
6
6
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
7
7
|
apply from: expoModulesCorePlugin
|
|
@@ -9,46 +9,35 @@ applyKotlinExpoModulesCorePlugin()
|
|
|
9
9
|
useCoreDependencies()
|
|
10
10
|
useExpoPublishing()
|
|
11
11
|
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
}
|
|
12
|
+
// Takes the Android SDK versions, Kotlin version, and lint defaults from expo-modules-core rather
|
|
13
|
+
// than pinning our own, so this module tracks the toolchain of whichever Expo SDK the host app is
|
|
14
|
+
// on — including deprecations Expo fixes on our behalf. Each version still resolves through
|
|
15
|
+
// `rootProject.ext`, so an app that overrides one keeps its override.
|
|
16
|
+
useDefaultAndroidSdkVersions()
|
|
17
|
+
|
|
18
|
+
// The Accept SDK for Android requires API 30. That is the one version this module cannot inherit:
|
|
19
|
+
// the config plugin raises it by writing `android.minSdkVersion` into the host app's
|
|
20
|
+
// gradle.properties, so a lower value here means the plugin never ran. Report that, rather than
|
|
21
|
+
// leaving the manifest merger to fail later against the AAR with no mention of the plugin.
|
|
22
|
+
def minSdkVersion = safeExtGet("minSdkVersion", 24) as Integer
|
|
23
|
+
if (minSdkVersion < 30) {
|
|
24
|
+
throw new GradleException(
|
|
25
|
+
"@tapayadot/accept-react-native requires minSdkVersion 30, but this project resolved " +
|
|
26
|
+
"${minSdkVersion}. Add \"@tapayadot/accept-react-native\" to the `plugins` array in " +
|
|
27
|
+
"app.json and re-run `npx expo prebuild --clean`, or set android.minSdkVersion=30 in " +
|
|
28
|
+
"android/gradle.properties."
|
|
29
|
+
)
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
android {
|
|
35
33
|
namespace "com.tapaya.acceptsdkreactnative"
|
|
36
34
|
defaultConfig {
|
|
37
35
|
versionCode 1
|
|
38
|
-
versionName "1.
|
|
39
|
-
}
|
|
40
|
-
lintOptions {
|
|
41
|
-
abortOnError false
|
|
36
|
+
versionName "1.14.1"
|
|
42
37
|
}
|
|
43
38
|
}
|
|
44
39
|
|
|
45
40
|
dependencies {
|
|
46
|
-
|
|
47
|
-
implementation 'com.
|
|
48
|
-
|
|
49
|
-
implementation 'androidx.compose.ui:ui:1.8.2'
|
|
50
|
-
|
|
51
|
-
if ((project.findProperty("com.tapaya.accept.enableStripe") ?: "false").toString().toBoolean()) {
|
|
52
|
-
implementation 'com.tapaya:accept-stripe:1.3.1'
|
|
53
|
-
}
|
|
54
|
-
}
|
|
41
|
+
// Published to Maven Central; no additional repository declaration is needed.
|
|
42
|
+
implementation 'com.tapaya:accept:1.14.1'
|
|
43
|
+
}
|