Skip to content

Commit 2ee9e60

Browse files
Flet 0.20.1 fixes (#2659)
* Flutter 3.19.x * Upgrade Gradle configs * Do not install Flutter on macOS * `Control.on_update` renamed to `Control.before_update` Close #2642 * `Page.design` replaced with `Page.adaptive` Close #2650 * Fixed scrollbars behavior * Fixed choosing scaffold based on provided AppBar * Migrate deprecated keyboard handlers * Fix deprecated DragTarget.onWillAccept * Remove unused imports * Bump version to 0.20.1 * Copy build outputs from multiple locations Fix #2658 * flet_audio version bumped to 0.20.1
1 parent a6be2f3 commit 2ee9e60

File tree

38 files changed

+351
-337
lines changed

38 files changed

+351
-337
lines changed

.appveyor.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ environment:
1212
GO_VERSION: 1.19
1313
GO_TAGS: --tags release
1414
python_stack: python 3.10
15-
FLUTTER_MACOS_URL: https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.10.5-stable.zip
1615
GITHUB_TOKEN:
1716
secure: doX0dwjWhBmT56aJqR9NCbtMFJpDpdYxPCIB4vQoHfSR+nTa+pLCo6Yv5qWpD/90
1817
DOCKER_REGISTRY_USER:
@@ -127,10 +126,10 @@ for:
127126
python3 ci/patch_pubspec.py packages/flet_video/pubspec.yaml $PKG_VER
128127
python3 ci/patch_pubspec.py packages/flet_webview/pubspec.yaml $PKG_VER
129128
130-
#cd packages/flet
131-
#flutter test
132-
#dart pub publish --force || exit 1
133-
#cd $APPVEYOR_BUILD_FOLDER
129+
cd packages/flet
130+
flutter test
131+
dart pub publish --force || exit 1
132+
cd $APPVEYOR_BUILD_FOLDER
134133
135134
cd packages/flet_audio
136135
dart pub publish --force || exit 1
@@ -220,10 +219,6 @@ for:
220219

221220
install:
222221
- HOMEBREW_NO_AUTO_UPDATE=1 brew install cocoapods
223-
- curl $FLUTTER_MACOS_URL -o "$HOME/flutter_macos_stable.zip"
224-
- unzip -qq "$HOME/flutter_macos_stable.zip" -d $HOME
225-
- export PATH="$PATH:$HOME/flutter/bin"
226-
- flutter channel stable
227222
- flutter upgrade
228223
- flutter config --enable-macos-desktop
229224
- flutter doctor
@@ -329,10 +324,6 @@ for:
329324

330325
install:
331326
- export LANG=en_US.UTF-8
332-
- curl $FLUTTER_MACOS_URL -o "$HOME/flutter_macos_stable.zip"
333-
- unzip -qq "$HOME/flutter_macos_stable.zip" -d $HOME
334-
- export PATH="$PATH:$HOME/flutter/bin"
335-
- flutter channel stable
336327
- flutter upgrade
337328
- flutter doctor
338329

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Flet changelog
22

3+
# 0.20.1
4+
5+
* Migrated to Flutter 3.19
6+
* Fixed scrolling behavior changes in scrollable controls.
7+
* Remove `Page.design` and replace with `Page.adaptive` ([#2650](https://github.com/flet-dev/flet/issues/2650)).
8+
* Rename `Control.on_update` to `Control.before_update` ([#2642](https://github.com/flet-dev/flet/issues/2642)).
9+
310
# 0.20.0
411

512
* `AppBar.system_overlay_style` property ([#2615](https://github.com/flet-dev/flet/issues/2615)).

client/android/app/build.gradle

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
}
6+
17
def localProperties = new Properties()
28
def localPropertiesFile = rootProject.file('local.properties')
39
if (localPropertiesFile.exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
612
}
713
}
814

9-
def flutterRoot = localProperties.getProperty('flutter.sdk')
10-
if (flutterRoot == null) {
11-
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12-
}
13-
1415
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1516
if (flutterVersionCode == null) {
1617
flutterVersionCode = '1'
@@ -21,11 +22,8 @@ if (flutterVersionName == null) {
2122
flutterVersionName = '1.0'
2223
}
2324

24-
apply plugin: 'com.android.application'
25-
apply plugin: 'kotlin-android'
26-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27-
2825
android {
26+
namespace "com.appveyor.flet"
2927
compileSdkVersion flutter.compileSdkVersion
3028
ndkVersion flutter.ndkVersion
3129

@@ -43,22 +41,16 @@ android {
4341
}
4442

4543
defaultConfig {
46-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4744
applicationId "com.appveyor.flet"
48-
// You can update the following values to match your application needs.
49-
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
5045
minSdkVersion flutter.minSdkVersion
5146
targetSdkVersion flutter.targetSdkVersion
5247
versionCode flutterVersionCode.toInteger()
5348
versionName flutterVersionName
54-
5549
minSdkVersion 21
5650
}
5751

5852
buildTypes {
5953
release {
60-
// TODO: Add your own signing config for the release build.
61-
// Signing with the debug keys for now, so `flutter run --release` works.
6254
signingConfig signingConfigs.debug
6355
}
6456
}
@@ -68,6 +60,4 @@ flutter {
6860
source '../..'
6961
}
7062

71-
dependencies {
72-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
73-
}
63+
dependencies {}

client/android/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ buildscript {
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.1.2'
109
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1110
}
1211
}
@@ -28,4 +27,4 @@ subprojects {
2827

2928
tasks.register("clean", Delete) {
3029
delete rootProject.buildDir
31-
}
30+
}

client/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip

client/android/settings.gradle

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
1-
include ':app'
1+
pluginManagement {
2+
def flutterSdkPath = {
3+
def properties = new Properties()
4+
file("local.properties").withInputStream { properties.load(it) }
5+
def flutterSdkPath = properties.getProperty("flutter.sdk")
6+
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7+
return flutterSdkPath
8+
}
9+
settings.ext.flutterSdkPath = flutterSdkPath()
210

3-
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4-
def properties = new Properties()
11+
includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
512

6-
assert localPropertiesFile.exists()
7-
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
13+
repositories {
14+
google()
15+
mavenCentral()
16+
gradlePluginPortal()
17+
}
818

9-
def flutterSdkPath = properties.getProperty("flutter.sdk")
10-
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11-
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
19+
plugins {
20+
id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
21+
}
22+
}
23+
24+
plugins {
25+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
26+
id "com.android.application" version "7.3.0" apply false
27+
}
28+
29+
include ":app"

client/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>11.0</string>
24+
<string>12.0</string>
2525
</dict>
2626
</plist>

client/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '11.0'
2+
# platform :ios, '12.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

client/ios/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ SPEC CHECKSUMS:
139139
DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac
140140
DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
141141
file_picker: 15fd9539e4eb735dc54bae8c0534a7a9511a03de
142-
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
142+
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
143143
integration_test: 13825b8a9334a850581300559b8839134b124670
144144
media_kit_libs_ios_video: a5fe24bc7875ccd6378a0978c13185e1344651c1
145145
media_kit_native_event_loop: e6b2ab20cf0746eb1c33be961fcf79667304fa2a
@@ -155,8 +155,8 @@ SPEC CHECKSUMS:
155155
url_launcher_ios: bbd758c6e7f9fd7b5b1d4cde34d2b95fcce5e812
156156
volume_controller: 531ddf792994285c9b17f9d8a7e4dcdd29b3eae9
157157
wakelock_plus: 8b09852c8876491e4b6d179e17dfe2a0b5f60d47
158-
webview_flutter_wkwebview: 4f3e50f7273d31e5500066ed267e3ae4309c5ae4
158+
webview_flutter_wkwebview: be0f0d33777f1bfd0c9fdcb594786704dbf65f36
159159

160-
PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
160+
PODFILE CHECKSUM: c4c93c5f6502fe2754f48404d3594bf779584011
161161

162162
COCOAPODS: 1.14.3

client/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
97C146E61CF9000F007C117D /* Project object */ = {
156156
isa = PBXProject;
157157
attributes = {
158-
LastUpgradeCheck = 1430;
158+
LastUpgradeCheck = 1510;
159159
ORGANIZATIONNAME = "";
160160
TargetAttributes = {
161161
97C146ED1CF9000F007C117D = {
@@ -342,7 +342,7 @@
342342
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
343343
GCC_WARN_UNUSED_FUNCTION = YES;
344344
GCC_WARN_UNUSED_VARIABLE = YES;
345-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
345+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
346346
MTL_ENABLE_DEBUG_INFO = NO;
347347
SDKROOT = iphoneos;
348348
SUPPORTED_PLATFORMS = iphoneos;
@@ -423,7 +423,7 @@
423423
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
424424
GCC_WARN_UNUSED_FUNCTION = YES;
425425
GCC_WARN_UNUSED_VARIABLE = YES;
426-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
426+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
427427
MTL_ENABLE_DEBUG_INFO = YES;
428428
ONLY_ACTIVE_ARCH = YES;
429429
SDKROOT = iphoneos;
@@ -472,7 +472,7 @@
472472
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
473473
GCC_WARN_UNUSED_FUNCTION = YES;
474474
GCC_WARN_UNUSED_VARIABLE = YES;
475-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
475+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
476476
MTL_ENABLE_DEBUG_INFO = NO;
477477
SDKROOT = iphoneos;
478478
SUPPORTED_PLATFORMS = iphoneos;

0 commit comments

Comments
 (0)