react-native-navigation的迁移库

build.gradle 1.6KB

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