I am trying to build an android app with proguard and r8 enabled. I have added "-printconfiguration full-r8-config.txt" to print the Full R8 Configuration.
Problem: Even after. having zero dependencies in the build.gradle, I am getting the following entry at the end of the file full-r8-config.txt
# The proguard configuration file for the following section is <unknown>
-ignorewarnings
# End of content from <unknown>
This means proguard is ignoring the warnings while building the application. I want to remove this entry as ignoring warnings can be dangerous. Unable to figure out <unknown>
in this entry.
More Details:
proguard-rules.pro
-printconfiguration full-r8-config.txt
App -> build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.proguard.kotlintest2"
minSdkVersion 19
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
Project -> build.gradle
buildscript {
ext.kotlin_version = "1.3.72"
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.0"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
gradle.properties
org.gradle.jvmargs=-Xmx2048m
gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip