@appboxo/expo-boxo-sdk 0.8.0 → 0.9.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 (53) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/ExpoBoxoSdk.types.d.ts +11 -0
  3. package/build/ExpoBoxoSdk.types.d.ts.map +1 -1
  4. package/build/ExpoBoxoSdk.types.js.map +1 -1
  5. package/ios/ConfigOptions.swift +3 -0
  6. package/ios/ConsentScreenConfigOptions.swift +25 -0
  7. package/ios/ExpoBoxoSdk.podspec +1 -1
  8. package/ios/ExpoBoxoSdkModule.swift +11 -0
  9. package/package.json +1 -1
  10. package/src/ExpoBoxoSdk.types.ts +12 -0
  11. package/android/.gradle/8.13/checksums/checksums.lock +0 -0
  12. package/android/.gradle/8.13/checksums/md5-checksums.bin +0 -0
  13. package/android/.gradle/8.13/checksums/sha1-checksums.bin +0 -0
  14. package/android/.gradle/8.13/fileChanges/last-build.bin +0 -0
  15. package/android/.gradle/8.13/fileHashes/fileHashes.bin +0 -0
  16. package/android/.gradle/8.13/fileHashes/fileHashes.lock +0 -0
  17. package/android/.gradle/8.13/fileHashes/resourceHashesCache.bin +0 -0
  18. package/android/.gradle/8.13/gc.properties +0 -0
  19. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  20. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  21. package/android/.gradle/noVersion/buildLogic.lock +0 -0
  22. package/android/.gradle/vcs-1/gc.properties +0 -0
  23. package/android/app/build.gradle +0 -177
  24. package/android/app/debug.keystore +0 -0
  25. package/android/app/proguard-rules.pro +0 -14
  26. package/android/app/src/debug/AndroidManifest.xml +0 -7
  27. package/android/app/src/main/AndroidManifest.xml +0 -29
  28. package/android/app/src/main/java/com/appboxoexpoboxosdk/MainActivity.kt +0 -61
  29. package/android/app/src/main/java/com/appboxoexpoboxosdk/MainApplication.kt +0 -57
  30. package/android/app/src/main/res/drawable/ic_launcher_background.xml +0 -6
  31. package/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  32. package/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
  33. package/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
  34. package/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
  35. package/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
  36. package/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
  37. package/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
  38. package/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
  39. package/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
  40. package/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
  41. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
  42. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
  43. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
  44. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
  45. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
  46. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
  47. package/android/app/src/main/res/values/colors.xml +0 -4
  48. package/android/app/src/main/res/values/strings.xml +0 -3
  49. package/android/app/src/main/res/values/styles.xml +0 -8
  50. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  51. package/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  52. package/ios/appboxoexpoboxosdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
  53. package/ios/appboxoexpoboxosdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
package/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
1
  # Changelog
2
+ ## [0.9.1]
3
+ - ios: fix Consent screen
4
+
5
+ ## [0.9.0]
6
+ - ios: add Consent screen config
7
+
2
8
  ## [0.8.0]
3
9
  - add setAuthTokens method
4
10
  - bump native sdk versions
@@ -73,6 +73,10 @@ export type ConfigOptions = {
73
73
  * use it to hide "About Page" from Miniapp menu
74
74
  */
75
75
  showAboutPage?: boolean;
76
+ /**
77
+ * use it to customize the consent screen
78
+ */
79
+ consentScreenConfig?: ConsentScreenConfig;
76
80
  };
77
81
  export type MiniappOptions = {
78
82
  /**
@@ -123,4 +127,11 @@ export type MiniappData = {
123
127
  description: string;
124
128
  logo: string;
125
129
  };
130
+ export type ConsentScreenConfig = {
131
+ title?: string;
132
+ noRequiredFieldsDescription?: string;
133
+ requiredFieldsDescription?: string;
134
+ allowButtonTitle?: string;
135
+ cancelButtonTitle?: string;
136
+ };
126
137
  //# sourceMappingURL=ExpoBoxoSdk.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoBoxoSdk.types.d.ts","sourceRoot":"","sources":["../src/ExpoBoxoSdk.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE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C,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,eAAe,GAAG,eAAe,GAAG,eAAe,GAAG,eAAe,GAAG,SAAS,CAAC;CACnG,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoBoxoSdk.types.js","sourceRoot":"","sources":["../src/ExpoBoxoSdk.types.ts"],"names":[],"mappings":"","sourcesContent":["export type AuthEventPayload = {\n appId: string;\n};\n\nexport type PaymentData = {\n appId: string;\n transactionToken?: string;\n miniappOrderId?: string;\n amount?: number;\n currency?: string;\n extraParams?: Record<string, any>;\n hostappOrderId?: string;\n status?: string;\n};\n\nexport type CustomEventData = {\n appId: string;\n requestId?: number;\n type?: string;\n errorType?: string;\n payload?: Record<string, any>;\n};\n\nexport type LifecycleData = {\n appId: string;\n /**\n * onLaunch - Called when the miniapp will launch with Boxo.open(...)\n * onResume - Called when the miniapp will start interacting with the user\n * onPause - Called when the miniapp loses foreground state\n * onClose - Called when clicked close button in miniapp or when destroyed miniapp page\n * onError - Called when miniapp fails to launch due to internet connection issues\n * onUserInteraction - Called whenever touch event is dispatched to the miniapp page.\n */\n lifecycle: string;\n error?: string\n};\n\nexport type ConfigOptions = {\n /**\n * your client id from dashboard\n */\n clientId: string;\n /**\n * hostapp userId, will be used for the Consent Management\n */\n userId?: string;\n /**\n * language value will be passed to the miniapp\n */\n language?: string;\n /**\n * switch to sandbox mode\n */\n sandboxMode?: boolean;\n /**\n * Each miniapp appears as a task in the Recents screen.\n * !It works only on android devices.\n */\n multitaskMode?: boolean;\n /**\n * theme for splash screen and other native components used inside miniapp.\n */\n theme?: 'light' | 'dark' | 'system';\n /**\n * enables webview debugging\n */\n isDebug?: boolean;\n /**\n * use it to hide \"Settings\" from Miniapp menu\n */\n showPermissionsPage?: boolean;\n /**\n * use it to hide \"Clear cache\" from Miniapp menu\n */\n showClearCache?: boolean;\n\n /**\n * use it to hide \"About Page\" from Miniapp menu\n */\n showAboutPage?: boolean;\n};\n\nexport type MiniappOptions = {\n /**\n * miniapp id\n */\n appId: string;\n /**\n * (optional) data as Map that is sent to miniapp\n */\n data?: Record<string, any>;\n /**\n * (optional) miniapp theme 'dark' | 'light' | 'system' (by default is system theme)\n */\n theme?: 'light' | 'dark' | 'system';\n /**\n * (optional) extra query params to append to miniapp URL (like: http://miniapp-url.com/?param=test)\n */\n extraUrlParams?: Record<string, string>;\n /**\n * (optional) suffix to append to miniapp URL (like: http://miniapp-url.com/?param=test)\n */\n urlSuffix?: string;\n /**\n * (optional) provide colors to miniapp if miniapp supports\n */\n colors?: Record<string, string>;\n /**\n * (optional) use to skip miniapp splash screen\n */\n enableSplash?: boolean;\n /**\n * (optional) use to save state on close miniapp\n */\n saveState?: boolean;\n /**\n * (optional) use to change launch animation for miniapp.\n */\n pageAnimation?: 'BOTTOM_TO_TOP' | 'TOP_TO_BOTTOM' | 'LEFT_TO_RIGHT' | 'RIGHT_TO_LEFT' | 'FADE_IN';\n};\n\nexport type MiniappListResult = {\n miniapps?: Array<MiniappData>;\n error?: string;\n}\n\nexport type MiniappData = {\n appId: string;\n name: string;\n category: string;\n description: string;\n logo: string;\n}\n\n"]}
1
+ {"version":3,"file":"ExpoBoxoSdk.types.js","sourceRoot":"","sources":["../src/ExpoBoxoSdk.types.ts"],"names":[],"mappings":"","sourcesContent":["export type AuthEventPayload = {\n appId: string;\n};\n\nexport type PaymentData = {\n appId: string;\n transactionToken?: string;\n miniappOrderId?: string;\n amount?: number;\n currency?: string;\n extraParams?: Record<string, any>;\n hostappOrderId?: string;\n status?: string;\n};\n\nexport type CustomEventData = {\n appId: string;\n requestId?: number;\n type?: string;\n errorType?: string;\n payload?: Record<string, any>;\n};\n\nexport type LifecycleData = {\n appId: string;\n /**\n * onLaunch - Called when the miniapp will launch with Boxo.open(...)\n * onResume - Called when the miniapp will start interacting with the user\n * onPause - Called when the miniapp loses foreground state\n * onClose - Called when clicked close button in miniapp or when destroyed miniapp page\n * onError - Called when miniapp fails to launch due to internet connection issues\n * onUserInteraction - Called whenever touch event is dispatched to the miniapp page.\n */\n lifecycle: string;\n error?: string\n};\n\nexport type ConfigOptions = {\n /**\n * your client id from dashboard\n */\n clientId: string;\n /**\n * hostapp userId, will be used for the Consent Management\n */\n userId?: string;\n /**\n * language value will be passed to the miniapp\n */\n language?: string;\n /**\n * switch to sandbox mode\n */\n sandboxMode?: boolean;\n /**\n * Each miniapp appears as a task in the Recents screen.\n * !It works only on android devices.\n */\n multitaskMode?: boolean;\n /**\n * theme for splash screen and other native components used inside miniapp.\n */\n theme?: 'light' | 'dark' | 'system';\n /**\n * enables webview debugging\n */\n isDebug?: boolean;\n /**\n * use it to hide \"Settings\" from Miniapp menu\n */\n showPermissionsPage?: boolean;\n /**\n * use it to hide \"Clear cache\" from Miniapp menu\n */\n showClearCache?: boolean;\n\n /**\n * use it to hide \"About Page\" from Miniapp menu\n */\n showAboutPage?: boolean;\n\n /**\n * use it to customize the consent screen\n */\n consentScreenConfig?: ConsentScreenConfig\n};\n\nexport type MiniappOptions = {\n /**\n * miniapp id\n */\n appId: string;\n /**\n * (optional) data as Map that is sent to miniapp\n */\n data?: Record<string, any>;\n /**\n * (optional) miniapp theme 'dark' | 'light' | 'system' (by default is system theme)\n */\n theme?: 'light' | 'dark' | 'system';\n /**\n * (optional) extra query params to append to miniapp URL (like: http://miniapp-url.com/?param=test)\n */\n extraUrlParams?: Record<string, string>;\n /**\n * (optional) suffix to append to miniapp URL (like: http://miniapp-url.com/?param=test)\n */\n urlSuffix?: string;\n /**\n * (optional) provide colors to miniapp if miniapp supports\n */\n colors?: Record<string, string>;\n /**\n * (optional) use to skip miniapp splash screen\n */\n enableSplash?: boolean;\n /**\n * (optional) use to save state on close miniapp\n */\n saveState?: boolean;\n /**\n * (optional) use to change launch animation for miniapp.\n */\n pageAnimation?: 'BOTTOM_TO_TOP' | 'TOP_TO_BOTTOM' | 'LEFT_TO_RIGHT' | 'RIGHT_TO_LEFT' | 'FADE_IN';\n};\n\nexport type MiniappListResult = {\n miniapps?: Array<MiniappData>;\n error?: string;\n}\n\nexport type MiniappData = {\n appId: string;\n name: string;\n category: string;\n description: string;\n logo: string;\n}\n\nexport type ConsentScreenConfig = {\n title?: string;\n noRequiredFieldsDescription?: string;\n requiredFieldsDescription?: string;\n allowButtonTitle?: string;\n cancelButtonTitle?: string;\n};"]}
@@ -37,4 +37,7 @@ struct ConfigOptions: Record {
37
37
 
38
38
  @Field
39
39
  var showAboutPage: Bool = true
40
+
41
+ @Field
42
+ var consentScreenConfig: ConsentScreenConfigOptions?
40
43
  }
@@ -0,0 +1,25 @@
1
+ //
2
+ // ConsentScreenConfigOptions.swift
3
+ // ExpoBoxoSdk
4
+ //
5
+ // Created by Azamat Kushmanov on 29/10/25.
6
+ //
7
+
8
+ import ExpoModulesCore
9
+
10
+ struct ConsentScreenConfigOptions : Record {
11
+ @Field
12
+ var title: String?
13
+
14
+ @Field
15
+ var noRequiredFieldsDescription: String?
16
+
17
+ @Field
18
+ var requiredFieldsDescription: String?
19
+
20
+ @Field
21
+ var allowButtonTitle: String?
22
+
23
+ @Field
24
+ var cancelButtonTitle: String?
25
+ }
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
  s.static_framework = true
17
17
 
18
18
  s.dependency 'ExpoModulesCore'
19
- s.dependency 'BoxoSDK', '1.19.0'
19
+ s.dependency 'BoxoSDK', '1.19.1'
20
20
 
21
21
  # Swift/Objective-C compatibility
22
22
  s.pod_target_xcconfig = {
@@ -27,6 +27,17 @@ public class ExpoBoxoSdkModule: Module {
27
27
  config.showClearCache = options.showClearCache
28
28
  config.showAboutPage = options.showAboutPage
29
29
 
30
+ if let consentConfig = options.consentScreenConfig {
31
+ let consentScreenConfig = ConsentScreenConfig()
32
+ consentScreenConfig.title = consentConfig.title ?? consentScreenConfig.title
33
+ consentScreenConfig.noRequiredFieldsDescription = consentConfig.noRequiredFieldsDescription ?? consentScreenConfig.noRequiredFieldsDescription
34
+ consentScreenConfig.requiredFieldsDescription = consentConfig.requiredFieldsDescription ?? consentScreenConfig.requiredFieldsDescription
35
+ consentScreenConfig.allowButtonTitle = consentConfig.allowButtonTitle ?? consentScreenConfig.allowButtonTitle
36
+ consentScreenConfig.cancelButtonTitle = consentConfig.cancelButtonTitle ?? consentScreenConfig.cancelButtonTitle
37
+
38
+ config.consentScreenConfig = consentScreenConfig
39
+ }
40
+
30
41
  Boxo.shared.setConfig(config: config)
31
42
  }
32
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appboxo/expo-boxo-sdk",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "Expo wrapper over Boxo SDK for IOS and Android.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -78,6 +78,11 @@ export type ConfigOptions = {
78
78
  * use it to hide "About Page" from Miniapp menu
79
79
  */
80
80
  showAboutPage?: boolean;
81
+
82
+ /**
83
+ * use it to customize the consent screen
84
+ */
85
+ consentScreenConfig?: ConsentScreenConfig
81
86
  };
82
87
 
83
88
  export type MiniappOptions = {
@@ -132,3 +137,10 @@ export type MiniappData = {
132
137
  logo: string;
133
138
  }
134
139
 
140
+ export type ConsentScreenConfig = {
141
+ title?: string;
142
+ noRequiredFieldsDescription?: string;
143
+ requiredFieldsDescription?: string;
144
+ allowButtonTitle?: string;
145
+ cancelButtonTitle?: string;
146
+ };
File without changes
@@ -1,2 +0,0 @@
1
- #Wed Oct 22 15:22:48 KGT 2025
2
- gradle.version=8.13
File without changes
@@ -1,177 +0,0 @@
1
- apply plugin: "com.android.application"
2
- apply plugin: "org.jetbrains.kotlin.android"
3
- apply plugin: "com.facebook.react"
4
-
5
- def projectRoot = rootDir.getAbsoluteFile().getParentFile().getAbsolutePath()
6
-
7
- /**
8
- * This is the configuration block to customize your React Native Android app.
9
- * By default you don't need to apply any configuration, just uncomment the lines you need.
10
- */
11
- react {
12
- entryFile = file(["node", "-e", "require('expo/scripts/resolveAppEntry')", projectRoot, "android", "absolute"].execute(null, rootDir).text.trim())
13
- reactNativeDir = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()
14
- hermesCommand = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/sdks/hermesc/%OS-BIN%/hermesc"
15
- codegenDir = new File(["node", "--print", "require.resolve('@react-native/codegen/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()
16
-
17
- enableBundleCompression = (findProperty('android.enableBundleCompression') ?: false).toBoolean()
18
- // Use Expo CLI to bundle the app, this ensures the Metro config
19
- // works correctly with Expo projects.
20
- cliFile = new File(["node", "--print", "require.resolve('@expo/cli', { paths: [require.resolve('expo/package.json')] })"].execute(null, rootDir).text.trim())
21
- bundleCommand = "export:embed"
22
-
23
- /* Folders */
24
- // The root of your project, i.e. where "package.json" lives. Default is '../..'
25
- // root = file("../../")
26
- // The folder where the react-native NPM package is. Default is ../../node_modules/react-native
27
- // reactNativeDir = file("../../node_modules/react-native")
28
- // The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
29
- // codegenDir = file("../../node_modules/@react-native/codegen")
30
-
31
- /* Variants */
32
- // The list of variants to that are debuggable. For those we're going to
33
- // skip the bundling of the JS bundle and the assets. By default is just 'debug'.
34
- // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
35
- // debuggableVariants = ["liteDebug", "prodDebug"]
36
-
37
- /* Bundling */
38
- // A list containing the node command and its flags. Default is just 'node'.
39
- // nodeExecutableAndArgs = ["node"]
40
-
41
- //
42
- // The path to the CLI configuration file. Default is empty.
43
- // bundleConfig = file(../rn-cli.config.js)
44
- //
45
- // The name of the generated asset file containing your JS bundle
46
- // bundleAssetName = "MyApplication.android.bundle"
47
- //
48
- // The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
49
- // entryFile = file("../js/MyApplication.android.js")
50
- //
51
- // A list of extra flags to pass to the 'bundle' commands.
52
- // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
53
- // extraPackagerArgs = []
54
-
55
- /* Hermes Commands */
56
- // The hermes compiler command to run. By default it is 'hermesc'
57
- // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
58
- //
59
- // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
60
- // hermesFlags = ["-O", "-output-source-map"]
61
-
62
- /* Autolinking */
63
- autolinkLibrariesWithApp()
64
- }
65
-
66
- /**
67
- * Set this to true to Run Proguard on Release builds to minify the Java bytecode.
68
- */
69
- def enableProguardInReleaseBuilds = (findProperty('android.enableProguardInReleaseBuilds') ?: false).toBoolean()
70
-
71
- /**
72
- * The preferred build flavor of JavaScriptCore (JSC)
73
- *
74
- * For example, to use the international variant, you can use:
75
- * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
76
- *
77
- * The international variant includes ICU i18n library and necessary data
78
- * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
79
- * give correct results when using with locales other than en-US. Note that
80
- * this variant is about 6MiB larger per architecture than default.
81
- */
82
- def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
83
-
84
- android {
85
- ndkVersion rootProject.ext.ndkVersion
86
-
87
- buildToolsVersion rootProject.ext.buildToolsVersion
88
- compileSdk rootProject.ext.compileSdkVersion
89
-
90
- namespace "com.appboxoexpoboxosdk"
91
- defaultConfig {
92
- applicationId "com.appboxoexpoboxosdk"
93
- minSdkVersion rootProject.ext.minSdkVersion
94
- targetSdkVersion rootProject.ext.targetSdkVersion
95
- versionCode 1
96
- versionName "1.0"
97
- }
98
- signingConfigs {
99
- debug {
100
- storeFile file('debug.keystore')
101
- storePassword 'android'
102
- keyAlias 'androiddebugkey'
103
- keyPassword 'android'
104
- }
105
- }
106
- buildTypes {
107
- debug {
108
- signingConfig signingConfigs.debug
109
- }
110
- release {
111
- // Caution! In production, you need to generate your own keystore file.
112
- // see https://reactnative.dev/docs/signed-apk-android.
113
- signingConfig signingConfigs.debug
114
- shrinkResources (findProperty('android.enableShrinkResourcesInReleaseBuilds')?.toBoolean() ?: false)
115
- minifyEnabled enableProguardInReleaseBuilds
116
- proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
117
- crunchPngs (findProperty('android.enablePngCrunchInReleaseBuilds')?.toBoolean() ?: true)
118
- }
119
- }
120
- packagingOptions {
121
- jniLibs {
122
- useLegacyPackaging (findProperty('expo.useLegacyPackaging')?.toBoolean() ?: false)
123
- }
124
- }
125
- androidResources {
126
- ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~'
127
- }
128
- }
129
-
130
- // Apply static values from `gradle.properties` to the `android.packagingOptions`
131
- // Accepts values in comma delimited lists, example:
132
- // android.packagingOptions.pickFirsts=/LICENSE,**/picasa.ini
133
- ["pickFirsts", "excludes", "merges", "doNotStrip"].each { prop ->
134
- // Split option: 'foo,bar' -> ['foo', 'bar']
135
- def options = (findProperty("android.packagingOptions.$prop") ?: "").split(",");
136
- // Trim all elements in place.
137
- for (i in 0..<options.size()) options[i] = options[i].trim();
138
- // `[] - ""` is essentially `[""].filter(Boolean)` removing all empty strings.
139
- options -= ""
140
-
141
- if (options.length > 0) {
142
- println "android.packagingOptions.$prop += $options ($options.length)"
143
- // Ex: android.packagingOptions.pickFirsts += '**/SCCS/**'
144
- options.each {
145
- android.packagingOptions[prop] += it
146
- }
147
- }
148
- }
149
-
150
- dependencies {
151
- // The version of react-native is set by the React Native Gradle Plugin
152
- implementation("com.facebook.react:react-android")
153
-
154
- def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true";
155
- def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true";
156
- def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true";
157
-
158
- if (isGifEnabled) {
159
- // For animated gif support
160
- implementation("com.facebook.fresco:animated-gif:${expoLibs.versions.fresco.get()}")
161
- }
162
-
163
- if (isWebpEnabled) {
164
- // For webp support
165
- implementation("com.facebook.fresco:webpsupport:${expoLibs.versions.fresco.get()}")
166
- if (isWebpAnimatedEnabled) {
167
- // Animated webp support
168
- implementation("com.facebook.fresco:animated-webp:${expoLibs.versions.fresco.get()}")
169
- }
170
- }
171
-
172
- if (hermesEnabled.toBoolean()) {
173
- implementation("com.facebook.react:hermes-android")
174
- } else {
175
- implementation jscFlavor
176
- }
177
- }
Binary file
@@ -1,14 +0,0 @@
1
- # Add project specific ProGuard rules here.
2
- # By default, the flags in this file are appended to flags specified
3
- # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4
- # You can edit the include path and order by changing the proguardFiles
5
- # directive in build.gradle.
6
- #
7
- # For more details, see
8
- # http://developer.android.com/guide/developing/tools/proguard.html
9
-
10
- # react-native-reanimated
11
- -keep class com.swmansion.reanimated.** { *; }
12
- -keep class com.facebook.react.turbomodule.** { *; }
13
-
14
- # Add any project specific keep options here:
@@ -1,7 +0,0 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- xmlns:tools="http://schemas.android.com/tools">
3
-
4
- <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
5
-
6
- <application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" tools:replace="android:usesCleartextTraffic" />
7
- </manifest>
@@ -1,29 +0,0 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
-
3
- <uses-permission android:name="android.permission.INTERNET"/>
4
- <!-- OPTIONAL PERMISSIONS, REMOVE WHATEVER YOU DO NOT NEED -->
5
- <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
6
- <uses-permission android:name="android.permission.VIBRATE"/>
7
- <!-- These require runtime permissions on M -->
8
- <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
9
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
10
- <!-- END OPTIONAL PERMISSIONS -->
11
-
12
- <queries>
13
- <!-- Support checking for http(s) links via the Linking API -->
14
- <intent>
15
- <action android:name="android.intent.action.VIEW" />
16
- <category android:name="android.intent.category.BROWSABLE" />
17
- <data android:scheme="https" />
18
- </intent>
19
- </queries>
20
-
21
- <application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme" android:supportsRtl="true">
22
- <activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true">
23
- <intent-filter>
24
- <action android:name="android.intent.action.MAIN"/>
25
- <category android:name="android.intent.category.LAUNCHER"/>
26
- </intent-filter>
27
- </activity>
28
- </application>
29
- </manifest>
@@ -1,61 +0,0 @@
1
- package com.appboxoexpoboxosdk
2
-
3
- import android.os.Build
4
- import android.os.Bundle
5
-
6
- import com.facebook.react.ReactActivity
7
- import com.facebook.react.ReactActivityDelegate
8
- import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
9
- import com.facebook.react.defaults.DefaultReactActivityDelegate
10
-
11
- import expo.modules.ReactActivityDelegateWrapper
12
-
13
- class MainActivity : ReactActivity() {
14
- override fun onCreate(savedInstanceState: Bundle?) {
15
- // Set the theme to AppTheme BEFORE onCreate to support
16
- // coloring the background, status bar, and navigation bar.
17
- // This is required for expo-splash-screen.
18
- setTheme(R.style.AppTheme);
19
- super.onCreate(null)
20
- }
21
-
22
- /**
23
- * Returns the name of the main component registered from JavaScript. This is used to schedule
24
- * rendering of the component.
25
- */
26
- override fun getMainComponentName(): String = "main"
27
-
28
- /**
29
- * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
30
- * which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
31
- */
32
- override fun createReactActivityDelegate(): ReactActivityDelegate {
33
- return ReactActivityDelegateWrapper(
34
- this,
35
- BuildConfig.IS_NEW_ARCHITECTURE_ENABLED,
36
- object : DefaultReactActivityDelegate(
37
- this,
38
- mainComponentName,
39
- fabricEnabled
40
- ){})
41
- }
42
-
43
- /**
44
- * Align the back button behavior with Android S
45
- * where moving root activities to background instead of finishing activities.
46
- * @see <a href="https://developer.android.com/reference/android/app/Activity#onBackPressed()">onBackPressed</a>
47
- */
48
- override fun invokeDefaultOnBackPressed() {
49
- if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) {
50
- if (!moveTaskToBack(false)) {
51
- // For non-root activities, use the default implementation to finish them.
52
- super.invokeDefaultOnBackPressed()
53
- }
54
- return
55
- }
56
-
57
- // Use the default back button implementation on Android S
58
- // because it's doing more than [Activity.moveTaskToBack] in fact.
59
- super.invokeDefaultOnBackPressed()
60
- }
61
- }
@@ -1,57 +0,0 @@
1
- package com.appboxoexpoboxosdk
2
-
3
- import android.app.Application
4
- import android.content.res.Configuration
5
-
6
- import com.facebook.react.PackageList
7
- import com.facebook.react.ReactApplication
8
- import com.facebook.react.ReactNativeHost
9
- import com.facebook.react.ReactPackage
10
- import com.facebook.react.ReactHost
11
- import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
12
- import com.facebook.react.defaults.DefaultReactNativeHost
13
- import com.facebook.react.soloader.OpenSourceMergedSoMapping
14
- import com.facebook.soloader.SoLoader
15
-
16
- import expo.modules.ApplicationLifecycleDispatcher
17
- import expo.modules.ReactNativeHostWrapper
18
-
19
- class MainApplication : Application(), ReactApplication {
20
-
21
- override val reactNativeHost: ReactNativeHost = ReactNativeHostWrapper(
22
- this,
23
- object : DefaultReactNativeHost(this) {
24
- override fun getPackages(): List<ReactPackage> {
25
- val packages = PackageList(this).packages
26
- // Packages that cannot be autolinked yet can be added manually here, for example:
27
- // packages.add(MyReactNativePackage())
28
- return packages
29
- }
30
-
31
- override fun getJSMainModuleName(): String = ".expo/.virtual-metro-entry"
32
-
33
- override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
34
-
35
- override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
36
- override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
37
- }
38
- )
39
-
40
- override val reactHost: ReactHost
41
- get() = ReactNativeHostWrapper.createReactHost(applicationContext, reactNativeHost)
42
-
43
- override fun onCreate() {
44
- super.onCreate()
45
- SoLoader.init(this, OpenSourceMergedSoMapping)
46
- if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
47
- // If you opted-in for the New Architecture, we load the native entry point for this app.
48
- load()
49
- }
50
- ApplicationLifecycleDispatcher.onApplicationCreate(this)
51
- }
52
-
53
- override fun onConfigurationChanged(newConfig: Configuration) {
54
- super.onConfigurationChanged(newConfig)
55
- ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig)
56
- }
57
- }
@@ -1,6 +0,0 @@
1
- <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
2
- <item android:drawable="@color/splashscreen_background"/>
3
- <item>
4
- <bitmap android:gravity="center" android:src="@drawable/splashscreen_logo"/>
5
- </item>
6
- </layer-list>
@@ -1,37 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Copyright (C) 2014 The Android Open Source Project
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- -->
16
- <inset xmlns:android="http://schemas.android.com/apk/res/android"
17
- android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
18
- android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
19
- android:insetTop="@dimen/abc_edit_text_inset_top_material"
20
- android:insetBottom="@dimen/abc_edit_text_inset_bottom_material"
21
- >
22
-
23
- <selector>
24
- <!--
25
- This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
26
- The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
27
- NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
28
-
29
- <item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
30
-
31
- For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
32
- -->
33
- <item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
34
- <item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
35
- </selector>
36
-
37
- </inset>
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
- <resources>
3
- <color name="splashscreen_background">#FFFFFF</color>
4
- </resources>
@@ -1,3 +0,0 @@
1
- <resources>
2
- <string name="app_name">@appboxo/expo-boxo-sdk</string>
3
- </resources>
@@ -1,8 +0,0 @@
1
- <resources>
2
- <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
3
- <item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
4
- </style>
5
- <style name="Theme.App.SplashScreen" parent="AppTheme">
6
- <item name="android:windowBackground">@drawable/splashscreen_logo</item>
7
- </style>
8
- </resources>
@@ -1,7 +0,0 @@
1
- distributionBase=GRADLE_USER_HOME
2
- distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
4
- networkTimeout=10000
5
- validateDistributionUrl=true
6
- zipStoreBase=GRADLE_USER_HOME
7
- zipStorePath=wrapper/dists