react-native-navigation的迁移库

build.gradle 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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') //this will later be used to control the test apk build type
  26. missingDimensionStrategy "RNN.reactNativeVersion", "reactNative57_5"
  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. }
  43. configurations.all {
  44. resolutionStrategy.eachDependency { DependencyResolveDetails details ->
  45. def requested = details.requested
  46. if (requested.group == 'com.android.support') {
  47. details.useVersion "28.0.0"
  48. }
  49. }
  50. }
  51. configurations.all {
  52. resolutionStrategy {
  53. force 'org.webkit:android-jsc:r236355'
  54. }
  55. }
  56. dependencies {
  57. implementation fileTree(dir: 'libs', include: ['*.jar'])
  58. implementation 'com.android.support:design:28.0.0'
  59. implementation 'com.android.support:appcompat-v7:28.0.0'
  60. //noinspection GradleDynamicVersion
  61. implementation 'com.facebook.react:react-native:+'
  62. implementation project(':react-native-navigation')
  63. implementation project(':react-native-view-overflow')
  64. androidTestImplementation('com.wix:detox:+') { transitive = true }
  65. androidTestImplementation 'junit:junit:4.12'
  66. }