react-native-navigation的迁移库

build.gradle 2.1KB

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