react-native-navigation的迁移库

build.gradle 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. apply plugin: 'com.android.library'
  2. apply from: '../prepare-robolectric.gradle'
  3. android {
  4. compileSdkVersion 25
  5. buildToolsVersion "27.0.1"
  6. compileOptions {
  7. sourceCompatibility JavaVersion.VERSION_1_8
  8. targetCompatibility JavaVersion.VERSION_1_8
  9. }
  10. defaultConfig {
  11. minSdkVersion 16
  12. targetSdkVersion 25
  13. versionCode 1
  14. versionName "1.0"
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled false
  19. }
  20. debug {
  21. minifyEnabled false
  22. }
  23. }
  24. lintOptions {
  25. abortOnError false
  26. }
  27. testOptions {
  28. unitTests.all { t ->
  29. reports {
  30. html.enabled true
  31. }
  32. testLogging {
  33. events "passed", "skipped", "failed", "standardOut", "standardError"
  34. }
  35. afterSuite { desc, result ->
  36. if (!desc.parent) { // will match the outermost suite
  37. def output = " ${result.resultType} (${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped) "
  38. def repeatLength = output.length()
  39. println '\n\n' + ('-' * repeatLength) + '\n' + output + '\n' + ('-' * repeatLength) + '\n'
  40. println "see report at file://${t.reports.html.destination}/index.html"
  41. }
  42. }
  43. }
  44. }
  45. }
  46. dependencies {
  47. compile fileTree(include: ['*.jar'], dir: 'libs')
  48. compile 'com.android.support:design:25.3.1'
  49. compile 'com.android.support:appcompat-v7:25.3.1'
  50. compile "com.android.support:support-v4:25.3.1"
  51. // node_modules
  52. //noinspection GradleDynamicVersion
  53. compile 'com.facebook.react:react-native:+'
  54. // tests
  55. testCompile 'junit:junit:4.12'
  56. testCompile 'org.robolectric:robolectric:3.5.1'
  57. testCompile 'org.assertj:assertj-core:2.5.0'
  58. testCompile 'com.squareup.assertj:assertj-android:1.1.1'
  59. testCompile 'org.mockito:mockito-core:2.7.5'
  60. }