Skip to content

Commit

Permalink
Use JDK 20 and AGP 8.3.0-alpha09
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Oct 22, 2023
1 parent ede7b40 commit bd0785c
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android_prod_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
VERSION_CODE=${WORKFLOW_INPUT:-"1"}
echo "ORG_GRADLE_PROJECT_VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV
- name: Setup JDK 17
- name: Setup JDK 20
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 20
distribution: zulu
cache: 'gradle'

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup JDK 17
- name: Setup JDK 20
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 20
distribution: zulu
cache: 'gradle'

Expand All @@ -32,10 +32,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup JDK 17
- name: Setup JDK 20
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 20
distribution: zulu
cache: 'gradle'

Expand All @@ -48,10 +48,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup JDK 17
- name: Setup JDK 20
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 20
distribution: zulu
cache: 'gradle'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ios_prod_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
with:
input: ${{ github.event.inputs.tramline-input }}

- name: Setup JDK 17
- name: Setup JDK 20
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 20
distribution: zulu
cache: 'gradle'

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ For full list of dependencies used, please take a look at the [catalog](/gradle/

You can just clone the repo and build it locally without requiring any changes.

Project requires JDK 17+, and based on the AGP version defined in [`libs.versions.toml`](/gradle/libs.versions.toml) file,
Project requires JDK 20+, and based on the AGP version defined in [`libs.versions.toml`](/gradle/libs.versions.toml) file,
you can use appropriate Android Studio to import the project.

## Contributing 🛠️
Expand Down
19 changes: 12 additions & 7 deletions androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ plugins {

sentry { tracingInstrumentation { enabled = false } }

kotlin { androidTarget() }
kotlin {
jvmToolchain(20)

androidTarget()
}

android {
compileSdk = libs.versions.android.sdk.compile.get().toInt()
Expand All @@ -51,12 +55,9 @@ android {
"1.0.0"
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
isCoreLibraryDesugaringEnabled = true
}
kotlin { jvmToolchain(11) }

compileOptions { isCoreLibraryDesugaringEnabled = true }

signingConfigs {
create("release") {
storeFile = file("$rootDir/release/reader.jks")
Expand All @@ -65,6 +66,7 @@ android {
keyPassword = "${project.properties["READER_KEY_PASSWORD"]}"
}
}

buildTypes {
release {
isMinifyEnabled = true
Expand All @@ -75,6 +77,7 @@ android {
}
debug { applicationIdSuffix = ".debug" }
}

packaging {
resources { excludes.add("/META-INF/{AL2.0,LGPL2.1}") }

Expand All @@ -83,6 +86,8 @@ android {
jniLibs.excludes.add("lib/mips64/libsqlite3x.so")
jniLibs.excludes.add("lib/armeabi/libsqlite3x.so")
}

buildFeatures { buildConfig = true }
}

dependencies {
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ kotlin.mpp.androidGradlePluginCompatibility.nowarn=true
org.jetbrains.compose.experimental.uikit.enabled=true
#Android
android.useAndroidX=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
#Sentry
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "1.9.10"
android_gradle_plugin = "8.1.2"
android_gradle_plugin = "8.3.0-alpha09"
compose = "1.5.10-rc01"
compose_compiler = "1.5.2"

Expand Down
9 changes: 4 additions & 5 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ buildkonfig {
kotlin {
targetHierarchy.default()

jvmToolchain(20)

android()

// spotless:off
Expand Down Expand Up @@ -178,11 +180,8 @@ android {
minSdk = libs.versions.android.sdk.min.get().toInt()
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlin { jvmToolchain(11) }

@Suppress("UnstableApiUsage")
testOptions {
managedDevices {
devices {
Expand Down

0 comments on commit bd0785c

Please sign in to comment.