react-native-navigation的迁移库

build.gradle 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. }
  43. dependencies {
  44. implementation fileTree(dir: 'libs', include: ['*.jar'])
  45. implementation 'com.google.android.material:material:1.0.0'
  46. implementation 'androidx.appcompat:appcompat:1.0.2'
  47. //noinspection GradleDynamicVersion
  48. implementation 'com.facebook.react:react-native:+'
  49. //noinspection GradleDynamicVersion
  50. implementation 'org.webkit:android-jsc-intl:+'
  51. implementation project(':react-native-navigation')
  52. implementation project(':react-native-view-overflow')
  53. androidTestImplementation('com.wix:detox:+') { transitive = true }
  54. androidTestImplementation 'junit:junit:4.12'
  55. }