Skip to content

Commit 114fba5

Browse files
authored
Merge pull request #43 from android/bugfix/update-build-files
Fixes: Build issues and updates dependencies
2 parents 3dd9581 + 628a128 commit 114fba5

6 files changed

Lines changed: 23 additions & 166 deletions

File tree

baseline-profiles/app/build.gradle.kts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ plugins {
1919
alias(libs.plugins.kotlin.android)
2020
alias(libs.plugins.kotlin.parcelize)
2121
alias(libs.plugins.compose.compiler)
22+
alias(libs.plugins.baselineprofile)
2223
}
2324

2425
android {
@@ -44,6 +45,15 @@ android {
4445
}
4546
}
4647

48+
compileOptions {
49+
sourceCompatibility = JavaVersion.VERSION_11
50+
targetCompatibility = JavaVersion.VERSION_11
51+
}
52+
53+
kotlinOptions {
54+
jvmTarget = "11"
55+
}
56+
4757
buildTypes {
4858
getByName("debug") {
4959
signingConfig = signingConfigs.getByName("debug")
@@ -59,11 +69,6 @@ android {
5969
}
6070
}
6171

62-
compileOptions {
63-
sourceCompatibility = JavaVersion.VERSION_17
64-
targetCompatibility = JavaVersion.VERSION_17
65-
}
66-
6772
buildFeatures {
6873
compose = true
6974
}
@@ -107,7 +112,6 @@ dependencies {
107112
implementation(libs.coil.kt.compose)
108113

109114
implementation(libs.androidx.runtime.tracing)
110-
111115
androidTestImplementation(libs.junit)
112116
androidTestImplementation(libs.androidx.test.core)
113117
androidTestImplementation(libs.androidx.test.runner)

baseline-profiles/build.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
1817
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
1918

2019
plugins {
@@ -36,7 +35,6 @@ subprojects {
3635
freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn")
3736
// Enable experimental coroutines APIs, including Flow
3837
freeCompilerArgs.add("-opt-in=kotlin.Experimental")
39-
jvmTarget.set(JvmTarget.JVM_17)
4038
}
4139
}
4240
}

baseline-profiles/gradle/libs.versions.toml

Lines changed: 5 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -2,136 +2,64 @@
22
accompanist = "0.36.0"
33
androidGradlePlugin = "8.7.3"
44
androidx-activity-compose = "1.9.3"
5-
androidx-appcompat = "1.7.0"
6-
androidx-benchmark = "1.3.3"
7-
androidx-benchmark-junit4 = "1.3.3"
5+
androidx-benchmark-junit4 = "1.4.0-beta02"
86
androidx-compose-bom = "2024.12.01"
97
androidx-constraintlayout = "1.1.0"
108
androidx-corektx = "1.15.0"
11-
androidx-lifecycle-runtime = "2.8.7"
129
androidx-lifecycle-compose = "2.8.7"
1310
androidx-lifecycle-runtime-compose = "2.8.7"
1411
androidx-navigation = "2.8.5"
15-
androidx-palette = "1.0.0"
1612
androidx-test = "1.6.1"
1713
androidx-test-espresso = "3.6.1"
1814
androidx-test-ext-junit = "1.2.1"
19-
androidx-test-ext-truth = "1.6.0"
20-
androidx-window = "1.3.0"
21-
androidxHiltNavigationCompose = "1.2.0"
2215
androix-test-uiautomator = "2.3.0"
2316
coil = "2.7.0"
24-
# @keep
25-
compileSdk = "33"
2617
coroutines = "1.9.0"
27-
google-maps = "19.0.0"
28-
gradle-versions = "0.51.0"
29-
hilt = "2.53.1"
30-
hiltExt = "1.2.0"
31-
# @pin When updating to AGP 7.4.0-alpha10 and up we can update this https://developer.android.com/studio/write/java8-support#library-desugaring-versions
32-
jdkDesugar = "2.1.3"
3318
junit = "4.13.2"
34-
# @pin Update in conjuction with Compose Compiler
3519
kotlin = "2.1.0"
36-
ksp = "2.1.0-1.0.29"
37-
maps-compose = "6.4.0"
38-
material = "1.12.0"
39-
# @keep
40-
minSdk = "21"
41-
okhttp = "4.12.0"
42-
robolectric = "4.14.1"
43-
rome = "2.1.0"
44-
room = "2.6.1"
4520
runtimeTracing = "1.7.6"
46-
secrets = "2.0.1"
47-
# @keep
48-
targetSdk = "33"
49-
version-catalog-update = "0.8.5"
21+
profileinstaller = "1.4.1"
22+
baselineprofile = "1.2.4"
5023

5124
[libraries]
52-
accompanist-adaptive = { module = "com.google.accompanist:accompanist-adaptive", version.ref = "accompanist" }
5325
accompanist-flowlayout = { module = "com.google.accompanist:accompanist-flowlayout", version.ref = "accompanist" }
54-
accompanist-pager = { module = "com.google.accompanist:accompanist-pager", version.ref = "accompanist" }
55-
accompanist-permissions = { module = "com.google.accompanist:accompanist-permissions", version.ref = "accompanist" }
56-
accompanist-swiperefresh = { module = "com.google.accompanist:accompanist-swiperefresh", version.ref = "accompanist" }
5726
accompanist-systemuicontroller = { module = "com.google.accompanist:accompanist-systemuicontroller", version.ref = "accompanist" }
5827
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidx-activity-compose" }
59-
androidx-activity-ktx = { module = "androidx.activity:activity-ktx", version.ref = "androidx-activity-compose" }
60-
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" }
61-
androidx-benchmark-macrobenchmark = { module = "androidx.benchmark:benchmark-macro", version.ref = "androidx-benchmark" }
6228
androidx-benchmark-macrobenchmark-junit4 = { module = "androidx.benchmark:benchmark-macro-junit4", version.ref = "androidx-benchmark-junit4" }
6329
androidx-compose-animation = { module = "androidx.compose.animation:animation" }
6430
androidx-compose-bom = { module = "androidx.compose:compose-bom", version.ref = "androidx-compose-bom" }
6531
androidx-compose-foundation = { module = "androidx.compose.foundation:foundation" }
6632
androidx-compose-foundation-layout = { module = "androidx.compose.foundation:foundation-layout" }
6733
androidx-compose-material = { module = "androidx.compose.material:material" }
6834
androidx-compose-material-iconsExtended = { module = "androidx.compose.material:material-icons-extended" }
69-
androidx-compose-material3 = { module = "androidx.compose.material3:material3" }
70-
androidx-compose-materialWindow = { module = "androidx.compose.material3:material3-window-size-class" }
7135
androidx-compose-runtime = { module = "androidx.compose.runtime:runtime" }
72-
androidx-compose-runtime-livedata = { module = "androidx.compose.runtime:runtime-livedata" }
73-
androidx-compose-ui = { module = "androidx.compose.ui:ui" }
74-
androidx-compose-ui-googlefonts = { module = "androidx.compose.ui:ui-text-google-fonts" }
7536
androidx-compose-ui-test = { module = "androidx.compose.ui:ui-test" }
76-
androidx-compose-ui-test-junit4 = { module = "androidx.compose.ui:ui-test-junit4" }
77-
androidx-compose-ui-test-manifest = { module = "androidx.compose.ui:ui-test-manifest" }
7837
androidx-compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling" }
7938
androidx-compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }
8039
androidx-compose-ui-util = { module = "androidx.compose.ui:ui-util" }
81-
androidx-compose-ui-viewbinding = { module = "androidx.compose.ui:ui-viewbinding" }
8240
androidx-constraintlayout-compose = { module = "androidx.constraintlayout:constraintlayout-compose", version.ref = "androidx-constraintlayout" }
8341
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "androidx-corektx" }
84-
androidx-hilt-navigation-compose = { module = "androidx.hilt:hilt-navigation-compose", version.ref = "androidxHiltNavigationCompose" }
85-
androidx-lifecycle-livedata-ktx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "androidx-lifecycle-compose" }
86-
androidx-lifecycle-runtime = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "androidx-lifecycle-runtime" }
8742
androidx-lifecycle-runtime-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "androidx-lifecycle-runtime-compose" }
8843
androidx-lifecycle-viewModelCompose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "androidx-lifecycle-compose" }
89-
androidx-lifecycle-viewmodel-ktx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "androidx-lifecycle-compose" }
90-
androidx-lifecycle-viewmodel-savedstate = { module = "androidx.lifecycle:lifecycle-viewmodel-savedstate", version.ref = "androidx-lifecycle-compose" }
9144
androidx-navigation-compose = { module = "androidx.navigation:navigation-compose", version.ref = "androidx-navigation" }
92-
androidx-navigation-fragment = { module = "androidx.navigation:navigation-fragment-ktx", version.ref = "androidx-navigation" }
93-
androidx-navigation-ui-ktx = { module = "androidx.navigation:navigation-ui-ktx", version.ref = "androidx-navigation" }
94-
androidx-palette = { module = "androidx.palette:palette", version.ref = "androidx-palette" }
95-
androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref = "room" }
96-
androidx-room-ktx = { module = "androidx.room:room-ktx", version.ref = "room" }
97-
androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "room" }
9845
androidx-runtime-tracing = { module = "androidx.compose.runtime:runtime-tracing", version.ref = "runtimeTracing" }
9946
androidx-test-core = { module = "androidx.test:core", version.ref = "androidx-test" }
10047
androidx-test-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "androidx-test-espresso" }
10148
androidx-test-ext-junit = { module = "androidx.test.ext:junit", version.ref = "androidx-test-ext-junit" }
102-
androidx-test-ext-truth = { module = "androidx.test.ext:truth", version.ref = "androidx-test-ext-truth" }
10349
androidx-test-rules = { module = "androidx.test:rules", version.ref = "androidx-test" }
10450
androidx-test-runner = "androidx.test:runner:1.6.2"
10551
androidx-test-uiautomator = { module = "androidx.test.uiautomator:uiautomator", version.ref = "androix-test-uiautomator" }
106-
androidx-window = { module = "androidx.window:window", version.ref = "androidx-window" }
10752
coil-kt-compose = { module = "io.coil-kt:coil-compose", version.ref = "coil" }
108-
core-jdk-desugaring = { module = "com.android.tools:desugar_jdk_libs", version.ref = "jdkDesugar" }
109-
google-android-material = { module = "com.google.android.material:material", version.ref = "material" }
110-
googlemaps-compose = { module = "com.google.maps.android:maps-compose", version.ref = "maps-compose" }
111-
googlemaps-maps = { module = "com.google.android.gms:play-services-maps", version.ref = "google-maps" }
112-
hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "hilt" }
113-
hilt-android-testing = { module = "com.google.dagger:hilt-android-testing", version.ref = "hilt" }
114-
hilt-compiler = { module = "com.google.dagger:hilt-android-compiler", version.ref = "hilt" }
115-
hilt-ext-compiler = { module = "androidx.hilt:hilt-compiler", version.ref = "hiltExt" }
11653
junit = { module = "junit:junit", version.ref = "junit" }
11754
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin" }
11855
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" }
11956
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" }
120-
okhttp-logging = { module = "com.squareup.okhttp3:logging-interceptor", version.ref = "okhttp" }
121-
okhttp3 = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
122-
robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" }
123-
rometools-modules = { module = "com.rometools:rome-modules", version.ref = "rome" }
124-
rometools-rome = { module = "com.rometools:rome", version.ref = "rome" }
57+
androidx-profileinstaller = { group = "androidx.profileinstaller", name = "profileinstaller", version.ref = "profileinstaller" }
12558

12659
[plugins]
12760
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
12861
android-test = { id = "com.android.test", version.ref = "androidGradlePlugin" }
129-
gradle-versions = { id = "com.github.ben-manes.versions", version.ref = "gradle-versions" }
130-
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
131-
kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
13262
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
13363
kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" }
134-
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
135-
secrets = { id = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin", version.ref = "secrets" }
136-
version-catalog-update = { id = "nl.littlerobots.version-catalog-update", version.ref = "version-catalog-update" }
13764
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
65+
baselineprofile = { id = "androidx.baselineprofile", version.ref = "baselineprofile" }

benchmarking/app/build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ android {
6060
}
6161

6262
compileOptions {
63-
sourceCompatibility = JavaVersion.VERSION_17
64-
targetCompatibility = JavaVersion.VERSION_17
63+
sourceCompatibility = JavaVersion.VERSION_11
64+
targetCompatibility = JavaVersion.VERSION_11
65+
}
66+
kotlinOptions {
67+
jvmTarget = "11"
6568
}
6669

6770
buildFeatures {
@@ -107,7 +110,6 @@ dependencies {
107110
implementation(libs.coil.kt.compose)
108111

109112
implementation(libs.androidx.runtime.tracing)
110-
111113
androidTestImplementation(libs.junit)
112114
androidTestImplementation(libs.androidx.test.core)
113115
androidTestImplementation(libs.androidx.test.runner)

benchmarking/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ subprojects {
3636
freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn")
3737
// Enable experimental coroutines APIs, including Flow
3838
freeCompilerArgs.add("-opt-in=kotlin.Experimental")
39-
jvmTarget.set(JvmTarget.JVM_17)
4039
}
4140
}
4241
}

0 commit comments

Comments
 (0)