Last active
December 16, 2015 04:19
-
-
Save tobrien/5376666 to your computer and use it in GitHub Desktop.
A Sample Android Gradle Build referenced from this blog entry: http://www.gradleware.com/news/blog/fighting-common-misconception-gradle-isnt-imperative
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.3' | |
} | |
} | |
apply plugin: 'android' | |
android { | |
compileSdkVersion 15 | |
flavorGroups "abi", "version" | |
productFlavors { | |
arm { | |
flavorGroup "abi" | |
} | |
x86 { | |
flavorGroup "abi" | |
} | |
free { | |
flavorGroup "version" | |
packageName = "com.android.tests.flavored.free" | |
versionName = "2.0.0-free" | |
} | |
paid { | |
flavorGroup "version" | |
packageName = "com.android.tests.flavored.paid" | |
versionName = "1.0.0-paid" | |
} | |
} | |
} |
It appears that the blog link listed above is bringing me to a blank page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How much code is implied by "apply plugin: 'android'"?