react-native-navigation的迁移库

build.gradle 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. apply plugin: 'com.android.library'
  2. apply from: '../prepare-robolectric.gradle'
  3. android {
  4. compileSdkVersion 25
  5. buildToolsVersion '27.0.3'
  6. defaultConfig {
  7. minSdkVersion 19
  8. targetSdkVersion 25
  9. versionCode 1
  10. versionName "1.0"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. }
  16. debug {
  17. minifyEnabled false
  18. }
  19. }
  20. lintOptions {
  21. abortOnError false
  22. }
  23. testOptions {
  24. unitTests.all { t ->
  25. reports {
  26. html.enabled true
  27. }
  28. testLogging {
  29. events "PASSED", "SKIPPED", "FAILED", "standardOut", "standardError"
  30. }
  31. afterSuite { desc, result ->
  32. if (!desc.parent) { // will match the outermost suite
  33. def output = " ${result.resultType} (${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped) "
  34. def repeatLength = output.length()
  35. println '\n\n' + ('-' * repeatLength) + '\n' + output + '\n' + ('-' * repeatLength) + '\n'
  36. println "see report at file://${t.reports.html.destination}/index.html"
  37. }
  38. }
  39. }
  40. }
  41. compileOptions {
  42. sourceCompatibility JavaVersion.VERSION_1_8
  43. targetCompatibility JavaVersion.VERSION_1_8
  44. }
  45. flavorDimensions "RNN.reactNativeVersion"
  46. productFlavors {
  47. reactNative51 {
  48. dimension "RNN.reactNativeVersion"
  49. }
  50. reactNative55 {
  51. dimension "RNN.reactNativeVersion"
  52. }
  53. }
  54. }
  55. allprojects { p ->
  56. p.afterEvaluate {
  57. p.android.compileOptions.sourceCompatibility JavaVersion.VERSION_1_8
  58. p.android.compileOptions.targetCompatibility JavaVersion.VERSION_1_8
  59. }
  60. }
  61. dependencies {
  62. implementation fileTree(include: ['*.jar'], dir: 'libs')
  63. implementation 'com.android.support:design:25.4.0'
  64. implementation 'com.android.support:appcompat-v7:25.4.0'
  65. implementation 'com.android.support:support-v4:25.4.0'
  66. implementation 'com.aurelhubert:ahbottomnavigation:2.1.0'
  67. implementation 'com.github.clans:fab:1.6.4'
  68. //noinspection GradleDynamicVersion
  69. implementation 'com.facebook.react:react-native:+'
  70. // tests
  71. testImplementation 'junit:junit:4.12'
  72. testImplementation 'org.robolectric:robolectric:3.5.1'
  73. testImplementation 'org.assertj:assertj-core:3.8.0'
  74. testImplementation 'com.squareup.assertj:assertj-android:1.1.1'
  75. testImplementation 'org.mockito:mockito-core:2.13.0'
  76. }