File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
camerax-mlkit-pack/src/main/java/com/furkan/camerax_mlkit_pack Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ android {
33
33
}
34
34
35
35
dependencies {
36
- implementation project(' :camerax-mlkit-pack' )
37
36
// Default implementations
38
37
implementation ' androidx.core:core-ktx:1.7.0'
39
38
implementation ' androidx.appcompat:appcompat:1.6.0'
@@ -46,4 +45,6 @@ dependencies {
46
45
// Extra implementations
47
46
implementation " androidx.camera:camera-view:1.2.1"
48
47
implementation " androidx.lifecycle:lifecycle-runtime-ktx:2.5.1"
48
+
49
+ implementation ' com.github.furkanturkn:camerax-mlkit-pack:1.0'
49
50
}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ import java.util.concurrent.ExecutorService
45
45
import java.util.concurrent.Executors
46
46
import java.util.concurrent.TimeUnit
47
47
48
- class MlKitReaderManager (
48
+ class CameraxManager (
49
49
context : Context ,
50
50
previewView : PreviewView ,
51
51
focusRing : ImageView ,
@@ -116,7 +116,7 @@ class MlKitReaderManager(
116
116
companion object {
117
117
@SuppressLint(" StaticFieldLeak" )
118
118
@Volatile
119
- private var INSTANCE : MlKitReaderManager ? = null
119
+ private var INSTANCE : CameraxManager ? = null
120
120
121
121
fun getInstance (
122
122
context : Context ,
@@ -126,7 +126,7 @@ class MlKitReaderManager(
126
126
accuracyLevel : Int = Constants .BARCODE_ACCURACY_DEFAULT_COUNT
127
127
) = INSTANCE
128
128
? : synchronized(this ) {
129
- INSTANCE ? : MlKitReaderManager (
129
+ INSTANCE ? : CameraxManager (
130
130
context,
131
131
previewView,
132
132
focusRing,
Original file line number Diff line number Diff line change @@ -2,13 +2,15 @@ pluginManagement {
2
2
repositories {
3
3
google()
4
4
mavenCentral()
5
+ maven { url ' https://jitpack.io' }
5
6
gradlePluginPortal()
6
7
}
7
8
}
8
9
dependencyResolutionManagement {
9
10
repositoriesMode. set(RepositoriesMode . FAIL_ON_PROJECT_REPOS )
10
11
repositories {
11
12
google()
13
+ maven { url ' https://jitpack.io' }
12
14
mavenCentral()
13
15
}
14
16
}
You can’t perform that action at this time.
0 commit comments