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

Side by Side Diff: adblockplussbrowser/build.gradle

Issue 29603697: Issue 5931 - Create tests for util package (Closed)
Patch Set: Removed default srcDir Created Nov. 30, 2017, 8:39 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 | adblockplussbrowser/src/main/java/org/adblockplus/sbrowser/contentblocker/ConnectivityChanged.java » ('j') | no next file with comments »
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 apply plugin: 'kotlin-android' 2 apply plugin: 'kotlin-android'
3 3
4 android { 4 android {
5 compileSdkVersion rootProject.ext.compileSdkVersion 5 compileSdkVersion rootProject.ext.compileSdkVersion
6 buildToolsVersion rootProject.ext.buildToolsVersion 6 buildToolsVersion rootProject.ext.buildToolsVersion
7 7
8 compileOptions { 8 compileOptions {
9 sourceCompatibility = rootProject.ext.sourceCompatibilityVersion 9 sourceCompatibility = rootProject.ext.sourceCompatibilityVersion
10 targetCompatibility = rootProject.ext.targetCompatibilityVersion 10 targetCompatibility = rootProject.ext.targetCompatibilityVersion
11 } 11 }
12 12
13 defaultConfig { 13 defaultConfig {
14 applicationId "org.adblockplus.adblockplussbrowser" 14 applicationId "org.adblockplus.adblockplussbrowser"
15 minSdkVersion rootProject.ext.minSdkVersion 15 minSdkVersion rootProject.ext.minSdkVersion
16 targetSdkVersion rootProject.ext.targetSdkVersion 16 targetSdkVersion rootProject.ext.targetSdkVersion
17 versionCode 11 17 versionCode 11
18 versionName '1.1.1' 18 versionName '1.1.1'
19 } 19 }
20 20
21 sourceSets { 21 sourceSets {
22 main { 22 main {
23 manifest.srcFile 'AndroidManifest.xml' 23 manifest.srcFile 'AndroidManifest.xml'
24 java.srcDirs = ['src']
25 res.srcDirs = ['res'] 24 res.srcDirs = ['res']
26 } 25 }
27 } 26 }
28 27
29 buildTypes { 28 buildTypes {
30 release { 29 release {
31 minifyEnabled true 30 minifyEnabled true
32 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'progu ard-rules.pro' 31 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'progu ard-rules.pro'
33 lintOptions { 32 lintOptions {
34 disable 'MissingTranslation' 33 disable 'MissingTranslation'
35 } 34 }
36 } 35 }
37 } 36 }
38 37
38 testOptions {
39 unitTests {
40 includeAndroidResources = true
41 }
42 }
43
39 afterEvaluate { project -> 44 afterEvaluate { project ->
40 project.tasks.generateReleaseResources << { 45 project.tasks.generateReleaseResources << {
41 updateBundledLists() 46 updateBundledLists()
42 println('Bundled lists updated at ' + new Date().format('dd MMM yyyy , HH:mm:ss zzz')) 47 println('Bundled lists updated at ' + new Date().format('dd MMM yyyy , HH:mm:ss zzz'))
43 } 48 }
44 } 49 }
45 } 50 }
46 51
47 def updateBundledLists() { 52 def updateBundledLists() {
48 new URL(rootProject.ext.easyListUpdateUrl).withInputStream { 53 new URL(rootProject.ext.easyListUpdateUrl).withInputStream {
49 i -> new File(rootProject.ext.easyListFilePath).withOutputStream { it << i } 54 i -> new File(rootProject.ext.easyListFilePath).withOutputStream { it << i }
50 } 55 }
51 new URL(rootProject.ext.exceptionRulesUpdateUrl).withInputStream { 56 new URL(rootProject.ext.exceptionRulesUpdateUrl).withInputStream {
52 i -> new File(rootProject.ext.exceptionRulesFilePath).withOutputStream { it << i } 57 i -> new File(rootProject.ext.exceptionRulesFilePath).withOutputStream { it << i }
53 } 58 }
54 } 59 }
55 60
56 dependencies { 61 dependencies {
57 testCompile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlinVersion" 62 testCompile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlinVersion"
63 testCompile 'junit:junit:4.12'
64 testCompile 'org.mockito:mockito-core:2.11.0'
65 testCompile 'org.robolectric:robolectric:3.5.1'
58 compile "com.android.support:support-v4:$rootProject.ext.androidSupportLibra ryVersion" 66 compile "com.android.support:support-v4:$rootProject.ext.androidSupportLibra ryVersion"
59 compile (group: 'commons-validator', name: 'commons-validator', version: '+' ) { 67 compile (group: 'commons-validator', name: 'commons-validator', version: '+' ) {
60 exclude group: 'commons-logging', module: 'commons-logging' 68 exclude group: 'commons-logging', module: 'commons-logging'
61 } 69 }
62 } 70 }
OLDNEW
« no previous file with comments | « no previous file | adblockplussbrowser/src/main/java/org/adblockplus/sbrowser/contentblocker/ConnectivityChanged.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld