react-native-okaycam 1.1.29 → 1.1.31
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/README.md +16 -3
- package/android/build.gradle +1 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,9 +39,16 @@ end
|
|
|
39
39
|
|
|
40
40
|
#### Android Issue
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
**Add following rules for proguard in the `android/app/proguard-rules.pro`**
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
```
|
|
45
|
+
-keep class org.pytorch.** { *; }
|
|
46
|
+
-keep class com.facebook.jni.** { *; }
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**Duplicate class org.hamcrest.xxx**
|
|
50
|
+
|
|
51
|
+
If you encouter the errors above, you may exclude junit module in the `android/app/build.gradle`
|
|
45
52
|
|
|
46
53
|
```
|
|
47
54
|
configurations { compile.exclude group: "junit", module: "junit" }
|
|
@@ -193,11 +200,17 @@ captureDocument(
|
|
|
193
200
|
})
|
|
194
201
|
```
|
|
195
202
|
|
|
203
|
+
> **_NOTE:_** <br/>
|
|
204
|
+
Supported image format : JPG | PNG | SVG <br/>
|
|
205
|
+
Preffered size : less than 500KB
|
|
206
|
+
|
|
196
207
|
### Result
|
|
197
208
|
| Result | Description |
|
|
198
209
|
|--|--|
|
|
199
210
|
|fullDocumentImage|Result of firstPhotoConfig|
|
|
200
|
-
|fullDocumentImage2|Result of secondPhotoConfig. Will only return if secondPhotoConfig is configured|
|
|
211
|
+
|fullDocumentImage2|Result of secondPhotoConfig. Will only return if secondPhotoConfig is configured. if secondPhotoConfig is not configured, it will be original image of fullDocumentImage|
|
|
212
|
+
|fullDocumentImage3|Original Image if it exist|
|
|
213
|
+
|fullDocumentImage4|Original Image if it exist|
|
|
201
214
|
|
|
202
215
|
## OkayCam Selfie
|
|
203
216
|
### Configuration
|
package/android/build.gradle
CHANGED
|
@@ -37,16 +37,10 @@ repositories {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
dependencies {
|
|
40
|
-
implementation ('org.pytorch:pytorch_android_lite:1.5.0'){
|
|
41
|
-
exclude module: 'fbjni-java-only'
|
|
42
|
-
}
|
|
43
|
-
implementation ('org.pytorch:pytorch_android_torchvision_lite:1.5.0'){
|
|
44
|
-
exclude module: 'fbjni-java-only'
|
|
45
|
-
}
|
|
46
40
|
implementation('com.facebook.react:react-native:+'){
|
|
47
41
|
exclude module: 'fbjni-java-only'
|
|
48
42
|
}
|
|
49
|
-
implementation('com.innov8tif.okaycam:OkayCam:
|
|
43
|
+
implementation('com.innov8tif.okaycam:OkayCam:1.1.18@aar') {
|
|
50
44
|
transitive = true
|
|
51
45
|
}
|
|
52
46
|
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
|