123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- apply plugin: 'com.android.library'
- apply from: '../prepare-robolectric.gradle'
-
- android {
- compileSdkVersion 25
- buildToolsVersion "25.0.2"
-
- defaultConfig {
- minSdkVersion 16
- targetSdkVersion 25
- versionCode 1
- versionName "1.0"
- }
- buildTypes {
- release {
- minifyEnabled false
- }
- debug {
- minifyEnabled false
- }
- }
- lintOptions {
- abortOnError false
- }
-
- testOptions {
- unitTests.all { t ->
- reports {
- html.enabled true
- }
- testLogging {
- events "passed", "skipped", "failed", "standardOut", "standardError"
- }
- afterSuite { desc, result ->
- if (!desc.parent) { // will match the outermost suite
- def output = " ${result.resultType} (${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped) "
- def repeatLength = output.length()
- println '\n\n' + ('-' * repeatLength) + '\n' + output + '\n' + ('-' * repeatLength) + '\n'
-
- println "see report at file://${t.reports.html.destination}/index.html"
- }
- }
- }
- }
- }
-
- dependencies {
- compile fileTree(include: ['*.jar'], dir: 'libs')
- compile 'com.android.support:design:25.1.1'
- compile 'com.android.support:appcompat-v7:25.1.1'
- compile "com.android.support:support-v4:25.1.1"
-
- // node_modules
- compile 'com.facebook.react:react-native:+'
-
- // tests
- testCompile 'junit:junit:4.12'
- testCompile 'org.robolectric:robolectric:3.3'
- testCompile 'org.assertj:assertj-core:2.5.0'
- testCompile 'com.squareup.assertj:assertj-android:1.1.1'
- testCompile 'org.mockito:mockito-core:2.7.5'
- }
|