Skip to content

Instantly share code, notes, and snippets.

@sergeykomlach
Last active January 22, 2019 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergeykomlach/ef29b21742e49c5a94157fd77b389194 to your computer and use it in GitHub Desktop.
Save sergeykomlach/ef29b21742e49c5a94157fd77b389194 to your computer and use it in GitHub Desktop.
// Optimize APK size - remove excess files in the manifest and APK
packagingOptions {
//ignore strip tool for obsolete arch in 3rd-party libs
doNotStrip "*/armeabi/*.so"
doNotStrip "*/mips/*.so"
doNotStrip "*/mips64/*.so"
exclude "/META-INF/*.kotlin_module"
exclude "**/kotlin/**"
exclude "**/*.txt"
exclude "**/*.xml"
exclude "**/*.properties"
//files with commented code
exclude "**/*.java"
exclude "**/*.kt"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment