|
1 | 1 | apply plugin: 'com.android.application' |
2 | 2 |
|
3 | 3 | android { |
4 | | - compileSdkVersion COMPILE_SDK_VERSION as int |
5 | | - buildToolsVersion BUILD_TOOLS_VERSION |
6 | | - |
7 | | - defaultConfig { |
8 | | - minSdkVersion MIN_SDK_VERSION as int |
9 | | - targetSdkVersion TARGET_SDK_VERSION as int |
10 | | - versionCode "git rev-list origin/master --count".execute().text.toInteger() |
11 | | - versionName VERSION_NAME |
| 4 | + compileSdkVersion COMPILE_SDK_VERSION as int |
| 5 | + buildToolsVersion BUILD_TOOLS_VERSION |
| 6 | + |
| 7 | + defaultConfig { |
| 8 | + minSdkVersion MIN_SDK_VERSION as int |
| 9 | + targetSdkVersion TARGET_SDK_VERSION as int |
| 10 | + versionCode "git rev-list origin/master --count".execute().text.toInteger() |
| 11 | + versionName VERSION_NAME |
| 12 | + } |
| 13 | + |
| 14 | + signingConfigs { |
| 15 | + release { |
| 16 | + storeFile file(keyStoreProperty) |
| 17 | + keyAlias keyAliasProperty |
| 18 | + storePassword keyStorePasswordProperty |
| 19 | + keyPassword keyAliasPasswordProperty |
12 | 20 | } |
| 21 | + } |
13 | 22 |
|
14 | | - signingConfigs { |
15 | | - release { |
16 | | - storeFile file(keyStoreProperty) |
17 | | - keyAlias keyAliasProperty |
18 | | - storePassword keyStorePasswordProperty |
19 | | - keyPassword keyAliasPasswordProperty |
20 | | - } |
| 23 | + buildTypes { |
| 24 | + debug { |
| 25 | + debuggable true |
| 26 | + zipAlignEnabled true |
21 | 27 | } |
22 | | - |
23 | | - buildTypes { |
24 | | - debug { |
25 | | - debuggable true |
26 | | - zipAlignEnabled true |
27 | | - } |
28 | | - release { |
29 | | - debuggable false |
30 | | - zipAlignEnabled true |
31 | | - signingConfig signingConfigs.release |
32 | | - } |
| 28 | + release { |
| 29 | + debuggable false |
| 30 | + zipAlignEnabled true |
| 31 | + signingConfig signingConfigs.release |
33 | 32 | } |
| 33 | + } |
34 | 34 | } |
35 | 35 |
|
36 | 36 | def getKeyStoreProperty() { |
37 | | - return hasProperty('WASABEEF_KEYSTORE') ? WASABEEF_KEYSTORE : "debug.keystore" |
| 37 | + return hasProperty('WASABEEF_KEYSTORE') ? WASABEEF_KEYSTORE : "debug.keystore" |
38 | 38 | } |
39 | 39 |
|
40 | 40 | def getKeyAliasProperty() { |
41 | | - return hasProperty('WASABEEF_KEYALIAS') ? WASABEEF_KEYALIAS : "android" |
| 41 | + return hasProperty('WASABEEF_KEYALIAS') ? WASABEEF_KEYALIAS : "android" |
42 | 42 | } |
43 | 43 |
|
44 | 44 | def getKeyStorePasswordProperty() { |
45 | | - return hasProperty('WASABEEF_KEYSTOREPASSWORD') ? WASABEEF_KEYSTOREPASSWORD : "androiddebugkey" |
| 45 | + return hasProperty('WASABEEF_KEYSTOREPASSWORD') ? WASABEEF_KEYSTOREPASSWORD : "androiddebugkey" |
46 | 46 | } |
47 | 47 |
|
48 | 48 | def getKeyAliasPasswordProperty() { |
49 | | - return hasProperty('WASABEEF_KEYALIASPASSWORD') ? WASABEEF_KEYALIASPASSWORD : "android" |
| 49 | + return hasProperty('WASABEEF_KEYALIASPASSWORD') ? WASABEEF_KEYALIASPASSWORD : "android" |
50 | 50 | } |
51 | 51 |
|
52 | 52 | dependencies { |
53 | | - compile project(':transformations') |
54 | | - compile "com.github.bumptech.glide:glide:${GLIDE_VERSION}" |
55 | | - compile "jp.co.cyberagent.android.gpuimage:gpuimage-library:${GPUIMAGE_VERSION}" |
56 | | - compile "com.android.support:appcompat-v7:${SUPPORT_PACKAGE_VERSION}" |
57 | | - compile "com.android.support:recyclerview-v7:${SUPPORT_PACKAGE_VERSION}" |
| 53 | + compile project(':transformations') |
| 54 | + compile "com.github.bumptech.glide:glide:${GLIDE_VERSION}" |
| 55 | + compile "jp.co.cyberagent.android.gpuimage:gpuimage-library:${GPUIMAGE_VERSION}" |
| 56 | + compile "com.android.support:appcompat-v7:${SUPPORT_PACKAGE_VERSION}" |
| 57 | + compile "com.android.support:recyclerview-v7:${SUPPORT_PACKAGE_VERSION}" |
58 | 58 | } |
0 commit comments