Skip to content

Instantly share code, notes, and snippets.

@dmarcato
dmarcato / strip_play_services.gradle
Last active Jul 26, 2021
Gradle task to strip unused packages on Google Play Services library
View strip_play_services.gradle
def toCamelCase(String string) {
String result = ""
string.findAll("[^\\W]+") { String word ->
result += word.capitalize()
}
return result
}
afterEvaluate { project ->
Configuration runtimeConfiguration = project.configurations.getByName('compile')