Просмотр исходного кода

Updated to minSdkVersion 20 because of Native View.

flutter-beta
Julian Steenbakker 5 лет назад
Родитель
Сommit
076fdc1841
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 16E437C7A3D94250
3 измененных файлов: 11 добавлений и 2 удалений
  1. +2
    -1
      android/build.gradle
  2. +2
    -1
      example/android/app/build.gradle
  3. +7
    -0
      example/android/app/src/main/res/values/styles.xml

+ 2
- 1
android/build.gradle Просмотреть файл

@@ -34,7 +34,8 @@ android {
main.java.srcDirs += 'src/main/kotlin' main.java.srcDirs += 'src/main/kotlin'
} }
defaultConfig { defaultConfig {
minSdkVersion 19
// minSdkVersion is determined by Native View.
minSdkVersion 20
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
} }
lintOptions { lintOptions {


+ 2
- 1
example/android/app/build.gradle Просмотреть файл

@@ -38,7 +38,8 @@ android {


defaultConfig { defaultConfig {
applicationId "net.touchcapture.qr.flutterqrexample" applicationId "net.touchcapture.qr.flutterqrexample"
minSdkVersion 19
// minSdkVersion is determined by Native View.
minSdkVersion 20
targetSdkVersion 30 targetSdkVersion 30
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName


+ 7
- 0
example/android/app/src/main/res/values/styles.xml Просмотреть файл

@@ -1,10 +1,17 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<!-- Theme applied to the Android Window while the process is starting -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar"> <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when <!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame --> Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item> <item name="android:windowBackground">@drawable/launch_background</item>
</style> </style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.

This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar"> <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">@drawable/launch_background</item> <item name="android:windowBackground">@drawable/launch_background</item>
</style> </style>


Загрузка…
Отмена
Сохранить