Skip to content

Commit

Permalink
Remove unused resources from release builds
Browse files Browse the repository at this point in the history
...using "Resource shrinking".  From a quick test, this cuts the OBA Google release APK from 3.334 MB to 2.788 MB.  This becomes more important as we're using more and more support libraries, especially the Android Design Support library, which are going to have a lot of embedded resources, many of which we won't use.
  • Loading branch information
barbeau committed Jun 24, 2015
1 parent 6f13dcb commit 2cca338
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions onebusaway-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ android {
release {
signingConfig signingConfigs.release
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
}
Expand Down

0 comments on commit 2cca338

Please sign in to comment.