Skip to content

Commit 3468b47

Browse files
committed
[refactor] change manager class name
1 parent c340565 commit 3468b47

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ android {
3333
}
3434

3535
dependencies {
36-
implementation project(':camerax-mlkit-pack')
3736
//Default implementations
3837
implementation 'androidx.core:core-ktx:1.7.0'
3938
implementation 'androidx.appcompat:appcompat:1.6.0'
@@ -46,4 +45,6 @@ dependencies {
4645
//Extra implementations
4746
implementation "androidx.camera:camera-view:1.2.1"
4847
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.5.1"
48+
49+
implementation 'com.github.furkanturkn:camerax-mlkit-pack:1.0'
4950
}

camerax-mlkit-pack/src/main/java/com/furkan/camerax_mlkit_pack/MlKitReaderManager.kt renamed to camerax-mlkit-pack/src/main/java/com/furkan/camerax_mlkit_pack/CameraxManager.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import java.util.concurrent.ExecutorService
4545
import java.util.concurrent.Executors
4646
import java.util.concurrent.TimeUnit
4747

48-
class MlKitReaderManager(
48+
class CameraxManager(
4949
context: Context,
5050
previewView: PreviewView,
5151
focusRing: ImageView,
@@ -116,7 +116,7 @@ class MlKitReaderManager(
116116
companion object {
117117
@SuppressLint("StaticFieldLeak")
118118
@Volatile
119-
private var INSTANCE: MlKitReaderManager? = null
119+
private var INSTANCE: CameraxManager? = null
120120

121121
fun getInstance(
122122
context: Context,
@@ -126,7 +126,7 @@ class MlKitReaderManager(
126126
accuracyLevel: Int = Constants.BARCODE_ACCURACY_DEFAULT_COUNT
127127
) = INSTANCE
128128
?: synchronized(this) {
129-
INSTANCE ?: MlKitReaderManager(
129+
INSTANCE ?: CameraxManager(
130130
context,
131131
previewView,
132132
focusRing,

settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ pluginManagement {
22
repositories {
33
google()
44
mavenCentral()
5+
maven { url 'https://jitpack.io' }
56
gradlePluginPortal()
67
}
78
}
89
dependencyResolutionManagement {
910
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
1011
repositories {
1112
google()
13+
maven { url 'https://jitpack.io' }
1214
mavenCentral()
1315
}
1416
}

0 commit comments

Comments
 (0)