-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.19 #139
Conversation
This file contains 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.
Note
This release removes many implicit features that couldn't be configured from outside.
It is also a part of a process of removing the features that could be easily implemented via pre-compiled script plugins (for example, SDK versions and tests configuration).
It is recommended to migrate these configurations to pre-compiled script plugins.
Stable
addSharedSourceSetRoot
extensionExperimental extension
addSharedSourceSetRoot(...)
has been replaced with the new stable version:Introduce
SigningConfig.fromProperties
(Experimental)It is common practice to store keystore credentials in
.properties
file.This extension lets you apply configurations from a property file.
redmadrobot.jvmTarget
with deprecation levelError
.Use JVM Toolchains instead to specify JVM target.
Kotlin, Android Gradle Plugin, detekt and many other tools have support for this mechanism,
In most cases, adding this into your
build.gradle.kts
should be enough:kotlin { jvmToolchain(17) }
minSdk
(it was23
) andtargetSdk
(it was33
).It was a poor decision to set defaults for these fields as could implicitly bump an SDK version in a project.
If you want to use
redmadrobot.android
to align SDK versions among all modules, you should set these properties explicitly:If you rely on this feature, consider declaring required repositories explicitly, or enable it in
gradle.properties
:redmadrobot.add.repositories=true
org.gradle.android.cache-fix
plugin automatically.This change allows removing android-cache-fix-gradle-plugin from the project dependencies.
See the plugin documentation to learn how to apply this plugin to your project.
proguard-android-optimize.txt
rules by default.If you need these rules, apply it manually:
android { defaultConfig { proguardFile(getDefaultProguardFile("proguard-android-optimize.txt")) } }
LOCK_ORIENTATION
andCRASH_REPORTS_ENABLED
variables toBuildConfig
implicitlyallWarningsAsErrors
flag implicitly.It was impossible to disable this feature.
To keep going with the old behavior, add the following code to your build script:
Other Changes
ANDROID_BUILD_TOOLS_VERSION
env variable forbuildToolsVersion
if the option is not configured (android: Use buildToolsVersion from ANDROID_BUILD_TOOLS_VERSION env variable #132)Project.collectProguardFiles
publicredmadrobot.android.ndkVersion
to specify NDK version for all android modulesaidl
,renderScript
andbuildConfig
as they are already disabled by default in new versions of AGPkotlinCompile
.It is recommended to use
kotlin.compilerOptions { ... }
to configure compilation instead.8.9
Dependencies
7.4
→8.0
1.7.10
→1.9.0
7.4.0
→8.4.0
infrastructure-kotlin:
1.8.10
→2.0.0
infrastructure-android:
7.4.2
→8.5.1
android-cache-fix-gradle-plugin
from dependenciescom.android.tools:common
from dependenciesinfrastructure-detekt:
1.22.0
→1.23.6
6.4.0
→6.10.0