react-native-navigation的迁移库

build.gradle 1.9KB

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