Skip to content

Commit bb6c1a6

Browse files
Applied MVVM pattern
1 parent f4d87b0 commit bb6c1a6

File tree

19 files changed

+593
-418
lines changed

19 files changed

+593
-418
lines changed

android/app/build.gradle

+8-8
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,26 @@ dependencies {
3838
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
3939
implementation project(':detector')
4040

41-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3'
41+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0'
4242

4343
implementation "androidx.camera:camera-camera2:1.0.0"
4444
implementation "androidx.camera:camera-lifecycle:1.0.0"
45-
implementation "androidx.camera:camera-view:1.0.0-alpha24"
45+
implementation "androidx.camera:camera-view:1.0.0-alpha26"
4646

47-
implementation 'androidx.appcompat:appcompat:1.2.0'
47+
implementation 'androidx.appcompat:appcompat:1.3.0'
4848
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0'
4949
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
5050
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
51+
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
52+
implementation 'androidx.activity:activity-ktx:1.2.3'
5153

52-
implementation 'com.google.android.material:material:1.3.0'
53-
implementation 'com.google.code.gson:gson:2.8.6'
54+
implementation 'com.google.android.material:material:1.4.0'
55+
implementation 'com.google.code.gson:gson:2.8.7'
5456

5557
// Uncomment if you want to enable memory leak detection
5658
// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
5759

58-
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
59-
// testImplementation "androidx.test:runner:1.3.0"
60-
// testImplementation "androidx.test.ext:junit:1.1.2"
60+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
6161
androidTestImplementation 'com.google.truth:truth:1.1.2'
6262

6363
}

android/app/src/main/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
tools:ignore="LockedOrientationActivity">
1616

1717
<activity
18-
android:name="org.tensorflow.lite.examples.detector.activities.DetectorActivity"
18+
android:name="org.tensorflow.lite.examples.detector.ui.detector.DetectorActivity"
1919
android:label="@string/tfe_od_app_name"
2020
android:screenOrientation="portrait" />
2121

2222
<activity
23-
android:name=".activities.MainActivity"
23+
android:name=".ui.main.MainActivity"
2424
android:screenOrientation="portrait">
2525
<intent-filter>
2626
<action android:name="android.intent.action.MAIN" />

android/app/src/main/java/org/tensorflow/lite/examples/detector/activities/DetectorActivity.kt

-226
This file was deleted.

0 commit comments

Comments
 (0)