@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 +6 -0
- package/android/build.gradle +3 -3
- package/app.plugin.js +1 -0
- package/ios/ExpoBoxoSdk.podspec +1 -1
- package/ios/appboxoexpoboxosdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
- package/ios/appboxoexpoboxosdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
- package/package.json +7 -4
- package/plugin/build/index.d.ts +3 -0
- package/plugin/build/index.js +12 -0
- package/plugin/build/withAndroidPlugin.d.ts +3 -0
- package/plugin/build/withAndroidPlugin.js +15 -0
- package/plugin/build/withIosPlugin.d.ts +3 -0
- package/plugin/build/withIosPlugin.js +12 -0
- package/plugin/src/index.ts +10 -0
- package/plugin/src/withAndroidPlugin.ts +18 -0
- package/plugin/src/withIosPlugin.ts +13 -0
- package/plugin/tsconfig.json +9 -0
- package/plugin/tsconfig.tsbuildinfo +1 -0
- package/tsconfig.json +0 -1
package/CHANGELOG.md
CHANGED
package/android/build.gradle
CHANGED
|
@@ -23,10 +23,10 @@ if (useManagedAndroidSdkVersions) {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
project.android {
|
|
26
|
-
compileSdkVersion safeExtGet("compileSdkVersion",
|
|
26
|
+
compileSdkVersion safeExtGet("compileSdkVersion", 35)
|
|
27
27
|
defaultConfig {
|
|
28
28
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
29
|
-
targetSdkVersion safeExtGet("targetSdkVersion",
|
|
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.
|
|
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');
|
package/ios/ExpoBoxoSdk.podspec
CHANGED
|
File without changes
|
package/ios/appboxoexpoboxosdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appboxo/expo-boxo-sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Expo wrapper over
|
|
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,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,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,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 @@
|
|
|
1
|
+
{"root":["./src/index.ts","./src/withandroidplugin.ts","./src/withiosplugin.ts"],"version":"5.8.3"}
|
package/tsconfig.json
CHANGED