Created
May 29, 2015 02:35
-
-
Save bornknow108/dc7d850d67773009747b to your computer and use it in GitHub Desktop.
android gradle template
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
| apply plugin: 'com.android.application' | |
| android { | |
| compileSdkVersion 22 | |
| buildToolsVersion "21.1.2" | |
| defaultConfig { | |
| applicationId "com.bornknow.xxxxxxx" | |
| minSdkVersion 14 | |
| targetSdkVersion 22 | |
| versionCode 1 | |
| versionName "1.0" | |
| testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
| } | |
| packagingOptions { | |
| // for AndroidStudio's bug. duplication error of file below. | |
| pickFirst 'META-INF/LICENSE.txt' | |
| pickFirst 'LICENSE.txt' | |
| } | |
| signingConfigs { | |
| debug { | |
| } | |
| release { | |
| storeFile file("release.keystore") | |
| storePassword "xxxxxxxx" | |
| keyAlias "com.bornknow.xxxxxxx" | |
| keyPassword "xxxxxxxx" | |
| } | |
| } | |
| productFlavors { | |
| dev { | |
| } | |
| production { | |
| } | |
| } | |
| buildTypes { | |
| debug { | |
| debuggable true | |
| minifyEnabled false | |
| } | |
| release { | |
| debuggable false | |
| minifyEnabled true | |
| proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
| signingConfig signingConfigs.release | |
| } | |
| } | |
| } | |
| configurations.all { | |
| resolutionStrategy.force 'com.android.support:support-annotations:22.0.0' | |
| } | |
| dependencies { | |
| compile fileTree(dir: 'libs', include: ['*.jar']) | |
| compile 'com.android.support:support-v4:22.0.0' | |
| compile 'com.android.support:appcompat-v7:22.1.1' | |
| // Unit Test | |
| testCompile 'junit:junit:4.12' | |
| testCompile "org.mockito:mockito-core:1.9.5" | |
| // UI Test | |
| androidTestCompile 'com.android.support.test:runner:0.2' | |
| androidTestCompile 'com.android.support.test:rules:0.2' | |
| androidTestCompile 'com.android.support.test.espresso:espresso-core:2.1' | |
| androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.1' | |
| androidTestCompile 'com.android.support.test.espresso:espresso-contrib:2.0' | |
| //androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.0' | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment