Skip to content

Commit 336413a

Browse files
authored
fix namespace
1 parent 9fb58e6 commit 336413a

File tree

1 file changed

+64
-2
lines changed

1 file changed

+64
-2
lines changed

android/build.gradle

Lines changed: 64 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,128 @@
1-
group 'com.vladih.computer_vision.flutter_vision'
1+
group 'com.vladih.computer_vision.flutter_vision'
2+
23
version '1.0'
34

5+
46
buildscript {
7+
58
repositories {
9+
610
google()
11+
712
mavenCentral()
13+
814
}
915

16+
1017
dependencies {
18+
1119
classpath 'com.android.tools.build:gradle:7.1.2'
20+
1221
}
22+
1323
}
1424

25+
1526
rootProject.allprojects {
27+
1628
repositories {
29+
1730
google()
31+
1832
mavenCentral()
33+
1934
flatDir{
35+
2036
dirs project(":flutter_vision").file("libs")
37+
2138
}
39+
2240
maven {
41+
2342
url 'https://jitpack.io'
43+
2444
}
45+
2546
maven{
47+
2648
name 'ossrh-snapshot'
49+
2750
url 'https://oss.sonatype.org/content/repositories/snapshots'
51+
2852
}
53+
2954
}
55+
3056
}
3157

58+
3259
apply plugin: 'com.android.library'
3360

61+
3462
android {
63+
3564
compileSdkVersion 31
3665

66+
67+
68+
namespace 'com.vladih.computer_vision.flutter_vision'
69+
70+
3771
compileOptions {
72+
3873
sourceCompatibility JavaVersion.VERSION_1_8
74+
3975
targetCompatibility JavaVersion.VERSION_1_8
76+
4077
}
4178

79+
4280
defaultConfig {
81+
4382
minSdkVersion 21
83+
4484
}
85+
4586
aaptOptions {
87+
4688
noCompress 'tflite'
89+
4790
noCompress 'lite'
91+
4892
}
4993

94+
5095
buildFeatures{
96+
5197
mlModelBinding true
98+
5299
}
100+
53101
}
102+
103+
54104
dependencies{
105+
55106
//implementation (files('libs/tesseract4android-release.aar'))
107+
56108
api(name:"tesseract4android-release", ext: "aar")
109+
57110
implementation 'com.github.vladiH:opencv-android:v1.0.0'
111+
58112
implementation 'org.tensorflow:tensorflow-lite:2.10.0'
113+
59114
implementation 'org.tensorflow:tensorflow-lite-api:2.10.0'
115+
60116
implementation 'org.tensorflow:tensorflow-lite-gpu:2.10.0'
117+
61118
implementation 'org.tensorflow:tensorflow-lite-gpu-api:2.10.0'
119+
62120
implementation 'org.tensorflow:tensorflow-lite-gpu-delegate-plugin:0.4.3'
121+
63122
implementation 'org.tensorflow:tensorflow-lite-support:0.4.3'
123+
64124
implementation 'org.tensorflow:tensorflow-lite-metadata:0.4.3'
125+
65126
implementation 'org.tensorflow:tensorflow-lite-select-tf-ops:2.11.0'
66-
}
127+
128+
}

0 commit comments

Comments
 (0)