react-native-navigation的迁移库

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. apply plugin: 'com.android.library'
  2. apply from: '../prepare-robolectric.gradle'
  3. android {
  4. compileSdkVersion 25
  5. buildToolsVersion "25.0.2"
  6. defaultConfig {
  7. minSdkVersion 16
  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. }
  42. task unitTest(dependsOn: 'testDebugUnitTest') {}
  43. dependencies {
  44. compile fileTree(include: ['*.jar'], dir: 'libs')
  45. compile 'com.android.support:design:25.1.1'
  46. compile 'com.android.support:appcompat-v7:25.1.1'
  47. compile "com.android.support:support-v4:25.1.1"
  48. // node_modules
  49. compile 'com.facebook.react:react-native:+'
  50. // tests
  51. testCompile 'junit:junit:4.12'
  52. testCompile 'org.robolectric:robolectric:3.3'
  53. testCompile 'org.assertj:assertj-core:2.5.0'
  54. testCompile 'org.mockito:mockito-core:2.7.5'
  55. }