@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.
Files changed (47) hide show
  1. package/README.md +196 -363
  2. package/android/build.gradle +23 -34
  3. package/android/src/main/java/com/tapaya/acceptsdkreactnative/AcceptSdkReactNativeModule.kt +191 -673
  4. package/android/src/main/java/com/tapaya/acceptsdkreactnative/Errors.kt +81 -0
  5. package/android/src/main/java/com/tapaya/acceptsdkreactnative/Parsing.kt +166 -0
  6. package/android/src/main/java/com/tapaya/acceptsdkreactnative/Serialization.kt +216 -0
  7. package/app.json +2 -2
  8. package/app.plugin.js +1 -1
  9. package/build/Accept.d.ts +255 -0
  10. package/build/Accept.d.ts.map +1 -0
  11. package/build/Accept.js +387 -0
  12. package/build/Accept.js.map +1 -0
  13. package/build/Accept.types.d.ts +352 -0
  14. package/build/Accept.types.d.ts.map +1 -0
  15. package/build/Accept.types.js +9 -0
  16. package/build/Accept.types.js.map +1 -0
  17. package/build/AcceptError.d.ts +53 -0
  18. package/build/AcceptError.d.ts.map +1 -0
  19. package/build/AcceptError.js +107 -0
  20. package/build/AcceptError.js.map +1 -0
  21. package/build/AcceptSdkReactNativeModule.d.ts +67 -26
  22. package/build/AcceptSdkReactNativeModule.d.ts.map +1 -1
  23. package/build/AcceptSdkReactNativeModule.js +53 -3
  24. package/build/AcceptSdkReactNativeModule.js.map +1 -1
  25. package/build/index.d.ts +7 -237
  26. package/build/index.d.ts.map +1 -1
  27. package/build/index.js +7 -254
  28. package/build/index.js.map +1 -1
  29. package/build/utils.d.ts.map +1 -1
  30. package/build/utils.js +2 -2
  31. package/build/utils.js.map +1 -1
  32. package/expo-module.config.json +1 -6
  33. package/package.json +8 -12
  34. package/plugin/withAcceptSdk.js +45 -0
  35. package/build/AcceptSdkReactNative.types.d.ts +0 -259
  36. package/build/AcceptSdkReactNative.types.d.ts.map +0 -1
  37. package/build/AcceptSdkReactNative.types.js +0 -2
  38. package/build/AcceptSdkReactNative.types.js.map +0 -1
  39. package/ios/.xcode.env +0 -11
  40. package/ios/AcceptSdkReactNative.podspec +0 -33
  41. package/ios/AcceptSdkReactNativeAppDelegate.swift +0 -13
  42. package/ios/AcceptSdkReactNativeModule.swift +0 -749
  43. package/ios/Podfile +0 -63
  44. package/ios/Podfile.properties.json +0 -4
  45. package/ios/acceptsdkreactnative.xcodeproj/project.pbxproj +0 -540
  46. package/ios/acceptsdkreactnative.xcodeproj/xcshareddata/xcschemes/acceptsdkreactnative.xcscheme +0 -88
  47. package/plugin/withCustomRepoModule.js +0 -96
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'com.tapaya.acceptsdkreactnative'
4
- version = '1.3.2'
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
- // If you want to use the managed Android SDK versions from expo-modules-core, set this to true.
13
- // The Android SDK versions will be bumped from time to time in SDK releases and may introduce breaking changes in your module code.
14
- // Most of the time, you may like to manage the Android SDK versions yourself.
15
- def useManagedAndroidSdkVersions = false
16
- if (useManagedAndroidSdkVersions) {
17
- useDefaultAndroidSdkVersions()
18
- } else {
19
- buildscript {
20
- // Simple helper that allows the root project to override versions declared by this library.
21
- ext.safeExtGet = { prop, fallback ->
22
- rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
23
- }
24
- }
25
- project.android {
26
- compileSdkVersion safeExtGet("compileSdkVersion", 36)
27
- defaultConfig {
28
- minSdkVersion safeExtGet("minSdkVersion", 24)
29
- targetSdkVersion safeExtGet("targetSdkVersion", 36)
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.3.2"
39
- }
40
- lintOptions {
41
- abortOnError false
36
+ versionName "1.14.1"
42
37
  }
43
38
  }
44
39
 
45
40
  dependencies {
46
- implementation 'com.tapaya:accept:1.3.1'
47
- implementation 'com.google.code.gson:gson:2.13.2'
48
- implementation 'androidx.appcompat:appcompat:1.7.1'
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
+ }