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

Unified 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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: adblockplussbrowser/build.gradle
===================================================================
--- a/adblockplussbrowser/build.gradle
+++ b/adblockplussbrowser/build.gradle
@@ -16,31 +16,36 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 11
versionName '1.1.1'
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
- java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
lintOptions {
disable 'MissingTranslation'
}
}
}
+ testOptions {
+ unitTests {
+ includeAndroidResources = true
+ }
+ }
+
afterEvaluate { project ->
project.tasks.generateReleaseResources << {
updateBundledLists()
println('Bundled lists updated at ' + new Date().format('dd MMM yyyy, HH:mm:ss zzz'))
}
}
}
@@ -50,13 +55,16 @@ def updateBundledLists() {
}
new URL(rootProject.ext.exceptionRulesUpdateUrl).withInputStream {
i -> new File(rootProject.ext.exceptionRulesFilePath).withOutputStream { it << i }
}
}
dependencies {
testCompile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlinVersion"
+ testCompile 'junit:junit:4.12'
+ testCompile 'org.mockito:mockito-core:2.11.0'
+ testCompile 'org.robolectric:robolectric:3.5.1'
compile "com.android.support:support-v4:$rootProject.ext.androidSupportLibraryVersion"
compile (group: 'commons-validator', name: 'commons-validator', version: '+') {
exclude group: 'commons-logging', module: 'commons-logging'
}
}
« 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