Skip to content

Commit d5de16f

Browse files
committed
Gradle 9.3.1, AGP 9.1.0
1 parent 0deb17a commit d5de16f

9 files changed

Lines changed: 38 additions & 53 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dockerfile for building with Android SDK/NDK, including Google Cloud SDK.
22
FROM amazoncorretto:17-al2-jdk AS builder
3-
LABEL description="Android Builder" version="1.2.8" repository="https://github.com/syslogic/cloudbuild-android" maintainer="Martin Zeitler"
3+
LABEL description="Android Builder" version="1.2.9" repository="https://github.com/syslogic/cloudbuild-android" maintainer="Martin Zeitler"
44
LABEL org.opencontainers.image.description="Android Builder"
55

66
# Packages
@@ -9,9 +9,9 @@ RUN yum -y install wget unzip xxd libidn && yum -y upgrade
99
# RUN yum -y install deltarpm google-cloud-sdk wget unzip xxd libidn && yum -y upgrade
1010

1111
# Arguments, now with default values.
12-
ARG _CLI_TOOLS_VERSION=13114758
12+
ARG _CLI_TOOLS_VERSION=14742923
1313
ARG _ANDROID_SDK_PACKAGES="platform-tools platforms;android-36.1 build-tools;36.1.0 emulator"
14-
ARG _GRADLE_VERSION=9.2.1
14+
ARG _GRADLE_VERSION=9.3.1
1515

1616
# Path
1717
ENV ANDROID_HOME=/opt/android-sdk

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ The example app uses [Google Cloud KMS Gradle Plugin](https://github.com/syslogi
139139

140140
These substitutions use no underscore.
141141

142-
- `CLI_TOOLS_VERSION` ~ `13114758`
142+
- `CLI_TOOLS_VERSION` ~ `14742923`
143143
- `ANDROID_SDK_PACKAGES` ~ `platform-tools platforms;android-36.1 build-tools;36.1.0 emulator`
144-
- `GRADLE_VERSION` ~ `9.2.1`
144+
- `GRADLE_VERSION` ~ `9.3.1`
145145
- `DOCKER_IMAGE` ~ the location of the Docker image previously built.
146146

147147
## GCP Service Account

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ allprojects {
4141
def requested = details.requested
4242
if (requested.group == 'org.jetbrains.kotlin') {
4343
List<String> list = ['kotlin-stdlib', 'kotlin-stdlib-jdk7', 'kotlin-stdlib-jdk8', 'kotlin-stdlib-common']
44-
if (list.contains(requested.name)) { details.useVersion libs.versions.kotlin.get() }
44+
if (list.contains(requested.name)) { details.useVersion libs.versions.getKotlin().get() }
4545
}
4646
}
4747
}

cloudbuild.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ steps:
2222
# Note: When commenting these out, one has to run `./gradlew build` to fetch the components instead.
2323
# '--build-arg', 'ANDROID_SDK_PACKAGES=platform-tools platforms;android-36.1 build-tools;36.1.0 emulator ndk;25.1.8937393',
2424
'--build-arg', '_ANDROID_SDK_PACKAGES=platform-tools platforms;android-36.1 build-tools;36.1.0 emulator',
25-
'--build-arg', '_CLI_TOOLS_VERSION=13114758',
26-
'--build-arg', '_GRADLE_VERSION=9.2.1',
25+
'--build-arg', '_CLI_TOOLS_VERSION=14742923',
26+
'--build-arg', '_GRADLE_VERSION=9.3.1',
2727

2828
# enable cloudbuild network
2929
'--network', 'cloudbuild',

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ org.gradle.workers.max=6
88

99
android.useAndroidX=true
1010
android.nonTransitiveRClass=false
11-
android.nonFinalResIds=false

gradle/libs.versions.toml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[versions]
2-
android_gradle_plugin = "8.13.1"
2+
#noinspection UnusedVersionCatalogEntry
3+
kotlin = "2.3.10"
4+
junit = "4.13.2"
5+
android_gradle_plugin = "9.1.0"
36
google_mobile_services = "4.4.4"
4-
firebase_appdistribution = "5.2.0"
7+
firebase_appdistribution = "5.2.1"
58
firebase_crashlytics_plugin = "3.0.6"
69
firebase_perf_plugin = "2.0.2"
710

8-
kotlin = "2.2.21"
9-
junit = "4.13.2"
10-
1111
androidx_appcompat = "1.7.1"
1212
androidx_constraintlayout = "2.2.1"
13-
androidx_navigation = "2.9.6"
13+
androidx_navigation = "2.9.7"
1414
androidx_test_junit = "1.3.0"
1515
androidx_test_core = "1.7.0"
1616
androidx_test_rules = "1.7.0"
@@ -19,7 +19,7 @@ androidx_test_monitor = "1.8.0"
1919
androidx_test_espresso = "3.7.0"
2020
androidx_test_uiautomator = "2.3.0"
2121

22-
firebase_crashlytics = "20.0.3"
22+
firebase_crashlytics = "20.0.4"
2323
firebase_perf = "22.0.4"
2424

2525
[plugins]
@@ -36,6 +36,7 @@ androidx_appcompat = { module = "androidx.appcompat:appcompat", v
3636
androidx_constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "androidx_constraintlayout" }
3737
androidx_navigation_fragment = { module = "androidx.navigation:navigation-fragment", version.ref = "androidx_navigation" }
3838
androidx_navigation_ui = { module = "androidx.navigation:navigation-ui", version.ref = "androidx_navigation" }
39+
3940
firebase_crashlytics = { module = "com.google.firebase:firebase-crashlytics", version.ref = "firebase_crashlytics" }
4041
# firebase_crashlytics_ndk = { module = "com.google.firebase:firebase-crashlytics-ndk", version.ref = "firebase_crashlytics" }
4142
firebase_perf = { module = "com.google.firebase:firebase-perf", version.ref = "firebase_perf" }
@@ -47,8 +48,15 @@ androidx_test_core = { module = "androidx.test:core", version.ref
4748
androidx_test_rules = { module = "androidx.test:rules", version.ref = "androidx_test_rules" }
4849
androidx_test_runner = { module = "androidx.test:runner", version.ref = "androidx_test_runner" }
4950
androidx_test_uiautomator = { module = "androidx.test.uiautomator:uiautomator", version.ref = "androidx_test_uiautomator" }
51+
5052
androidx_test_espresso_core = { module = "androidx.test.espresso:espresso-core", version.ref = "androidx_test_espresso" }
5153
androidx_test_espresso_web = { module = "androidx.test.espresso:espresso-web", version.ref = "androidx_test_espresso" }
5254
androidx_test_espresso_contrib = { module = "androidx.test.espresso:espresso-contrib", version.ref = "androidx_test_espresso" }
5355
androidx_test_espresso_intents = { module = "androidx.test.espresso:espresso-intents", version.ref = "androidx_test_espresso" }
5456
androidx_test_espresso_idling_res = { module = "androidx.test.espresso:espresso-idling-resource", version.ref = "androidx_test_espresso" }
57+
58+
[bundles]
59+
androidx_libs = [ "androidx_appcompat", "androidx_constraintlayout", "androidx_navigation_fragment", "androidx_navigation_ui" ]
60+
androidx_test_libs = [ "androidx_test_junit", "androidx_test_core", "androidx_test_rules", "androidx_test_runner", "androidx_test_uiautomator" ]
61+
androidx_test_espresso = [ "androidx_test_espresso_core", "androidx_test_espresso_web", "androidx_test_espresso_contrib", "androidx_test_espresso_intents", "androidx_test_espresso_idling_res" ]
62+
firebase_libs = [ "firebase_crashlytics", "firebase_perf" ]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

mobile/build.gradle

Lines changed: 9 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ if (new File(getRootDir().absolutePath + "/buildSrc").exists() || project.plugin
1414

1515
android {
1616
namespace = "io.syslogic.cloudbuild"
17-
buildToolsVersion = "36.0.0"
1817
defaultConfig {
1918
applicationId = "io.syslogic.cloudbuild"
2019
minSdk = 23
@@ -27,8 +26,8 @@ android {
2726
}
2827

2928
compileOptions {
30-
sourceCompatibility JavaVersion.VERSION_17
31-
targetCompatibility JavaVersion.VERSION_17
29+
sourceCompatibility = JavaVersion.VERSION_17
30+
targetCompatibility = JavaVersion.VERSION_17
3231
}
3332

3433
buildFeatures {
@@ -88,44 +87,18 @@ android {
8887
}
8988

9089
base {
91-
archivesName = 'cloudbuild_' + android.defaultConfig.versionName
90+
archivesName = 'demo_' + android.defaultConfig.versionName
9291
}
9392

9493
dependencies {
95-
implementation libs.androidx.appcompat
96-
implementation libs.androidx.constraintlayout
97-
implementation libs.androidx.navigation.fragment
98-
implementation libs.androidx.navigation.ui
99-
100-
implementation libs.firebase.crashlytics
101-
// implementation libs.firebase.crashlytics.ndk
102-
implementation libs.firebase.perf
103-
104-
// jUnit
105-
testImplementation libs.junit
94+
implementation(libs.bundles.androidx.libs)
95+
implementation(libs.bundles.firebase.libs)
10696

97+
testImplementation(libs.junit)
10798
// Required for connected tests.
108-
// https://mvnrepository.com/artifact/androidx.test/monitor
109-
debugImplementation libs.androidx.test.monitor
110-
111-
// https://mvnrepository.com/artifact/androidx.test.ext
112-
androidTestImplementation libs.androidx.test.junit
113-
114-
// https://mvnrepository.com/artifact/androidx.test
115-
// https://developer.android.com/jetpack/androidx/releases/test
116-
androidTestImplementation libs.androidx.test.core
117-
androidTestImplementation libs.androidx.test.rules
118-
androidTestImplementation libs.androidx.test.runner
119-
120-
// https://mvnrepository.com/artifact/androidx.test.espresso
121-
androidTestImplementation libs.androidx.test.espresso.core
122-
androidTestImplementation libs.androidx.test.espresso.idling.res
123-
androidTestImplementation libs.androidx.test.espresso.contrib
124-
androidTestImplementation libs.androidx.test.espresso.intents
125-
androidTestImplementation libs.androidx.test.espresso.web
126-
127-
// https://mvnrepository.com/artifact/androidx.test.uiautomator/uiautomator
128-
androidTestImplementation libs.androidx.test.uiautomator
99+
debugImplementation(libs.androidx.test.monitor)
100+
androidTestImplementation(libs.bundles.androidx.test.libs)
101+
androidTestImplementation(libs.bundles.androidx.test.espresso)
129102
}
130103

131104
/** Google Play Services */

settings.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ pluginManagement {
55
maven { url = uri("https://jitpack.io") }
66
google()
77
mavenCentral()
8+
gradlePluginPortal()
89
}
910
}
1011

12+
plugins {
13+
id "org.gradle.toolchains.foojay-resolver-convention" version "1.0.0"
14+
}
15+
1116
dependencyResolutionManagement {
1217
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
1318
repositories {

0 commit comments

Comments
 (0)