From 8a17d82d1e5d1fafbaba0375e7998e35aafe808f Mon Sep 17 00:00:00 2001 From: Jack Liu Date: Sat, 21 Dec 2024 12:32:27 +0800 Subject: [PATCH] feat: update example code --- .../example/android/app/build.gradle | 4 +- .../android/app/src/main/AndroidManifest.xml | 3 +- screen_brightness/example/lib/main.dart | 19 +++++++- screen_brightness/example/pubspec.lock | 45 +++++++++---------- screen_brightness/example/pubspec.yaml | 22 ++++----- .../example/lib/main.dart | 2 +- screen_brightness_ios/example/lib/main.dart | 2 +- screen_brightness_macos/example/lib/main.dart | 2 +- .../example/lib/main.dart | 2 +- 9 files changed, 57 insertions(+), 44 deletions(-) diff --git a/screen_brightness/example/android/app/build.gradle b/screen_brightness/example/android/app/build.gradle index 63cfe56..0abd8d0 100644 --- a/screen_brightness/example/android/app/build.gradle +++ b/screen_brightness/example/android/app/build.gradle @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 31 + compileSdk 34 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 @@ -45,7 +45,7 @@ android { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.aaassseee.screen_brightness_example" minSdkVersion flutter.minSdkVersion - targetSdkVersion 30 + targetSdkVersion 34 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } diff --git a/screen_brightness/example/android/app/src/main/AndroidManifest.xml b/screen_brightness/example/android/app/src/main/AndroidManifest.xml index 1d5089e..b6d667f 100644 --- a/screen_brightness/example/android/app/src/main/AndroidManifest.xml +++ b/screen_brightness/example/android/app/src/main/AndroidManifest.xml @@ -9,7 +9,8 @@ android:launchMode="singleTop" android:name=".MainActivity" android:theme="@style/LaunchTheme" - android:windowSoftInputMode="adjustResize"> + android:windowSoftInputMode="adjustResize" + android:exported="true">