capacitor-plugin-camera-forked 3.1.132 → 3.1.133
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/LICENSE +0 -0
- package/android/build.gradle +32 -27
- package/ios/Plugin/PreviewView.swift +0 -0
- package/ios/Plugin/ScanRegion.swift +0 -0
- package/ios/Plugin/TestTFLite.swift +0 -0
- package/package.json +1 -1
package/LICENSE
CHANGED
|
File without changes
|
package/android/build.gradle
CHANGED
|
@@ -19,23 +19,38 @@ apply plugin: 'com.android.library'
|
|
|
19
19
|
|
|
20
20
|
android {
|
|
21
21
|
namespace "com.tonyxlh.capacitor.camera"
|
|
22
|
-
|
|
22
|
+
|
|
23
|
+
compileSdk project.hasProperty('compileSdkVersion')
|
|
24
|
+
? rootProject.ext.compileSdkVersion
|
|
25
|
+
: 34
|
|
26
|
+
|
|
23
27
|
defaultConfig {
|
|
24
|
-
minSdkVersion project.hasProperty('minSdkVersion')
|
|
25
|
-
|
|
28
|
+
minSdkVersion project.hasProperty('minSdkVersion')
|
|
29
|
+
? rootProject.ext.minSdkVersion
|
|
30
|
+
: 22
|
|
31
|
+
targetSdkVersion project.hasProperty('targetSdkVersion')
|
|
32
|
+
? rootProject.ext.targetSdkVersion
|
|
33
|
+
: 34
|
|
34
|
+
|
|
26
35
|
versionCode 1
|
|
27
36
|
versionName "1.0"
|
|
37
|
+
|
|
28
38
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
29
39
|
}
|
|
40
|
+
|
|
30
41
|
buildTypes {
|
|
31
42
|
release {
|
|
32
43
|
minifyEnabled false
|
|
33
|
-
proguardFiles getDefaultProguardFile(
|
|
44
|
+
proguardFiles getDefaultProguardFile(
|
|
45
|
+
'proguard-android.txt'
|
|
46
|
+
), 'proguard-rules.pro'
|
|
34
47
|
}
|
|
35
48
|
}
|
|
49
|
+
|
|
36
50
|
lintOptions {
|
|
37
51
|
abortOnError false
|
|
38
52
|
}
|
|
53
|
+
|
|
39
54
|
compileOptions {
|
|
40
55
|
sourceCompatibility JavaVersion.VERSION_17
|
|
41
56
|
targetCompatibility JavaVersion.VERSION_17
|
|
@@ -47,42 +62,32 @@ repositories {
|
|
|
47
62
|
mavenCentral()
|
|
48
63
|
}
|
|
49
64
|
|
|
50
|
-
/**
|
|
51
|
-
* Prevent old CameraX (1.1.0) from being pulled transitively
|
|
52
|
-
*/
|
|
53
|
-
configurations.all {
|
|
54
|
-
resolutionStrategy {
|
|
55
|
-
force "androidx.camera:camera-core:1.3.3"
|
|
56
|
-
force "androidx.camera:camera-camera2:1.3.3"
|
|
57
|
-
force "androidx.camera:camera-lifecycle:1.3.3"
|
|
58
|
-
force "androidx.camera:camera-view:1.3.3"
|
|
59
|
-
force "androidx.camera:camera-video:1.3.3"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
65
|
dependencies {
|
|
64
66
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
67
|
+
|
|
65
68
|
implementation project(':capacitor-android')
|
|
66
69
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
70
|
+
|
|
67
71
|
testImplementation "junit:junit:$junitVersion"
|
|
68
72
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
69
73
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
70
74
|
|
|
71
75
|
/**
|
|
72
|
-
* CameraX —
|
|
73
|
-
*
|
|
76
|
+
* CameraX — stable, real versions (NO BOM)
|
|
77
|
+
* 16 KB page size compatible
|
|
74
78
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
implementation "androidx.camera:camera-
|
|
78
|
-
implementation "androidx.camera:camera-
|
|
79
|
-
implementation "androidx.camera:camera-
|
|
80
|
-
implementation "androidx.camera:camera-
|
|
79
|
+
def camerax_version = "1.3.1"
|
|
80
|
+
|
|
81
|
+
implementation "androidx.camera:camera-core:$camerax_version"
|
|
82
|
+
implementation "androidx.camera:camera-camera2:$camerax_version"
|
|
83
|
+
implementation "androidx.camera:camera-lifecycle:$camerax_version"
|
|
84
|
+
implementation "androidx.camera:camera-view:$camerax_version"
|
|
85
|
+
implementation "androidx.camera:camera-video:$camerax_version"
|
|
81
86
|
|
|
82
87
|
/**
|
|
83
|
-
* TensorFlow Lite
|
|
88
|
+
* TensorFlow Lite — already 16 KB compatible
|
|
84
89
|
*/
|
|
85
90
|
implementation 'org.tensorflow:tensorflow-lite:2.14.0'
|
|
86
91
|
implementation 'org.tensorflow:tensorflow-lite-support:0.4.4'
|
|
87
92
|
implementation 'org.tensorflow:tensorflow-lite-gpu:2.14.0'
|
|
88
|
-
}
|
|
93
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED