OLD | NEW |
1 apply plugin: 'com.android.application' | 1 apply plugin: 'com.android.application' |
2 | 2 |
3 android { | 3 android { |
4 compileSdkVersion rootProject.ext.compileSdkVersion | 4 compileSdkVersion rootProject.ext.compileSdkVersion |
5 buildToolsVersion rootProject.ext.buildToolsVersion | 5 buildToolsVersion rootProject.ext.buildToolsVersion |
6 | 6 |
7 compileOptions { | 7 compileOptions { |
8 sourceCompatibility = rootProject.ext.sourceCompatibilityVersion | 8 sourceCompatibility = rootProject.ext.sourceCompatibilityVersion |
9 targetCompatibility = rootProject.ext.targetCompatibilityVersion | 9 targetCompatibility = rootProject.ext.targetCompatibilityVersion |
10 } | 10 } |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 buildTypes { | 28 buildTypes { |
29 release { | 29 release { |
30 minifyEnabled true | 30 minifyEnabled true |
31 proguardFiles getDefaultProguardFile('proguard-android.txt') | 31 proguardFiles getDefaultProguardFile('proguard-android.txt') |
32 lintOptions { | 32 lintOptions { |
33 disable 'MissingTranslation' | 33 disable 'MissingTranslation' |
34 } | 34 } |
35 } | 35 } |
36 } | 36 } |
| 37 |
| 38 afterEvaluate { project -> |
| 39 project.tasks.prepareReleaseDependencies << { |
| 40 updateBundledLists() |
| 41 println('Bundled lists updated at ' + new Date().format('dd MMM yyyy
, HH:mm:ss zzz')) |
| 42 } |
| 43 } |
| 44 } |
| 45 |
| 46 def updateBundledLists() { |
| 47 new URL(rootProject.ext.easyListUpdateUrl).withInputStream { |
| 48 i -> new File(rootProject.ext.easyListFilePath).withOutputStream { it <<
i } |
| 49 } |
| 50 new URL(rootProject.ext.exceptionRulesUpdateUrl).withInputStream { |
| 51 i -> new File(rootProject.ext.exceptionRulesFilePath).withOutputStream {
it << i } |
| 52 } |
37 } | 53 } |
38 | 54 |
39 dependencies { | 55 dependencies { |
40 compile "com.android.support:support-v4:$rootProject.ext.androidSupportLibra
ryVersion" | 56 compile "com.android.support:support-v4:$rootProject.ext.androidSupportLibra
ryVersion" |
41 } | 57 } |
OLD | NEW |