react-native-navigation的迁移库

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. apply plugin: "com.android.application"
  2. project.ext.react = [
  3. root : "../../../",
  4. entryFile: "index.js",
  5. bundleAssetName: "index.android.bundle",
  6. bundleInAlpha: true,
  7. bundleInBeta: true
  8. ]
  9. apply from: "../../../node_modules/react-native/react.gradle"
  10. android {
  11. compileSdkVersion 28
  12. compileOptions {
  13. sourceCompatibility JavaVersion.VERSION_1_8
  14. targetCompatibility JavaVersion.VERSION_1_8
  15. }
  16. defaultConfig {
  17. applicationId "com.reactnativenavigation.playground"
  18. minSdkVersion 21
  19. targetSdkVersion 28
  20. versionCode 1
  21. versionName "1.0"
  22. ndk {
  23. abiFilters "armeabi-v7a", "x86"
  24. }
  25. testBuildType System.getProperty('testBuildType', 'debug')
  26. missingDimensionStrategy "RNN.reactNativeVersion", "reactNative60"
  27. testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
  28. }
  29. signingConfigs {
  30. release {
  31. storeFile file('../playground.keystore')
  32. storePassword "playground"
  33. keyAlias "playground"
  34. keyPassword "playground"
  35. }
  36. }
  37. buildTypes {
  38. release {
  39. signingConfig signingConfigs.release
  40. }
  41. }
  42. packagingOptions {
  43. pickFirst '**/libjsc.so'
  44. pickFirst '**/libc++_shared.so'
  45. }
  46. }
  47. dependencies {
  48. implementation fileTree(dir: 'libs', include: ['*.jar'])
  49. implementation 'com.google.android.material:material:1.0.0'
  50. implementation 'androidx.appcompat:appcompat:1.0.2'
  51. //noinspection GradleDynamicVersion
  52. implementation 'com.facebook.react:react-native:+'
  53. //noinspection GradleDynamicVersion
  54. implementation 'org.webkit:android-jsc-intl:+'
  55. implementation project(':react-native-navigation')
  56. implementation project(':react-native-view-overflow')
  57. androidTestImplementation('com.wix:detox:+') { transitive = true }
  58. androidTestImplementation 'junit:junit:4.12'
  59. }