dynamsoft-capture-vision-react-native 3.2.5000 → 3.2.5001
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/app.plugin.js +21 -0
- package/package.json +3 -2
package/app.plugin.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const { withProjectBuildGradle } = require("@expo/config-plugins");
|
|
2
|
+
|
|
3
|
+
const dynamsoft_allprojects_block = `
|
|
4
|
+
allprojects {
|
|
5
|
+
repositories {
|
|
6
|
+
maven {
|
|
7
|
+
url "https://download2.dynamsoft.com/maven/aar"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
12
|
+
|
|
13
|
+
module.exports = (config) => {
|
|
14
|
+
return withProjectBuildGradle(config, (config) => {
|
|
15
|
+
if(config.modResults.contents.includes('https://download2.dynamsoft.com/maven/aar')) {
|
|
16
|
+
return config;
|
|
17
|
+
}
|
|
18
|
+
config.modResults.contents += dynamsoft_allprojects_block;
|
|
19
|
+
return config;
|
|
20
|
+
});
|
|
21
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dynamsoft-capture-vision-react-native",
|
|
3
3
|
"title": "Dynamsoft Capture Vision React Native",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.5001",
|
|
5
5
|
"description": "The Dynamsoft Capture Vision React Native SDK provides a wrapper for building barcode scanning, document scanning and MRZ scanning applications with React Native.",
|
|
6
6
|
"homepage": "https://github.com/Dynamsoft/capture-vision-react-native-samples",
|
|
7
7
|
"main": "src/index.tsx",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"!android/gradlew",
|
|
18
18
|
"!android/gradlew.bat",
|
|
19
19
|
"!android/local.properties",
|
|
20
|
-
"!node_modules"
|
|
20
|
+
"!node_modules",
|
|
21
|
+
"app.plugin.js"
|
|
21
22
|
],
|
|
22
23
|
"scripts": {
|
|
23
24
|
"test": "jest",
|