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

Delta Between Two Patch Sets: adblockplussbrowser/build.gradle

Issue 29728661: Noissue - Update dependencies and tools (Closed)
Left Patch Set: Created March 20, 2018, 6:29 p.m.
Right Patch Set: Update Kotlin version Created March 28, 2018, 12:54 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | build.gradle » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 apply plugin: 'com.android.application' 1 apply plugin: 'com.android.application'
2 apply plugin: 'kotlin-android' 2 apply plugin: 'kotlin-android'
3 apply plugin: 'kotlin-android-extensions' 3 apply plugin: 'kotlin-android-extensions'
4 4
5 android { 5 android {
6 compileSdkVersion rootProject.ext.compileSdkVersion 6 compileSdkVersion rootProject.ext.compileSdkVersion
7 buildToolsVersion rootProject.ext.buildToolsVersion 7 buildToolsVersion rootProject.ext.buildToolsVersion
8 8
9 compileOptions { 9 compileOptions {
10 sourceCompatibility = rootProject.ext.sourceCompatibilityVersion 10 sourceCompatibility = rootProject.ext.sourceCompatibilityVersion
11 targetCompatibility = rootProject.ext.targetCompatibilityVersion 11 targetCompatibility = rootProject.ext.targetCompatibilityVersion
12 } 12 }
13 13
14 defaultConfig { 14 defaultConfig {
15 applicationId "org.adblockplus.adblockplussbrowser" 15 applicationId "org.adblockplus.adblockplussbrowser"
16 minSdkVersion rootProject.ext.minSdkVersion 16 minSdkVersion rootProject.ext.minSdkVersion
17 targetSdkVersion rootProject.ext.targetSdkVersion 17 targetSdkVersion rootProject.ext.targetSdkVersion
18 versionCode 13 18 versionCode 14
19 versionName '1.1.3' 19 versionName '1.1.4'
20 } 20 }
21 21
22 sourceSets { 22 sourceSets {
23 main { 23 main {
24 manifest.srcFile 'AndroidManifest.xml' 24 manifest.srcFile 'AndroidManifest.xml'
25 res.srcDirs = ['res'] 25 res.srcDirs = ['res']
26 } 26 }
27 } 27 }
28 28
29 buildTypes { 29 buildTypes {
30 release { 30 release {
31 minifyEnabled true 31 minifyEnabled true
32 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'progu ard-rules.pro' 32 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'progu ard-rules.pro'
33 lintOptions { 33 lintOptions {
34 disable 'MissingTranslation' 34 disable 'MissingTranslation'
35 } 35 }
36 } 36 }
37 } 37 }
38 38
39 flavorDimensions "region"
40
41 productFlavors {
42 world {
43 dimension "region"
44 }
45
46 cn {
47 dimension "region"
48 applicationIdSuffix ".cn"
49 }
50 }
51
39 testOptions { 52 testOptions {
40 unitTests { 53 unitTests {
41 includeAndroidResources = true 54 includeAndroidResources = true
42 } 55 }
43 } 56 }
44 57
45 afterEvaluate { project -> 58 afterEvaluate { project ->
46 project.tasks.generateReleaseResources << {
47 59
48 updateBundledLists() 60 project.tasks.all { task ->
49 println('Bundled lists updated at ' + new Date().format('dd MMM yyyy , HH:mm:ss zzz')) 61 if (task.name.matches("generate.*Release.*Resources")) {
62 task.doLast {
63 updateBundledLists()
64 println('Bundled lists updated at ' + new Date().format('dd MMM yyyy, HH:mm:ss zzz'))
65 }
66 }
50 } 67 }
51 } 68 }
52 } 69 }
53 70
54 def updateBundledLists() { 71 def updateBundledLists() {
55 new URL(rootProject.ext.easyListUpdateUrl).withInputStream { 72 new URL(rootProject.ext.easyListUpdateUrl).withInputStream {
56 i -> new File(rootProject.ext.easyListFilePath).withOutputStream { it << i } 73 i -> new File(rootProject.ext.easyListFilePath).withOutputStream { it << i }
57 } 74 }
58 new URL(rootProject.ext.exceptionRulesUpdateUrl).withInputStream { 75 new URL(rootProject.ext.exceptionRulesUpdateUrl).withInputStream {
59 i -> new File(rootProject.ext.exceptionRulesFilePath).withOutputStream { it << i } 76 i -> new File(rootProject.ext.exceptionRulesFilePath).withOutputStream { it << i }
60 } 77 }
61 } 78 }
62 79
63 dependencies { 80 dependencies {
64 testImplementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlinVersion" 81 testImplementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlinVersion"
65 testImplementation 'junit:junit:4.12' 82 testImplementation 'junit:junit:4.12'
66 testImplementation 'org.mockito:mockito-core:2.16.0' 83 testImplementation 'org.mockito:mockito-core:2.16.0'
67 testImplementation 'org.robolectric:robolectric:3.8' 84 testImplementation 'org.robolectric:robolectric:3.8'
68 implementation "com.android.support:support-v4:$rootProject.ext.androidSuppo rtLibraryVersion" 85 implementation "com.android.support:support-v4:$rootProject.ext.androidSuppo rtLibraryVersion"
69 implementation (group: 'commons-validator', name: 'commons-validator', versi on: '1.6') { 86 implementation (group: 'commons-validator', name: 'commons-validator', versi on: '1.6') {
70 exclude group: 'commons-logging', module: 'commons-logging' 87 exclude group: 'commons-logging', module: 'commons-logging'
71 } 88 }
72 } 89 }
LEFTRIGHT
« no previous file | build.gradle » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld