react-native-webview.git

build.gradle 789B

1234567891011121314151617181920212223
  1. apply plugin: 'com.android.library'
  2. def DEFAULT_COMPILE_SDK_VERSION = 27
  3. def DEFAULT_BUILD_TOOLS_VERSION = "27.0.3"
  4. def DEFAULT_MIN_SDK_VERSION = 16
  5. def DEFAULT_TARGET_SDK_VERSION = 26
  6. android {
  7. compileSdkVersion rootProject.findProperty('compileSdkVersion') ?: DEFAULT_COMPILE_SDK_VERSION
  8. buildToolsVersion rootProject.findProperty('buildToolsVersion') ?: DEFAULT_BUILD_TOOLS_VERSION
  9. defaultConfig {
  10. minSdkVersion rootProject.findProperty('minSdkVersion') ?: DEFAULT_MIN_SDK_VERSION
  11. targetSdkVersion rootProject.findProperty('targetSdkVersion') ?: DEFAULT_TARGET_SDK_VERSION
  12. versionCode 1
  13. versionName "1.0"
  14. }
  15. }
  16. dependencies {
  17. implementation 'com.facebook.react:react-native:+'
  18. }