瀏覽代碼

Merge pull request #434 from ViniciusSossela/desugar

Added desugaring feature
flutter-beta
Julian Steenbakker 4 年之前
committed by GitHub
父節點
當前提交
49bbc5a126
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 9 行新增1 行删除
  1. +9
    -1
      android/build.gradle

+ 9
- 1
android/build.gradle 查看文件

@@ -34,11 +34,18 @@ android {
// minSdkVersion is determined by Native View.
minSdkVersion 20
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildFeatures {
viewBinding = true
}

compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
// Sets Java compatibility to Java 8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
@@ -46,4 +53,5 @@ dependencies {
implementation('com.journeyapps:zxing-android-embedded:4.1.0') { transitive = false }
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.zxing:core:3.4.1'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
}

Loading…
取消
儲存