Skip to content

Commit ad3938d

Browse files
authored
Add support for Flutter 3.32 (#1475)
* Implement `AndroidWebViewController.setUseWideViewPort` * Implement `VideoPlayerPlatform.xxxWithOptions` * `./tool/update-demo_app-files.sh` * Fix fwfh_chewie backward compatible * Use our own `HtmlLayoutBuilder` to avoid test failures * Package core now requires Flutter 3.32 * Package enhanced now requires Flutter 3.32
1 parent 9c264ef commit ad3938d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+395
-374
lines changed

demo_app/.metadata

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: "80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819"
7+
revision: "077b4a4ce10a07b82caa6897f0c626f9c0a3ac90"
88
channel: "stable"
99

1010
project_type: app
@@ -13,20 +13,20 @@ project_type: app
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
17-
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
16+
create_revision: 077b4a4ce10a07b82caa6897f0c626f9c0a3ac90
17+
base_revision: 077b4a4ce10a07b82caa6897f0c626f9c0a3ac90
1818
- platform: android
19-
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
20-
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
19+
create_revision: 077b4a4ce10a07b82caa6897f0c626f9c0a3ac90
20+
base_revision: 077b4a4ce10a07b82caa6897f0c626f9c0a3ac90
2121
- platform: ios
22-
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
23-
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
22+
create_revision: 077b4a4ce10a07b82caa6897f0c626f9c0a3ac90
23+
base_revision: 077b4a4ce10a07b82caa6897f0c626f9c0a3ac90
2424
- platform: macos
25-
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
26-
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
25+
create_revision: 077b4a4ce10a07b82caa6897f0c626f9c0a3ac90
26+
base_revision: 077b4a4ce10a07b82caa6897f0c626f9c0a3ac90
2727
- platform: web
28-
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
29-
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
28+
create_revision: 077b4a4ce10a07b82caa6897f0c626f9c0a3ac90
29+
base_revision: 077b4a4ce10a07b82caa6897f0c626f9c0a3ac90
3030

3131
# User provided section
3232

demo_app/android/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ gradle-wrapper.jar
55
/gradlew.bat
66
/local.properties
77
GeneratedPluginRegistrant.java
8+
.cxx/
89

910
# Remember to never publicly share your keystore.
1011
# See https://flutter.dev/to/reference-keystore
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
plugins {
2-
id "com.android.application"
3-
id "kotlin-android"
2+
id("com.android.application")
3+
id("kotlin-android")
44
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5-
id "dev.flutter.flutter-gradle-plugin"
5+
id("dev.flutter.flutter-gradle-plugin")
66
}
77

88
android {
@@ -14,12 +14,12 @@ android {
1414
ndkVersion = "27.0.12077973"
1515

1616
compileOptions {
17-
sourceCompatibility = JavaVersion.VERSION_1_8
18-
targetCompatibility = JavaVersion.VERSION_1_8
17+
sourceCompatibility = JavaVersion.VERSION_11
18+
targetCompatibility = JavaVersion.VERSION_11
1919
}
2020

2121
kotlinOptions {
22-
jvmTarget = JavaVersion.VERSION_1_8
22+
jvmTarget = JavaVersion.VERSION_11.toString()
2323
}
2424

2525
defaultConfig {
@@ -32,31 +32,31 @@ android {
3232
versionName = flutter.versionName
3333

3434
// https://patrol.leancode.co/getting-started
35-
testInstrumentationRunner "pl.leancode.patrol.PatrolJUnitRunner"
36-
testInstrumentationRunnerArguments clearPackageData: "true"
35+
testInstrumentationRunner = "pl.leancode.patrol.PatrolJUnitRunner"
36+
testInstrumentationRunnerArguments["clearPackageData"] = "true"
3737
}
3838

3939
signingConfigs {
40-
demo {
41-
storeFile file("../keystore")
42-
storePassword "storepass"
43-
keyAlias "alias"
44-
keyPassword "keypass"
40+
create("demo") {
41+
storeFile = file("../keystore")
42+
storePassword = "storepass"
43+
keyAlias = "alias"
44+
keyPassword = "keypass"
4545
}
4646
}
4747

4848
buildTypes {
4949
debug {
50-
signingConfig = signingConfigs.demo
50+
signingConfig = signingConfigs.getByName("demo")
5151
}
5252
release {
53-
signingConfig = signingConfigs.demo
53+
signingConfig = signingConfigs.getByName("demo")
5454
}
5555
}
5656

5757
testOptions {
5858
// https://patrol.leancode.co/getting-started
59-
execution "ANDROIDX_TEST_ORCHESTRATOR"
59+
execution = "ANDROIDX_TEST_ORCHESTRATOR"
6060
}
6161
}
6262

@@ -66,5 +66,5 @@ flutter {
6666

6767
dependencies {
6868
// https://patrol.leancode.co/getting-started
69-
androidTestUtil "androidx.test:orchestrator:1.5.1"
69+
androidTestUtil("androidx.test:orchestrator:1.5.1")
7070
}

demo_app/android/build.gradle

Lines changed: 0 additions & 18 deletions
This file was deleted.

demo_app/android/build.gradle.kts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
allprojects {
2+
repositories {
3+
google()
4+
mavenCentral()
5+
}
6+
}
7+
8+
val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
9+
rootProject.layout.buildDirectory.value(newBuildDir)
10+
11+
subprojects {
12+
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
13+
project.layout.buildDirectory.value(newSubprojectBuildDir)
14+
}
15+
subprojects {
16+
project.evaluationDependsOn(":app")
17+
}
18+
19+
tasks.register<Delete>("clean") {
20+
delete(rootProject.layout.buildDirectory)
21+
}

demo_app/android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
1+
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
22
android.useAndroidX=true
33
android.enableJetifier=true

demo_app/android/settings.gradle

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
pluginManagement {
2+
val flutterSdkPath = run {
3+
val properties = java.util.Properties()
4+
file("local.properties").inputStream().use { properties.load(it) }
5+
val flutterSdkPath = properties.getProperty("flutter.sdk")
6+
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
7+
flutterSdkPath
8+
}
9+
10+
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
11+
12+
repositories {
13+
google()
14+
mavenCentral()
15+
gradlePluginPortal()
16+
}
17+
}
18+
19+
plugins {
20+
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
21+
id("com.android.application") version "8.7.3" apply false
22+
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
23+
}
24+
25+
include(":app")

demo_app/devtools_options.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
description: This file stores settings for Dart & Flutter DevTools.
2+
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
3+
extensions:

demo_app/ios/Podfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ flutter_ios_podfile_setup
2828

2929
target 'Runner' do
3030
use_frameworks!
31-
use_modular_headers!
3231

3332
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
3433
target 'RunnerTests' do

0 commit comments

Comments
 (0)