Open
Conversation
Lots of depreciation warnings to address:
The option setting 'android.usesSdkInManifest.disallowed=false' is deprecated.
The option setting 'android.sdk.defaultTargetSdkToCompileSdkIfUnset=false' is deprecated.
The option setting 'android.enableAppCompileTimeRClass=false' is deprecated.
The option setting 'android.builtInKotlin=false' is deprecated.
The option setting 'android.newDsl=false' is deprecated.
The option setting 'android.r8.optimizedResourceShrinking=false' is deprecated.
The option setting 'android.defaults.buildfeatures.resvalues=true' is deprecated.
The property android.dependency.excludeLibraryComponentsFromConstraints improves project import performance for v>
:app:kaptDefaultDebugKotlin
Supported source version 'RELEASE_11' from annotation processor 'org.jetbrains.kotlin.kapt.base.Processor>
:app:compileDefaultDebugKotlin
ManageWidgetsActivity.kt
SelectWidgetActivity.kt
The gradle.properties additions are the defaults from the Android Studio AGP Upgrade Assistant process and may need addressed as part of resolving up the depreciation warnings.
Notable exception to library version bumps: activity and activity-ktx stayed at 1.11.0 as 1.12.4 ups the minimum SDK to 23 (Android 6.0) from 21 (Android 5.0). Builds, installs, and runs without notable issues in moderately thorough testing. ## Warnings ### settings.gradle.kts Warning:(19, 5) 'getRepositoriesMode()' is marked unstable with @Incubating Warning:(19, 26) 'org.gradle.api.initialization.resolve.RepositoriesMode' is marked unstable with @Incubating Warning:(19, 43) 'FAIL_ON_PROJECT_REPOS' is declared in unstable enum 'org.gradle.api.initialization.resolve.RepositoriesMode' marked with @Incubating Warning:(20, 5) 'repositories(org.gradle.api.Action<? super org.gradle.api.artifacts.dsl.RepositoryHandler>)' is marked unstable with @Incubating ### app/build.gradle.kts Warning:(75, 9) 'setGenerateLocaleConfig(boolean)' is marked unstable with @Incubating
Not entirely sure on this.
This and the settings.gradle.kts file change go together. Theoretically they work with Android Studio to make the gradle environment more consistent across devices for more consistent java runtimes. 🤷
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Heavy lifting shouldTM be done. Builds, installs, and runs without notable issues in moderately thorough testing.
Android Migration Documentation and a Reddit post of someone struggling to migrate their KMP (Kotlin Multi-Platform) app, thank goodness we're not dealing with multiplatform or I'd have given up.
What Changed
Migrate to built-in Kotlin
The
org.jetbrains.kotlin.androidplugin is not compatible with the new DSL.Remove the kotlin-android plugin
The heading says it all
Migrate the kotlin-kapt plugin
org.jetbrains.kotlin.kapt➡️com.android.legacy-kaptMigrate the android.kotlinOptions{} DSL
android { kotlinOptions { ... } }⬇️ ⬇️ ⬇️
kotlin { compilerOptions { ... } }They even say the entire android{} block is unnecessary now, though I have left it in for what it is worth.
Migrate the kotlin.sourceSets{} DSL
Accrescent has already been somewhat of a bugger to cooperate with releases. I have zero clue if this part is correct, so please validate this works for the Accrescent folks. See here for more information on the migration.
Bump library versions
Notable exception to library version bumps: activity and activity-ktx stayed at 1.11.0 as 1.12.4 ups the minimum SDK to 23 (Android 6.0) from 21 (Android 5.0).
Build Warnings
app:kaptDefaultDebugKotlin
I believe this stems from kapt asking for 11 instead of 17 for whatever reason.
app:compileDefaultDebugKotlin
LauncherAction.kt
Android Studio Commit Warnings
app/build.gradle.kts
Warning:(75, 9) 'setGenerateLocaleConfig(boolean)' is marked unstable with @Incubating