1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- apply plugin: 'com.android.library'
- apply from: '../prepare-robolectric.gradle'
-
- android {
- compileSdkVersion 25
- buildToolsVersion "27.0.1"
-
- defaultConfig {
- minSdkVersion 19
- 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"
- }
- }
- }
- }
- }
-
- allprojects { p ->
- p.afterEvaluate {
- p.android.compileOptions.sourceCompatibility JavaVersion.VERSION_1_8
- p.android.compileOptions.targetCompatibility JavaVersion.VERSION_1_8
- }
- }
-
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation 'com.android.support:design:25.4.0'
- implementation 'com.android.support:appcompat-v7:25.4.0'
- implementation "com.android.support:support-v4:25.4.0"
-
- // node_modules
- //noinspection GradleDynamicVersion
- implementation 'com.facebook.react:react-native:+'
-
- // tests
- testImplementation 'junit:junit:4.12'
- testImplementation 'org.robolectric:robolectric:3.5.1'
- testImplementation 'org.assertj:assertj-core:2.8.0'
- testImplementation 'com.squareup.assertj:assertj-android:1.1.1'
- testImplementation 'org.mockito:mockito-core:2.12.0'
- }
|