Skip to content

Commit 2b58541

Browse files
authored
Merge pull request #8 from hanruwang/main
Update task-interop configs.
2 parents 6f6ac5f + db2bd8e commit 2b58541

File tree

5 files changed

+33
-24
lines changed

5 files changed

+33
-24
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
steps:
2525
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2626
- uses: actions/checkout@v2
27+
# Use a non-default JDK version
28+
- uses: actions/setup-java@v4
29+
with:
30+
distribution: 'temurin'
31+
java-version: '21'
2732

2833
# Runs a single command using the runners shell
2934
- name: Perform a Gradle build

app/build.gradle

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,16 @@
1414
*/
1515
apply plugin: 'com.android.application'
1616
apply plugin: 'kotlin-android'
17-
apply plugin: 'kotlin-android-extensions'
1817
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
1918

2019
android {
21-
compileSdkVersion 30
20+
compileSdkVersion 34
2221
buildToolsVersion "30.0.1"
2322

2423
defaultConfig {
2524
applicationId "com.example.android.taskinterop"
26-
minSdkVersion 16
27-
targetSdkVersion 30
25+
minSdkVersion 21
26+
targetSdkVersion 34
2827
versionCode 1
2928
versionName "1.0"
3029
multiDexEnabled true
@@ -38,29 +37,33 @@ android {
3837
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt')
3938
}
4039
}
40+
buildFeatures {
41+
buildConfig = true
42+
}
4143
compileOptions {
4244
sourceCompatibility JavaVersion.VERSION_1_8
4345
targetCompatibility JavaVersion.VERSION_1_8
4446
}
4547
kotlinOptions {
4648
jvmTarget = '1.8'
4749
}
50+
namespace 'com.example.android.taskinterop'
4851
}
4952

5053
dependencies {
5154
implementation fileTree(dir: "libs", include: ["*.jar"])
5255
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
53-
implementation 'androidx.core:core-ktx:1.3.2'
54-
implementation 'androidx.appcompat:appcompat:1.2.0'
55-
implementation 'com.google.android.material:material:1.2.0'
56-
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
57-
implementation 'com.google.android.gms:play-services-tasks:17.2.0'
58-
implementation 'com.google.android.gms:play-services-oss-licenses:17.0.0'
56+
implementation 'androidx.core:core-ktx:1.13.1'
57+
implementation 'androidx.appcompat:appcompat:1.7.0'
58+
implementation 'com.google.android.material:material:1.12.0'
59+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
60+
implementation 'com.google.android.gms:play-services-tasks:18.2.0'
61+
implementation 'com.google.android.gms:play-services-oss-licenses:17.1.0'
5962
// Coroutines dependencies
60-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1'
61-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1'
63+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3'
64+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
6265
// Lifecycle library
63-
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.2.0'
66+
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.3'
6467

6568
//Task interop dependencies
6669
// [START rx_gradle]
@@ -70,14 +73,14 @@ dependencies {
7073
implementation "org.jetbrains.kotlin:kotlin-scripting-jvm:$kotlin_version"
7174
// [START ktx_gradle]
7275
// Source: https://github.com/Kotlin/kotlinx.coroutines/tree/master/integration/kotlinx-coroutines-play-services
73-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.4.1'
76+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.7.3'
7477
// [END ktx_gradle]
7578
// [START guava_gradle]
76-
implementation "androidx.concurrent:concurrent-futures:1.1.0"
79+
implementation "androidx.concurrent:concurrent-futures:1.2.0"
7780
// [END guava_gradle]
7881

7982
// Test dependencies
80-
testImplementation 'junit:junit:4.12'
81-
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
82-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
83+
testImplementation 'junit:junit:4.13.2'
84+
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
85+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
8386
}

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<application android:label="@string/app_name">
2020
<activity
2121
android:name=".MainActivity"
22+
android:exported="true"
2223
android:theme="@style/Theme.AppCompat.Light">
2324
<intent-filter>
2425
<action android:name="android.intent.action.MAIN" />

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
*/
1515
// Top-level build file where you can add configuration options common to all sub-projects/modules.
1616
buildscript {
17-
ext.kotlin_version = "1.4.10"
17+
ext.kotlin_version = "1.9.20"
1818
repositories {
1919
google()
20-
jcenter()
20+
mavenCentral()
2121
}
2222
dependencies {
23-
classpath "com.android.tools.build:gradle:4.1.1"
23+
classpath "com.android.tools.build:gradle:8.3.2"
2424
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
25-
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.2'
25+
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.6'
2626

2727
// NOTE: Do not place your application dependencies here; they belong
2828
// in the individual module build.gradle files
@@ -32,7 +32,7 @@ buildscript {
3232
allprojects {
3333
repositories {
3434
google()
35-
jcenter()
35+
mavenCentral()
3636
}
3737
}
3838

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip

0 commit comments

Comments
 (0)