react-native-navigation的迁移库

build.gradle 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 23
  4. buildToolsVersion "23.0.3"
  5. defaultConfig {
  6. minSdkVersion 16
  7. targetSdkVersion 23
  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' + ('-' * repeatLength) + '\n' + output + '\n' + ('-' * repeatLength) + '\n'
  35. println "see report at file://${t.reports.html.destination}/index.html"
  36. }
  37. }
  38. }
  39. }
  40. }
  41. dependencies {
  42. compile fileTree(dir: "libs", include: ["*.jar"])
  43. compile "com.android.support:appcompat-v7:23.3.0"
  44. compile 'com.android.support:design:23.3.0'
  45. // node_modules
  46. compile "com.facebook.react:react-native:+"
  47. // third party
  48. compile "com.aurelhubert:ahbottomnavigation:1.3.3"
  49. compile 'com.balysv.materialmenu:material-menu-toolbar:1.5.4'
  50. // tests
  51. testCompile "junit:junit:4.12"
  52. testCompile "org.robolectric:robolectric:3.1.1"
  53. testCompile 'org.assertj:assertj-core:3.5.2'
  54. }