| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| 1 | |
|
anton
2017/07/06 06:40:24
this change (new line) is not required
jens
2017/07/06 07:54:16
Acknowledged.
| |
| 1 apply plugin: 'com.android.application' | 2 apply plugin: 'com.android.application' |
| 2 | 3 |
| 3 android { | 4 android { |
| 4 compileSdkVersion rootProject.ext.compileSdkVersion | 5 compileSdkVersion rootProject.ext.compileSdkVersion |
| 5 buildToolsVersion rootProject.ext.buildToolsVersion | 6 buildToolsVersion rootProject.ext.buildToolsVersion |
| 6 | 7 |
| 7 compileOptions { | 8 compileOptions { |
| 8 sourceCompatibility = rootProject.ext.sourceCompatibilityVersion | 9 sourceCompatibility = rootProject.ext.sourceCompatibilityVersion |
| 9 targetCompatibility = rootProject.ext.targetCompatibilityVersion | 10 targetCompatibility = rootProject.ext.targetCompatibilityVersion |
| 10 } | 11 } |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 | 28 |
| 28 buildTypes { | 29 buildTypes { |
| 29 release { | 30 release { |
| 30 minifyEnabled true | 31 minifyEnabled true |
| 31 proguardFiles getDefaultProguardFile('proguard-android.txt') | 32 proguardFiles getDefaultProguardFile('proguard-android.txt') |
| 32 lintOptions { | 33 lintOptions { |
| 33 disable 'MissingTranslation' | 34 disable 'MissingTranslation' |
| 34 } | 35 } |
| 35 } | 36 } |
| 36 } | 37 } |
| 38 | |
| 39 // update bundles lists when running a release build | |
| 40 afterEvaluate { project -> | |
| 41 project.tasks.prepareReleaseDependencies << { | |
| 42 updateBundledLists() | |
|
anton
2017/07/06 06:40:24
it would be great to output that the lists are upd
jens
2017/07/06 07:54:16
Good idea, I will add a console output message.
| |
| 43 } | |
| 44 } | |
| 45 } | |
| 46 | |
| 47 def updateBundledLists() { | |
| 48 new URL(rootProject.ext.easyListUpdateUrl).withInputStream{ | |
| 49 i -> new File(rootProject.ext.easyListFilePath).withOutputStream{ it << i }} | |
| 50 new URL(rootProject.ext.exceptionRulesUpdateUrl).withInputStream{ i | |
| 51 -> new File(rootProject.ext.exceptionRulesFilePath).withOutputStream{ it << i }} | |
| 37 } | 52 } |
| 38 | 53 |
| 39 dependencies { | 54 dependencies { |
| 40 compile "com.android.support:support-v4:$rootProject.ext.androidSupportLibra ryVersion" | 55 compile "com.android.support:support-v4:$rootProject.ext.androidSupportLibra ryVersion" |
| 41 } | 56 } |
| OLD | NEW |