react-native-navigation的迁移库

build.gradle 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 23
  4. buildToolsVersion "23.0.1"
  5. defaultConfig {
  6. minSdkVersion 16
  7. targetSdkVersion 22
  8. versionCode 1
  9. versionName "1.0"
  10. }
  11. defaultPublishConfig 'release'
  12. publishNonDefault true
  13. productFlavors {
  14. library {
  15. }
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. }
  21. debug {
  22. minifyEnabled false
  23. }
  24. }
  25. lintOptions {
  26. abortOnError false
  27. }
  28. }
  29. repositories {
  30. maven {
  31. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  32. url '../../../react-native/android'
  33. }
  34. }
  35. allprojects { p ->
  36. p.tasks.whenTaskAdded { task ->
  37. if (task.name.toLowerCase().contains('lint')) {
  38. task.enabled = false;
  39. }
  40. }
  41. }
  42. dependencies {
  43. compile fileTree(dir: "libs", include: ["*.jar"])
  44. compile "com.aurelhubert:ahbottomnavigation:1.2.3"
  45. compile "com.android.support:appcompat-v7:23.0.1"
  46. compile 'com.android.support:design:23.1.1'
  47. compile "com.facebook.react:react-native:+" // From node_modules
  48. compile 'com.balysv.materialmenu:material-menu-toolbar:1.5.4'
  49. testCompile "junit:junit:4.12"
  50. testCompile "org.robolectric:robolectric:3.1.1"
  51. }