Skip to content

Commit

Permalink
Upgrade to androix fragment 1.6.1
Browse files Browse the repository at this point in the history
...yikes
  • Loading branch information
sjudd committed Sep 19, 2023
1 parent c6960d3 commit b2594c7
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 13 deletions.
6 changes: 6 additions & 0 deletions annotation/ksp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ dependencies {
}

apply from: "${rootProject.projectDir}/scripts/upload.gradle"

kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
10 changes: 10 additions & 0 deletions annotation/ksp/integrationtest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ android {
targetSdk libs.versions.target.sdk.version.get() as int
versionName VERSION_NAME as String
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}

kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}

dependencies {
Expand Down
10 changes: 10 additions & 0 deletions annotation/ksp/test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ android {
targetSdk libs.versions.target.sdk.version.get() as int
versionName VERSION_NAME as String
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}

kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}

dependencies {
Expand Down
3 changes: 3 additions & 0 deletions benchmark/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ android {
versionName "1.0"

testInstrumentationRunner 'androidx.benchmark.junit4.AndroidBenchmarkRunner'
multiDexEnabled true
}

buildTypes {
Expand All @@ -33,6 +34,8 @@ android {
}

dependencies {
implementation libs.androidx.multidex

androidTestImplementation libs.androidx.test.runner
androidTestImplementation libs.androidx.junit
androidTestImplementation libs.junit
Expand Down
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,15 @@ subprojects { project ->
}
}

afterEvaluate {
if (project.plugins.hasPlugin("com.android.application")) {
project.dependencies {
// Hack around some version mismatches: https://stackoverflow.com/questions/75263047/duplicate-class-in-kotlin-android
implementation(platform(libs.kotlin.bom))
}
}
}

tasks.withType(JavaCompile) {
// gifencoder is a legacy project that has a ton of warnings and is basically never
// modified, so we're not going to worry about cleaning it up.
Expand Down
4 changes: 0 additions & 4 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"automerge": true,
"automergeType": "branch"
},
{
"matchPackageNames": ["androidx.fragment:fragment"],
"allowedVersions": "1.4.1"
}
]
}
20 changes: 11 additions & 9 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,22 @@ dependencyResolutionManagement {
version('okhttp-min-sdk-version', '21')
version('target-sdk-version', '32')
version('pmd', '6.0.0')
version('kotlin-compiler-extension', '1.2.0')
// 1.5.3 requires Kotlin 1.9.x, which doesn't seem to be supported by the coroutines
// libraries: https://github.com/Kotlin/kotlinx.coroutines/issues/3812
version('kotlin-compiler-extension', '1.4.8')

// Versions for dependencies
version('compose', '1.5.0')
version('compose', '1.5.1')
version('coroutines', '1.7.3')
version('dagger', '2.47')
version('errorprone', '2.18.0')
version('kotlin', '1.7.0')
version('kotlin', '1.8.22')
version('mockito', '5.3.1')
version('retrofit', '2.3.0')
version('androidx-benchmark', '1.2.0-beta05')
version('androidx-espresso', '3.5.1')
// Newer versions depend on different kotlin versions causing duplicate class paths:
version('androidx-fragment', '1.4.1')
version('ksp', '1.7.0-1.0.6')
version('androidx-fragment', '1.6.1')
version('ksp', '1.8.22-1.0.11')

library('androidx-multidex', "androidx.multidex:multidex:2.0.1")
library('autoservice', 'com.google.auto.service:auto-service:1.0-rc3')
Expand All @@ -74,10 +75,10 @@ dependencyResolutionManagement {
library('androidx-cardview', 'androidx.cardview:cardview:1.0.0')
library('androidx-core', 'androidx.core:core:1.6.0')
library('androidx-annotation', 'androidx.annotation:annotation:1.6.0')
library('androidx-appcompat', 'androidx.appcompat:appcompat:1.4.0')
library('androidx-appcompat', 'androidx.appcompat:appcompat:1.6.1')
library('androidx-benchmark.gradle', 'androidx.benchmark', 'benchmark-gradle-plugin').versionRef('androidx-benchmark')
library('androidx-benchmark.junit', 'androidx.benchmark', 'benchmark-junit4').versionRef('androidx-benchmark')
library('androidx-core.ktx', 'androidx.core:core-ktx:1.8.0')
library('androidx-core.ktx', 'androidx.core:core-ktx:1.12.0')
library('androidx-espresso', 'androidx.test.espresso', 'espresso-core').versionRef('androidx-espresso')
library('androidx-espresso.idling', 'androidx.test.espresso.idling', 'idling-concurrent').versionRef('androidx-espresso')
library('androidx-exifinterface', 'androidx.exifinterface:exifinterface:1.3.6')
Expand Down Expand Up @@ -121,7 +122,8 @@ dependencyResolutionManagement {
library('kotlin-junit', 'org.jetbrains.kotlin', 'kotlin-test-junit').versionRef('kotlin')
library('kotlin-jdk7', 'org.jetbrains.kotlin', 'kotlin-stdlib-jdk7').versionRef('kotlin')
library('kotlin-gradle', 'org.jetbrains.kotlin', 'kotlin-gradle-plugin').versionRef('kotlin')
library('kotlin-test', 'org.jetbrains.kotlin:kotlin-test:1.7.0')
library('kotlin-test', 'org.jetbrains.kotlin', 'kotlin-test').versionRef('kotlin')
library('kotlin-bom', 'org.jetbrains.kotlin', 'kotlin-bom').versionRef('kotlin')
library('kotlinpoet', 'com.squareup:kotlinpoet:1.12.0')
library('ksp', 'com.google.devtools.ksp', 'symbol-processing-api').versionRef('ksp')
library('ksp-autoservice', 'dev.zacsweers.autoservice:auto-service-ksp:1.0.0')
Expand Down

0 comments on commit b2594c7

Please sign in to comment.