-
Notifications
You must be signed in to change notification settings - Fork 405
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
Require support for gradel 8 (react-native 0.72.3) #354
Comments
ProGuard Gradle plugin doesn't support AGP8; there are currently no immediate plans to support it but there is an existing issue to track it (#280) so I'll close this issue. The default shrinker in Android now is R8, which is compatible with ProGuard configuration. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, this library might be using transformApi which has been removed from grade 8 and hence incremental build breaks.
FAILURE: Build failed with an exception.
A problem occurred configuring project ':app'.
android>build.gradel
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "33.0.0"
minSdkVersion = 21
compileSdkVersion = 33
targetSdkVersion = 33
}
android>app>builld.gradel
apply plugin: "com.android.application"
apply plugin: "com.facebook.react"
apply plugin: 'com.guardsquare.proguard'
react {
}
/**
*/
def enableProguardInReleaseBuilds = false
def jscFlavor = 'org.webkit:android-jsc:+'
android {
ndkVersion rootProject.ext.ndkVersion
}
proguard {
configurations {
release {
defaultConfiguration 'proguard-android-optimize.txt'
configuration 'proguard-rules.pro'
}
}
}
dependencies {
implementation("com.facebook.react:react-android")
}
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
android.experimental.legacyTransform.forceNonIncremental=true
inside gradel properties which indeed force not to use the incremental build but it has many drawbacks and is not a good practice.The text was updated successfully, but these errors were encountered: