Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Flutter 3.27 #2250

Merged
merged 68 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
c995981
Update `adaptive_app`
domesticmouse Oct 14, 2024
b416447
Update `animated-responsive-layout`
domesticmouse Oct 14, 2024
5d4d668
Update `animations`
domesticmouse Oct 14, 2024
cbad6d5
Update `boring_to_beautiful`
domesticmouse Oct 14, 2024
980fa08
Update `brick_breaker`
domesticmouse Oct 14, 2024
4f36c6b
Update `dart-patterns-and-records`
domesticmouse Oct 14, 2024
2d1ce1e
Update `ffigen_codelab`
domesticmouse Oct 14, 2024
10a2a75
Update `firebase-emulator-suite`
domesticmouse Oct 14, 2024
30465fc
Update `firebase-get-to-know-flutter`
domesticmouse Oct 15, 2024
0f63b37
Update `forge2d_game`
domesticmouse Oct 15, 2024
7923abc
Update `generate_crossword`
domesticmouse Oct 15, 2024
877023e
Re-enable CI for `next-gen-ui`
domesticmouse Oct 15, 2024
48c57a9
version bump the tool
domesticmouse Oct 15, 2024
66f79de
Update `firebase-auth-flutterfire-ui`
domesticmouse Oct 17, 2024
dea6e8e
Make `adaptive_app` match flutter beta
domesticmouse Oct 17, 2024
d9e7cd1
Update `animated-responsive-layout` for flutter beta
domesticmouse Oct 17, 2024
63f34c4
Update `animations` for flutter beta
domesticmouse Oct 17, 2024
a1e95b8
Update `boring_to_beautiful` for flutter beta
domesticmouse Oct 17, 2024
adbf0f6
Update `brick_breaker` for flutter beta
domesticmouse Oct 17, 2024
8b215ca
Update `dart-patterns-and-records` for flutter beta
domesticmouse Oct 17, 2024
81a5fb8
Update `ffigen_codelab` for flutter beta
domesticmouse Oct 18, 2024
d470224
Update `firebase-emulator-suite` for flutter beta
domesticmouse Oct 18, 2024
cfa0d5a
Update `firebase-get-to-know-flutter` for flutter beta
domesticmouse Oct 18, 2024
4731ae8
Update `forge2d_game` for flutter beta
domesticmouse Oct 18, 2024
b581095
Update `generate_crossword` for flutter beta
domesticmouse Oct 18, 2024
5d52fd2
Update `github-client` for flutter beta
domesticmouse Oct 18, 2024
35003c6
Update `google-maps-in-flutter` for flutter beta
domesticmouse Oct 18, 2024
3180040
Update `namer` for flutter beta
domesticmouse Oct 18, 2024
4031197
Update `next-gen-ui` for flutter beta
domesticmouse Oct 18, 2024
3edb16e
Merge branch 'main' of https://github.com/flutter/codelabs into Flutt…
domesticmouse Oct 18, 2024
b01df2b
Update `audio_soloud` for flutter beta
domesticmouse Oct 18, 2024
3efe5e1
Update `testing_codelab` for flutter beta
domesticmouse Oct 18, 2024
4f07ad3
Update `webview_flutter` for flutter beta
domesticmouse Oct 18, 2024
062f539
Merge branch 'main' into Flutter-3.27-beta
domesticmouse Oct 24, 2024
0ac9f8a
Merge branch 'main' into Flutter-3.27-beta
domesticmouse Oct 25, 2024
610f301
Update `generate_crossword` after `riverpod` fix
domesticmouse Oct 25, 2024
38bbc9a
Merge branch 'flutter:main' into Flutter-3.27-beta
domesticmouse Nov 5, 2024
28a1794
Update `adaptive_app`
domesticmouse Nov 12, 2024
c19e03b
Update `animated-responsive-layout`
domesticmouse Nov 12, 2024
f98624c
Update `animations`
domesticmouse Nov 12, 2024
0a4c510
Update `audio_soloud`
domesticmouse Nov 12, 2024
e9a0544
Update `boring_to_beautiful`
domesticmouse Nov 12, 2024
c73b25e
Update `brick_breaker`
domesticmouse Nov 12, 2024
2d8fc45
Update `dart-patterns-and-records`
domesticmouse Nov 12, 2024
f64e3aa
Update `ffigen_codelab`
domesticmouse Nov 12, 2024
b549277
Update `firebase-emulator-suite`
domesticmouse Nov 12, 2024
d07e8f6
Update `firebase-get-to-know-flutter`
domesticmouse Nov 12, 2024
5907f39
Update `forge2d_game`
domesticmouse Nov 12, 2024
8e1490e
Update `firebase-auth-flutterfire-ui`
domesticmouse Nov 13, 2024
21723d3
Update `generate_crossword`
domesticmouse Nov 13, 2024
da1c25e
Update `github_client`
domesticmouse Nov 13, 2024
7ad49f6
Update `google-maps-in-flutter`
domesticmouse Nov 13, 2024
c561936
Update `namer`
domesticmouse Nov 13, 2024
862d682
Update `next-gen-ui`
domesticmouse Nov 13, 2024
aebc206
Update `testing_codelab`
domesticmouse Nov 13, 2024
9b7f559
Update `webview_flutter`
domesticmouse Nov 13, 2024
be541f7
Merge branch 'main' of https://github.com/flutter/codelabs into Flutt…
domesticmouse Nov 13, 2024
54ce1c8
Update `animations`
domesticmouse Nov 13, 2024
7fa189a
Breaking up Step 5
domesticmouse Nov 14, 2024
f4bb71f
Merge branch 'breaking-up-step-5' of https://github.com/domesticmouse…
domesticmouse Nov 14, 2024
3cb135b
Brea up step 5 of `animations`
domesticmouse Nov 14, 2024
54f171a
Fixup step 5 of `animations`
domesticmouse Nov 14, 2024
fa4deba
Merge branch 'breaking-up-step-5' of https://github.com/domesticmouse…
domesticmouse Nov 14, 2024
58f74e9
Merge branch 'main' of https://github.com/flutter/codelabs into Flutt…
domesticmouse Nov 26, 2024
1f9746d
Merge branch 'main' of https://github.com/flutter/codelabs into Flutt…
domesticmouse Dec 3, 2024
ca262a5
Merge branch 'flutter:main' into Flutter-3.27-beta
domesticmouse Dec 4, 2024
a723846
Merge branch 'flutter:main' into Flutter-3.27-beta
domesticmouse Dec 10, 2024
1e0b16f
Merge branch 'main' of https://github.com/flutter/codelabs into Flutt…
domesticmouse Dec 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions adaptive_app/codelab_rebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1074,9 +1074,9 @@ steps:
- name: Create yt_cors_proxy
path: adaptive_app
dart: create --template server-shelf yt_cors_proxy
- name: Remove args
- name: Remove shelf_router test
path: adaptive_app/yt_cors_proxy
dart: pub remove args shelf_router test
dart: pub remove shelf_router test
- name: Add http shelf_cors_headers
path: adaptive_app/yt_cors_proxy
dart: pub add http shelf_cors_headers
Expand Down Expand Up @@ -1303,7 +1303,7 @@ steps:
patch-u: |
--- b/adaptive_app/step_07/.gitignore
+++ a/adaptive_app/step_07/.gitignore
@@ -41,3 +41,6 @@ app.*.map.json
@@ -43,3 +43,6 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
Expand Down
2 changes: 2 additions & 0 deletions adaptive_app/step_03/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/

# IntelliJ related
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
4 changes: 2 additions & 2 deletions adaptive_app/step_03/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
id "com.android.application" version "8.1.0" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
}

include ":app"
23 changes: 3 additions & 20 deletions adaptive_app/step_03/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Project-level configuration.
cmake_minimum_required(VERSION 3.10)
cmake_minimum_required(VERSION 3.13)
project(runner LANGUAGES CXX)

# The name of the executable created for the application. Change this to change
Expand Down Expand Up @@ -54,25 +54,8 @@ add_subdirectory(${FLUTTER_MANAGED_DIR})
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)

add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")

# Define the application target. To change its name, change BINARY_NAME above,
# not the value here, or `flutter run` will no longer work.
#
# Any new source files that you add to the application should be added here.
add_executable(${BINARY_NAME}
"main.cc"
"my_application.cc"
"${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
)

# Apply the standard set of build settings. This can be removed for applications
# that need different build settings.
apply_standard_settings(${BINARY_NAME})

# Add dependency libraries. Add any application-specific dependencies here.
target_link_libraries(${BINARY_NAME} PRIVATE flutter)
target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
# Application build; see runner/CMakeLists.txt.
add_subdirectory("runner")

# Run the Flutter tool portions of the build. This must not be removed.
add_dependencies(${BINARY_NAME} flutter_assemble)
Expand Down
26 changes: 26 additions & 0 deletions adaptive_app/step_03/linux/runner/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cmake_minimum_required(VERSION 3.13)
project(runner LANGUAGES CXX)

# Define the application target. To change its name, change BINARY_NAME in the
# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer
# work.
#
# Any new source files that you add to the application should be added here.
add_executable(${BINARY_NAME}
"main.cc"
"my_application.cc"
"${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
)

# Apply the standard set of build settings. This can be removed for applications
# that need different build settings.
apply_standard_settings(${BINARY_NAME})

# Add preprocessor definitions for the application ID.
add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")

# Add dependency libraries. Add any application-specific dependencies here.
target_link_libraries(${BINARY_NAME} PRIVATE flutter)
target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)

target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ static void my_application_class_init(MyApplicationClass* klass) {
static void my_application_init(MyApplication* self) {}

MyApplication* my_application_new() {
// Set the program name to the application ID, which helps various systems
// like GTK and desktop environments map this running application to its
// corresponding .desktop file. This ensures better integration by allowing
// the application to be recognized beyond its binary name.
g_set_prgname(APPLICATION_ID);

return MY_APPLICATION(g_object_new(my_application_get_type(),
"application-id", APPLICATION_ID,
"flags", G_APPLICATION_NON_UNIQUE,
Expand Down
4 changes: 4 additions & 0 deletions adaptive_app/step_03/macos/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ class AppDelegate: FlutterAppDelegate {
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
}

override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
return true
}
}
5 changes: 2 additions & 3 deletions adaptive_app/step_03/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: ^3.5.1
sdk: ^3.6.0-0

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand All @@ -31,7 +31,6 @@ dependencies:
flutter:
sdk: flutter


# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.8
Expand All @@ -45,7 +44,7 @@ dev_dependencies:
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^4.0.0
flutter_lints: ^5.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
2 changes: 1 addition & 1 deletion adaptive_app/step_03/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<meta name="description" content="A new Flutter project.">

<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="adaptive_app">
<link rel="apple-touch-icon" href="icons/Icon-192.png">
Expand Down
2 changes: 2 additions & 0 deletions adaptive_app/step_04/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/

# IntelliJ related
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
4 changes: 2 additions & 2 deletions adaptive_app/step_04/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
id "com.android.application" version "8.1.0" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
}

include ":app"
Loading
Loading