@appboxo/expo-boxo-sdk 0.6.2 → 0.7.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/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
1
  # Changelog
2
+ ## [0.7.0]
3
+ - bump native sdk versions
4
+
5
+ ## [0.6.3]
6
+ - add app.plugin.js
7
+
2
8
  ## [0.6.2]
3
9
  - Some improvements in native sdk
4
10
 
@@ -23,10 +23,10 @@ if (useManagedAndroidSdkVersions) {
23
23
  }
24
24
  }
25
25
  project.android {
26
- compileSdkVersion safeExtGet("compileSdkVersion", 34)
26
+ compileSdkVersion safeExtGet("compileSdkVersion", 35)
27
27
  defaultConfig {
28
28
  minSdkVersion safeExtGet("minSdkVersion", 21)
29
- targetSdkVersion safeExtGet("targetSdkVersion", 34)
29
+ targetSdkVersion safeExtGet("targetSdkVersion", 35)
30
30
  }
31
31
  }
32
32
  }
@@ -42,7 +42,7 @@ android {
42
42
  }
43
43
  }
44
44
  dependencies {
45
- implementation('io.boxo.sdk:boxo-android:1.23.0') {
45
+ implementation('io.boxo.sdk:boxo-android:1.31.0') {
46
46
  exclude group: 'com.google.android.gms', module: 'play-services-location'
47
47
  }
48
48
  }
package/app.plugin.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./plugin/build');
@@ -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.10.1'
19
+ s.dependency 'BoxoSDK', '1.16.0'
20
20
 
21
21
  # Swift/Objective-C compatibility
22
22
  s.pod_target_xcconfig = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appboxo/expo-boxo-sdk",
3
- "version": "0.6.2",
4
- "description": "Expo wrapper over Appboxo SDK for IOS and Android.",
3
+ "version": "0.7.0",
4
+ "description": "Expo wrapper over Boxo SDK for IOS and Android.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
7
7
  "scripts": {
@@ -28,11 +28,14 @@
28
28
  "author": "Boxo <support@appboxo.com> (https://github.com/Appboxo)",
29
29
  "license": "MIT",
30
30
  "homepage": "https://github.com/Appboxo/expo-boxo-sdk#readme",
31
- "dependencies": {},
31
+ "dependencies": {
32
+ "@expo/config-plugins": "^10.1.2"
33
+ },
32
34
  "devDependencies": {
33
35
  "@types/react": "^18.0.25",
34
36
  "expo-module-scripts": "^3.5.2",
35
- "expo-modules-core": "^1.12.20"
37
+ "expo-modules-core": "^1.12.20",
38
+ "tsx": "^4.20.3"
36
39
  },
37
40
  "peerDependencies": {
38
41
  "expo": "*",
@@ -0,0 +1,3 @@
1
+ import { ConfigPlugin } from '@expo/config-plugins';
2
+ declare const withPlugin: ConfigPlugin;
3
+ export default withPlugin;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const withAndroidPlugin_1 = __importDefault(require("./withAndroidPlugin"));
7
+ const withIosPlugin_1 = __importDefault(require("./withIosPlugin"));
8
+ const withPlugin = config => {
9
+ config = (0, withAndroidPlugin_1.default)(config);
10
+ return (0, withIosPlugin_1.default)(config);
11
+ };
12
+ exports.default = withPlugin;
@@ -0,0 +1,3 @@
1
+ import { ConfigPlugin } from '@expo/config-plugins';
2
+ declare const withAndroidPlugin: ConfigPlugin;
3
+ export default withAndroidPlugin;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const config_plugins_1 = require("@expo/config-plugins");
4
+ const withAndroidPlugin = config => {
5
+ return (0, config_plugins_1.withAndroidManifest)(config, config => {
6
+ const mainApplication = config_plugins_1.AndroidConfig.Manifest.getMainApplicationOrThrow(config.modResults);
7
+ // AndroidConfig.Manifest.addMetaDataItemToMainApplication(
8
+ // mainApplication,
9
+ // 'Test Key',
10
+ // 'Value'
11
+ // );
12
+ return config;
13
+ });
14
+ };
15
+ exports.default = withAndroidPlugin;
@@ -0,0 +1,3 @@
1
+ import { ConfigPlugin } from '@expo/config-plugins';
2
+ declare const withIosPlugin: ConfigPlugin;
3
+ export default withIosPlugin;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const config_plugins_1 = require("@expo/config-plugins");
4
+ const withIosPlugin = config => {
5
+ return (0, config_plugins_1.withInfoPlist)(config, config => {
6
+ config.modResults.ITSAppUsesNonExemptEncryption = false;
7
+ config.modResults['NSPhotoLibraryUsageDescription'] = 'To select images from gallery';
8
+ config.modResults['NSCameraUsageDescription'] = 'The camera needs to scan QR codes';
9
+ return config;
10
+ });
11
+ };
12
+ exports.default = withIosPlugin;
@@ -0,0 +1,10 @@
1
+ import { ConfigPlugin } from '@expo/config-plugins';
2
+ import withAndroidPlugin from './withAndroidPlugin';
3
+ import withIosPlugin from './withIosPlugin';
4
+
5
+ const withPlugin: ConfigPlugin = config => {
6
+ config = withAndroidPlugin(config);
7
+ return withIosPlugin(config);
8
+ };
9
+
10
+ export default withPlugin;
@@ -0,0 +1,18 @@
1
+ import { ConfigPlugin, AndroidConfig, withAndroidManifest } from '@expo/config-plugins';
2
+
3
+ const withAndroidPlugin: ConfigPlugin = config => {
4
+
5
+ return withAndroidManifest(config, config => {
6
+ const mainApplication = AndroidConfig.Manifest.getMainApplicationOrThrow(config.modResults);
7
+
8
+ // AndroidConfig.Manifest.addMetaDataItemToMainApplication(
9
+ // mainApplication,
10
+ // 'Test Key',
11
+ // 'Value'
12
+ // );
13
+
14
+ return config;
15
+ });
16
+ };
17
+
18
+ export default withAndroidPlugin;
@@ -0,0 +1,13 @@
1
+ import { ConfigPlugin, withInfoPlist } from '@expo/config-plugins';
2
+
3
+ const withIosPlugin: ConfigPlugin = config => {
4
+
5
+ return withInfoPlist(config, config => {
6
+ config.modResults.ITSAppUsesNonExemptEncryption = false;
7
+ config.modResults['NSPhotoLibraryUsageDescription'] = 'To select images from gallery';
8
+ config.modResults['NSCameraUsageDescription'] = 'The camera needs to scan QR codes';
9
+ return config;
10
+ });
11
+ };
12
+
13
+ export default withIosPlugin;
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "expo-module-scripts/tsconfig.plugin",
3
+ "compilerOptions": {
4
+ "outDir": "build",
5
+ "rootDir": "src"
6
+ },
7
+ "include": ["./src"],
8
+ "exclude": ["**/__mocks__/*", "**/__tests__/*"]
9
+ }
@@ -0,0 +1 @@
1
+ {"root":["./src/index.ts","./src/withandroidplugin.ts","./src/withiosplugin.ts"],"version":"5.8.3"}
package/tsconfig.json CHANGED
@@ -1,4 +1,3 @@
1
- // @generated by expo-module-scripts
2
1
  {
3
2
  "extends": "expo-module-scripts/tsconfig.base",
4
3
  "compilerOptions": {