Skip to content

Commit 42f76c4

Browse files
committed
Remove jcenter() from CameraXTfLite sample
1 parent 7e088f5 commit 42f76c4

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

CameraXTfLite/app/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,24 @@ dependencies {
5353
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
5454

5555
// App compat and UI things
56-
implementation 'androidx.appcompat:appcompat:1.2.0'
57-
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.2.0'
56+
implementation 'androidx.appcompat:appcompat:1.3.1'
57+
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
5858
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
5959

6060
// CameraX
61-
def camerax_version = "1.0.0-rc01"
61+
def camerax_version = "1.1.0-alpha07"
6262
implementation "androidx.camera:camera-core:${camerax_version}"
6363
implementation "androidx.camera:camera-camera2:${camerax_version}"
6464
implementation "androidx.camera:camera-lifecycle:${camerax_version}"
6565

6666
// CameraX View class
67-
implementation "androidx.camera:camera-view:1.0.0-alpha20"
67+
implementation "androidx.camera:camera-view:1.0.0-alpha27"
6868

6969
// Tensorflow lite dependencies
70-
implementation 'org.tensorflow:tensorflow-lite:0.0.0-nightly'
71-
implementation 'org.tensorflow:tensorflow-lite-gpu:0.0.0-nightly'
72-
implementation 'org.tensorflow:tensorflow-lite-support:0.0.0-nightly'
70+
implementation 'org.tensorflow:tensorflow-lite:0.0.0-nightly-SNAPSHOT'
71+
implementation 'org.tensorflow:tensorflow-lite-gpu:0.0.0-nightly-SNAPSHOT'
72+
implementation 'org.tensorflow:tensorflow-lite-support:0.0.0-nightly-SNAPSHOT'
7373

7474
testImplementation 'org.robolectric:robolectric:4.4'
75-
testImplementation 'junit:junit:4.13'
75+
testImplementation 'junit:junit:4.13.2'
7676
}

CameraXTfLite/build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,18 @@ buildscript {
3030
dependencies {
3131
classpath 'com.android.tools.build:gradle:4.2.2'
3232
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
33-
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.1.0'
33+
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.11.1'
3434
}
3535
}
3636

3737
allprojects {
3838
repositories {
3939
google()
4040
mavenCentral()
41-
jcenter()
42-
maven { url 'https://jitpack.io' }
41+
maven { // repo for TFLite snapshot
42+
name 'ossrh-snapshot'
43+
url 'http://oss.sonatype.org/content/repositories/snapshots'
44+
}
4345
}
4446
}
4547

0 commit comments

Comments
 (0)