Skip to content

Commit

Permalink
support java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
REBOOTERS committed Oct 9, 2024
1 parent 090502d commit e1f47b2
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: set up JDK 17
- name: set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '17'
java-version: '21'
distribution: 'adopt'
- name: Repo Visualizer
uses: githubocto/[email protected]
Expand All @@ -27,10 +27,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: set up JDK 17
- name: set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '17'
java-version: '21'
distribution: 'adopt'
- name: build app apk
run: ./gradlew :app:assembleChargeRelease;
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}

testOptions {
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

plugins {
id 'com.android.application' version '8.6.0' apply false
id 'com.android.library' version '8.6.0' apply false
id 'com.android.application' version '8.7.0' apply false
id 'com.android.library' version '8.7.0' apply false
id 'org.jetbrains.kotlin.android' version '2.0.20' apply false
id 'com.google.devtools.ksp' version '2.0.10-1.0.24' apply false
}
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies {
// implementation localGroovy()
implementation 'org.jetbrains.kotlin:kotlin-stdlib:2.0.0'
// 添加了这个,就可以看 Android Gradle 插件的源码了
implementation 'com.android.tools.build:gradle-api:8.6.0'
implementation 'com.android.tools.build:gradle-api:8.7.0'
// implementation "org.jetbrains.kotlin:kotlin-script-runtime:1.3.40"
implementation 'com.google.code.gson:gson:2.11.0'
implementation 'com.android.tools:common:31.6.0'
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
6 changes: 3 additions & 3 deletions imitate/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
kotlinOptions {
jvmTarget = '17'
jvmTarget = '21'
}
buildFeatures {
viewBinding true
Expand Down
6 changes: 3 additions & 3 deletions subs/ai/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
kotlinOptions {
jvmTarget = '17'
jvmTarget = '21'
}
androidResources {
noCompress = 'tflite'
Expand Down
4 changes: 2 additions & 2 deletions subs/cpp_native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
externalNativeBuild {
cmake {
Expand Down
4 changes: 2 additions & 2 deletions subs/dataview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
namespace 'com.engineer.dateview'

Expand Down
4 changes: 2 additions & 2 deletions subs/game/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}

sourceSets {
Expand Down
4 changes: 2 additions & 2 deletions subs/gif-revert/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ android {

}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}

buildTypes {
Expand Down

0 comments on commit e1f47b2

Please sign in to comment.