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: Formatting and output when lists were updated Created July 7, 2017, 7:57 a.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') | build.gradle » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | build.gradle » ('j') | build.gradle » ('J')

Powered by Google App Engine
This is Rietveld