react-native-navigation的迁移库

build.gradle 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 "RNN.reactNativeVersion", "reactNative57_5"
  24. testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
  25. }
  26. signingConfigs {
  27. release {
  28. storeFile file('../playground.keystore')
  29. storePassword "playground"
  30. keyAlias "playground"
  31. keyPassword "playground"
  32. }
  33. }
  34. buildTypes {
  35. release {
  36. signingConfig signingConfigs.release
  37. }
  38. }
  39. }
  40. configurations.all {
  41. resolutionStrategy.eachDependency { DependencyResolveDetails details ->
  42. def requested = details.requested
  43. if (requested.group == 'com.android.support') {
  44. details.useVersion "28.0.0"
  45. }
  46. }
  47. }
  48. configurations.all {
  49. resolutionStrategy {
  50. force 'org.webkit:android-jsc:r236355'
  51. }
  52. }
  53. dependencies {
  54. implementation fileTree(dir: 'libs', include: ['*.jar'])
  55. implementation 'com.android.support:design:28.0.0'
  56. implementation 'com.android.support:appcompat-v7:28.0.0'
  57. //noinspection GradleDynamicVersion
  58. implementation 'com.facebook.react:react-native:+'
  59. implementation project(':react-native-navigation')
  60. implementation project(':react-native-view-overflow')
  61. androidTestImplementation('com.wix:detox:+') { transitive = true }
  62. androidTestImplementation 'junit:junit:4.12'
  63. }