react-native-navigation的迁移库

build.gradle 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. apply plugin: "com.android.application"
  2. project.ext.react = [
  3. root : "../../../",
  4. entryFile: "playground/index.android.js"
  5. ]
  6. apply from: "../../../node_modules/react-native/react.gradle"
  7. android {
  8. compileSdkVersion 25
  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" //read note
  25. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  26. }
  27. signingConfigs {
  28. release {
  29. storeFile file('../playground.keystore')
  30. storePassword "playground"
  31. keyAlias "playground"
  32. keyPassword "playground"
  33. }
  34. }
  35. buildTypes {
  36. release {
  37. signingConfig signingConfigs.release
  38. }
  39. }
  40. }
  41. dependencies {
  42. implementation fileTree(dir: 'libs', include: ['*.jar'])
  43. implementation 'com.facebook.react:react-native:+'
  44. implementation 'com.android.support:design:25.4.0'
  45. implementation "com.android.support:appcompat-v7:25.4.0"
  46. implementation project(':react-native-navigation')
  47. androidTestImplementation(project(path: ":detox"))
  48. androidTestImplementation 'junit:junit:4.12'
  49. androidTestImplementation 'com.android.support.test:runner:1.0.1'
  50. androidTestImplementation 'com.android.support.test:rules:1.0.1'
  51. }