Skip to content

Instantly share code, notes, and snippets.

@tobrien
Last active December 16, 2015 04:19
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 tobrien/5376666 to your computer and use it in GitHub Desktop.
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
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"
}
}
}
@Randgalt
Copy link

How much code is implied by "apply plugin: 'android'"?

@bryanstephens
Copy link

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