diff options
author | Sam Whited <sam@samwhited.com> | 2014-10-22 15:39:53 -0400 |
---|---|---|
committer | Sam Whited <sam@samwhited.com> | 2014-10-22 15:39:53 -0400 |
commit | 07b47172a08c01c248c6f69bae48d9e60695a14b (patch) | |
tree | 2184208a18784b5f25687a80f43b6f5d970d2f47 /build.gradle | |
parent | 038f7afd88572c7038fc11d984c56b910d72e97e (diff) |
Add build deps and move build props to build file
Diffstat (limited to '')
-rw-r--r-- | build.gradle | 59 |
1 files changed, 50 insertions, 9 deletions
diff --git a/build.gradle b/build.gradle index 8942ba1c2..ab0325717 100644 --- a/build.gradle +++ b/build.gradle @@ -1,16 +1,57 @@ // Top-level build file where you can add configuration options common to all // sub-projects/modules. buildscript { - repositories { - jcenter() - } - dependencies { - classpath 'com.android.tools.build:gradle:0.12.2' - } + repositories { + jcenter() + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:0.12.2' + } } allprojects { - repositories { - jcenter() - } + repositories { + jcenter() + mavenCentral() + } +} + +apply plugin: 'android' + +repositories { + mavenCentral() +} + +android { + compileSdkVersion 19 + buildToolsVersion "19.1" + + defaultConfig { + minSdkVersion 14 + targetSdkVersion 19 + versionCode 32 + versionName "0.8-alpha" + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_7 + targetCompatibility JavaVersion.VERSION_1_7 + } + buildTypes { + release { + runProguard true + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' + } + debug { + runProguard false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' + } + } +} + +dependencies { + // ToDo: Move libs here if possible (instead of including the jars) + "compile 'com.android.support:support-v13:19.1.0'" + compile fileTree(dir: 'libs', include: ['*.jar']) } |