| 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 18 matching lines...) Expand all Loading... |
| 29 release { | 29 release { |
| 30 minifyEnabled true | 30 minifyEnabled true |
| 31 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'progu
ard-rules.pro' | 31 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'progu
ard-rules.pro' |
| 32 lintOptions { | 32 lintOptions { |
| 33 disable 'MissingTranslation' | 33 disable 'MissingTranslation' |
| 34 } | 34 } |
| 35 } | 35 } |
| 36 } | 36 } |
| 37 | 37 |
| 38 afterEvaluate { project -> | 38 afterEvaluate { project -> |
| 39 project.tasks.prepareReleaseDependencies << { | 39 project.tasks.generateReleaseResources << { |
| 40 updateBundledLists() | 40 updateBundledLists() |
| 41 println('Bundled lists updated at ' + new Date().format('dd MMM yyyy
, HH:mm:ss zzz')) | 41 println('Bundled lists updated at ' + new Date().format('dd MMM yyyy
, HH:mm:ss zzz')) |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 | 45 |
| 46 def updateBundledLists() { | 46 def updateBundledLists() { |
| 47 new URL(rootProject.ext.easyListUpdateUrl).withInputStream { | 47 new URL(rootProject.ext.easyListUpdateUrl).withInputStream { |
| 48 i -> new File(rootProject.ext.easyListFilePath).withOutputStream { it <<
i } | 48 i -> new File(rootProject.ext.easyListFilePath).withOutputStream { it <<
i } |
| 49 } | 49 } |
| 50 new URL(rootProject.ext.exceptionRulesUpdateUrl).withInputStream { | 50 new URL(rootProject.ext.exceptionRulesUpdateUrl).withInputStream { |
| 51 i -> new File(rootProject.ext.exceptionRulesFilePath).withOutputStream {
it << i } | 51 i -> new File(rootProject.ext.exceptionRulesFilePath).withOutputStream {
it << i } |
| 52 } | 52 } |
| 53 } | 53 } |
| 54 | 54 |
| 55 dependencies { | 55 dependencies { |
| 56 compile "com.android.support:support-v4:$rootProject.ext.androidSupportLibra
ryVersion" | 56 compile "com.android.support:support-v4:$rootProject.ext.androidSupportLibra
ryVersion" |
| 57 compile (group: 'commons-validator', name: 'commons-validator', version: '+'
) { | 57 compile (group: 'commons-validator', name: 'commons-validator', version: '+'
) { |
| 58 exclude group: 'commons-logging', module: 'commons-logging' | 58 exclude group: 'commons-logging', module: 'commons-logging' |
| 59 } | 59 } |
| 60 } | 60 } |
| OLD | NEW |