Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: adblockplussbrowser/build.gradle

Issue 29479601: Issue 5273 - Automatically update bundled lists (Closed)
Patch Set: Created July 4, 2017, 12:50 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build.gradle » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | build.gradle » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld