Filipe Gonçalves | 8edd395 | 2015-01-28 16:36:00 +0000 | [diff] [blame^] | 1 | // Top level gradle declarations |
| 2 | |
| 3 | buildscript { |
| 4 | repositories { |
| 5 | jcenter() |
| 6 | } |
| 7 | dependencies { |
| 8 | classpath 'com.android.tools.build:gradle:1.0.0' |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | allprojects { |
| 13 | repositories { |
| 14 | jcenter() |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | // Module level gradle declarations |
| 19 | |
| 20 | apply plugin: 'com.android.application' |
| 21 | |
| 22 | android { |
| 23 | compileSdkVersion 21 |
| 24 | buildToolsVersion "21.1.2" |
| 25 | |
| 26 | defaultConfig { |
| 27 | applicationId "com.fairphone.updater" |
| 28 | minSdkVersion 17 |
| 29 | targetSdkVersion 21 |
| 30 | } |
| 31 | |
| 32 | buildTypes { |
| 33 | release { |
| 34 | minifyEnabled true |
| 35 | shrinkResources true |
| 36 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | sourceSets { |
| 41 | main { |
| 42 | manifest.srcFile 'AndroidManifest.xml' |
| 43 | java.srcDirs = ['src'] |
| 44 | resources.srcDirs = ['src'] |
| 45 | aidl.srcDirs = ['src'] |
| 46 | renderscript.srcDirs = ['src'] |
| 47 | res.srcDirs = ['res'] |
| 48 | assets.srcDirs = ['assets'] |
| 49 | } |
| 50 | |
| 51 | // Move the tests to tests/java, tests/res, etc... |
| 52 | instrumentTest.setRoot('tests') |
| 53 | androidTest.setRoot('tests') |
| 54 | |
| 55 | // Move the build types to build-types/<type> |
| 56 | // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... |
| 57 | // This moves them out of them default location under src/<type>/... which would |
| 58 | // conflict with src/ being used by the main source set. |
| 59 | // Adding new build types or product flavors should be accompanied |
| 60 | // by a similar customization. |
| 61 | debug.setRoot('build-types/debug') |
| 62 | release.setRoot('build-types/release') |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | dependencies { |
| 67 | compile 'com.android.support:support-v4:21.0.+' |
| 68 | compile files('libs/crashlytics.jar') |
| 69 | compile files('libs/RootTools-3.3.jar') |
| 70 | } |