Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 07c7ced

Browse files
committed
fix(android): drop jcenter to avoid warnings/errors in new Android Studio
1 parent 013b150 commit 07c7ced

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ See our [ASR documentation](https://www.spokestack.io/docs/concepts/asr) for mor
182182
dependencies {
183183
// Minimium gradle is 3.0.1+
184184
// The latest React Native already has this
185-
classpath("com.android.tools.build:gradle:4.1.0")
185+
classpath("com.android.tools.build:gradle:4.2.1")
186186
```
187187

188188
### Edit AndroidManifest.xml

android/build.gradle

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
buildscript {
22
// Build script is evaluated before everything else so we can't use getExtOrDefault
3-
def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['Spokestack_kotlinVersion']
3+
ext.kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['Spokestack_kotlinVersion']
44

55
repositories {
66
google()
7-
jcenter()
7+
mavenCentral()
88
}
99

1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:4.1.0'
11+
classpath 'com.android.tools.build:gradle:4.2.1'
1212
// noinspection DifferentKotlinGradleVersion
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414
}
@@ -47,7 +47,6 @@ android {
4747

4848
repositories {
4949
mavenCentral()
50-
jcenter()
5150
google()
5251

5352
def found = false
@@ -128,6 +127,8 @@ dependencies {
128127
implementation 'org.tensorflow:tensorflow-lite:2.3.0'
129128

130129
// for playback of TTS audio
131-
implementation 'androidx.media:media:1.3.1'
132-
implementation 'com.google.android.exoplayer:exoplayer-core:2.14.1'
130+
implementation 'androidx.media:media:1.4.1'
131+
implementation 'com.google.android.exoplayer:exoplayer-core:2.15.0'
132+
implementation "androidx.core:core-ktx:+"
133+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
133134
}

android/gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Spokestack_kotlinVersion=1.4.21
1+
Spokestack_kotlinVersion=1.4.32
22
Spokestack_kotlinxVersion=1.4.2
3-
Spokestack_compileSdkVersion=28
4-
Spokestack_buildToolsVersion=28.0.3
5-
Spokestack_targetSdkVersion=28
3+
Spokestack_compileSdkVersion=30
4+
Spokestack_buildToolsVersion=30.0.2
5+
Spokestack_targetSdkVersion=30

0 commit comments

Comments
 (0)