Skip to content

Commit

Permalink
BUGFIX extremely broad proguard rules were exposed to consumer
Browse files Browse the repository at this point in the history
Which ballooned app sizes for apps implementing this lib
  • Loading branch information
ninovanhooff committed Jul 11, 2022
1 parent 934d3f5 commit 67e1be4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 87 deletions.
9 changes: 4 additions & 5 deletions q42stats/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,16 @@ android {

buildConfigField("String", "LIB_BUILD_DATE", '"' + new SimpleDateFormat("yyyy-MM-dd").format(Calendar.getInstance().getTime()) + '"')

proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}

buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
consumerProguardFiles 'proguard-rules.pro'
minifyEnabled false
// we don't want to minify the library, that's the consumer (implementing app)'s job
consumerProguardFiles 'consumer-rules.pro'
// will be copied into implementing app's proguard files
}
}
compileOptions {
Expand Down
82 changes: 0 additions & 82 deletions q42stats/proguard-rules.pro

This file was deleted.

0 comments on commit 67e1be4

Please sign in to comment.