react-native-navigation的迁移库

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 "28.0.0"
  46. }
  47. }
  48. }
  49. configurations.all {
  50. resolutionStrategy {
  51. force 'org.webkit:android-jsc:r236355'
  52. }
  53. }
  54. dependencies {
  55. implementation fileTree(dir: 'libs', include: ['*.jar'])
  56. implementation 'com.android.support:design:28.0.0'
  57. implementation 'com.android.support:appcompat-v7:28.0.0'
  58. //noinspection GradleDynamicVersion
  59. implementation 'com.facebook.react:react-native:+'
  60. implementation project(':react-native-navigation')
  61. implementation project(':react-native-view-overflow')
  62. androidTestImplementation(project(':detox'))
  63. androidTestImplementation 'junit:junit:4.12'
  64. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  65. androidTestImplementation 'com.android.support.test:rules:1.0.2'
  66. }