react-native-navigation的迁移库

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