Skip to content

Commit

Permalink
chore: bump Java and Gradle version in Android sample (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
yq-yang-qin authored Feb 14, 2025
1 parent 853658b commit c921f89
Show file tree
Hide file tree
Showing 10 changed files with 295 additions and 212 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
java-version: '21'
cache: gradle
- name: Build android apk
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build-ios:
runs-on: macos-13-xl
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Build ios
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-rn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
./gradlew assembleDebug
build-ios:
runs-on: macos-13-xl
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Build ios
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: '18.20.6'
- name: Run build
run: |
cd web
Expand Down
18 changes: 12 additions & 6 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ plugins {
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
id 'com.google.devtools.ksp' version '1.8.10-1.0.9'
id 'com.google.devtools.ksp' version '2.0.20-1.0.24'
id 'kotlin-parcelize'
id("org.jetbrains.kotlin.plugin.compose") version "2.0.20"
}

android {
namespace "com.kanyideveloper.joomia"
compileSdk 34

defaultConfig {
Expand All @@ -30,11 +32,12 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '21'
apiVersion = "1.8"
}
buildFeatures {
Expand Down Expand Up @@ -87,10 +90,11 @@ dependencies {
implementation "androidx.compose.material:material:$compose_version"

// Hilt for DI
implementation "com.google.dagger:hilt-android:2.44"
kapt "com.google.dagger:hilt-compiler:2.44"
implementation "com.google.dagger:hilt-android:2.51.1"
kapt "com.google.dagger:hilt-compiler:2.51.1"
kapt 'androidx.hilt:hilt-compiler:1.1.0'
implementation 'androidx.hilt:hilt-navigation-compose:1.2.0-alpha01'

// Navigation made easier
implementation 'io.github.raamcosta.compose-destinations:core:1.5.9-beta'
ksp 'io.github.raamcosta.compose-destinations:ksp:1.5.9-beta'
Expand Down Expand Up @@ -125,5 +129,7 @@ dependencies {
implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"

coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.9'

implementation 'software.aws.solution:clickstream:0.13.0'
}
7 changes: 4 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ buildscript {
}
dependencies {
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.44'
classpath "com.android.tools.build:gradle:8.7.0"
}

}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.3.1' apply false
id 'com.android.library' version '7.3.1' apply false
id 'org.jetbrains.kotlin.android' version '1.8.10' 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
}

task clean(type: Delete) {
Expand Down
Binary file modified android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Fri Dec 22 14:48:01 CST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit c921f89

Please sign in to comment.