react-native-navigation的迁移库

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. apply plugin: "com.android.application"
  2. project.ext.react = [
  3. root : "../../../",
  4. entryFile: "playground/index.js"
  5. ]
  6. apply from: "../../../node_modules/react-native/react.gradle"
  7. android {
  8. compileSdkVersion 26
  9. buildToolsVersion "27.0.3"
  10. compileOptions {
  11. sourceCompatibility JavaVersion.VERSION_1_8
  12. targetCompatibility JavaVersion.VERSION_1_8
  13. }
  14. defaultConfig {
  15. applicationId "com.reactnativenavigation.playground"
  16. minSdkVersion 19
  17. targetSdkVersion 25
  18. versionCode 1
  19. versionName "1.0"
  20. ndk {
  21. abiFilters "armeabi-v7a", "x86"
  22. }
  23. testBuildType System.getProperty('testBuildType', 'debug') //this will later be used to control the test apk build type
  24. missingDimensionStrategy "minReactNative", "minReactNative46"
  25. missingDimensionStrategy "RNN.reactNativeVersion", "reactNative51"
  26. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  27. }
  28. signingConfigs {
  29. release {
  30. storeFile file('../playground.keystore')
  31. storePassword "playground"
  32. keyAlias "playground"
  33. keyPassword "playground"
  34. }
  35. }
  36. buildTypes {
  37. release {
  38. signingConfig signingConfigs.release
  39. }
  40. }
  41. }
  42. configurations.all {
  43. resolutionStrategy.eachDependency { DependencyResolveDetails details ->
  44. def requested = details.requested
  45. if (requested.group == 'com.android.support') {
  46. details.useVersion "26.1.0"
  47. }
  48. }
  49. }
  50. dependencies {
  51. implementation fileTree(dir: 'libs', include: ['*.jar'])
  52. implementation 'com.android.support:design:26.1.0'
  53. implementation 'com.android.support:appcompat-v7:26.1.0'
  54. //noinspection GradleDynamicVersion
  55. implementation 'com.facebook.react:react-native:+'
  56. implementation project(':react-native-navigation')
  57. implementation project(':react-native-view-overflow')
  58. androidTestImplementation(project(':detox'))
  59. androidTestImplementation 'junit:junit:4.12'
  60. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  61. androidTestImplementation 'com.android.support.test:rules:1.0.2'
  62. }