react-native-navigation的迁移库

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. }
  5. dependencies {
  6. classpath 'com.android.tools.build:gradle:2.1.3'
  7. }
  8. }
  9. apply plugin: 'com.android.library'
  10. android {
  11. compileSdkVersion 23
  12. buildToolsVersion "23.0.1"
  13. defaultConfig {
  14. minSdkVersion 16
  15. targetSdkVersion 22
  16. versionCode 1
  17. versionName "1.0"
  18. }
  19. defaultPublishConfig 'release'
  20. publishNonDefault true
  21. productFlavors {
  22. library {
  23. }
  24. }
  25. buildTypes {
  26. release {
  27. minifyEnabled false
  28. }
  29. debug {
  30. minifyEnabled false
  31. }
  32. }
  33. lintOptions {
  34. abortOnError false
  35. }
  36. }
  37. repositories {
  38. mavenLocal()
  39. jcenter()
  40. maven {
  41. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  42. url "$rootDir/../../example-redux/node_modules/react-native/android"
  43. }
  44. }
  45. allprojects { p ->
  46. p.tasks.whenTaskAdded { task ->
  47. if (task.name.toLowerCase().contains('lint')) {
  48. task.enabled = false;
  49. }
  50. }
  51. }
  52. dependencies {
  53. compile fileTree(dir: "libs", include: ["*.jar"])
  54. compile "com.aurelhubert:ahbottomnavigation:1.3.3"
  55. compile "com.android.support:appcompat-v7:23.0.1"
  56. compile 'com.android.support:design:23.1.1'
  57. compile "com.facebook.react:react-native:+" // From node_modules
  58. compile 'com.balysv.materialmenu:material-menu-toolbar:1.5.4'
  59. testCompile "junit:junit:4.12"
  60. testCompile "org.robolectric:robolectric:3.1.1"
  61. testCompile 'org.assertj:assertj-core:3.5.2'
  62. }
  63. task unit(dependsOn: 'testLibraryDebugUnitTest') << {
  64. println 'Finished running unit all tests'
  65. println 'report at file://' + tasks.testLibraryDebugUnitTest.outputs.files.last().absolutePath + '/index.html'
  66. }