Skip to content

chore(all): Updated Flutter/Dart SDKs and Drift version #5741

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

Merged
merged 68 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from 64 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
ec6bbd1
chore(datastore,analytics,auth,notifications,storage): updated/regene…
tyllark Dec 2, 2024
c369cff
chore(analytics,db,storage): Updated Drift Version
tyllark Dec 2, 2024
24d3125
chore(db,storage): regenerated Drift databases and tables
tyllark Dec 2, 2024
69c359e
chore(): Updated Dart SDK to 3.4.0
tyllark Dec 2, 2024
843d17b
chore(): Updated Github Actions to use Dart SDK to 3.4.0
tyllark Dec 2, 2024
0d8a500
chore(): updated Flutter to 3.22.0
tyllark Dec 2, 2024
83f8fa3
chore(): updated Flutter to 3.24.0 and dart sdk to 3.5.0
tyllark Dec 3, 2024
e46de38
chore(analytics): regenerated Drift databases and tables
tyllark Dec 4, 2024
4033a70
chore(analytics): updated pinpoint native pigeon breaking changes
tyllark Dec 4, 2024
ae55ce7
chore(notifications): updated native pigeon breaking changes
tyllark Dec 4, 2024
a7489f0
chore: updated native code
tyllark Dec 12, 2024
859793c
chore(): updated native code error handling
tyllark Feb 3, 2025
05e1127
Merge branch 'main' into chore/drift-upgrade
tyllark Feb 3, 2025
ac092ac
Merge branch 'main' into chore/drift-upgrade
tyllark Feb 13, 2025
0f1de0b
chore(): updated Drift Version
tyllark Feb 13, 2025
c9be628
chore(): Regenerated Drift Tables
tyllark Feb 13, 2025
dbe5283
chore(): Updated Swift failure handling
tyllark Feb 13, 2025
41055ed
chore(): Updated Swift failure handling
tyllark Feb 14, 2025
dd109b2
chore(): Updated Android failure handling
tyllark Feb 14, 2025
0101950
chore(): bump built_value_generator version
tyllark Feb 14, 2025
4aa2bb4
chore(): bump built_value_generator version
tyllark Feb 14, 2025
9611956
chore(): Updated Dart SDK to 3.6.0
tyllark Feb 14, 2025
e482e6f
chore(): Updated Dart SDK to 3.6.0
tyllark Feb 14, 2025
d8dd0f8
chore(): Updated Flutter SDK to 3.27.0
tyllark Feb 14, 2025
fd408da
chore(analytics): Migrate Analytics Gradle to declarative plugin blocks
tyllark Feb 14, 2025
9b9e120
chore(analytics): Migrate Analytics Gradle to declarative plugin blocks
tyllark Feb 14, 2025
6499301
chore(analytics): Migrate Analytics Gradle to declarative plugin blocks
tyllark Feb 14, 2025
8edbdbc
chore(auth): Migrate Auth Gradle to declarative plugin blocks
tyllark Feb 15, 2025
3a2993f
chore(db): Migrate DB Common Gradle to declarative plugin blocks
tyllark Feb 15, 2025
47f5e8c
chore(datastore): Migrate Datastore Gradle to declarative plugin blocks
tyllark Feb 15, 2025
61d7d5d
chore(): Migrate legacy wrapper Gradle to declarative plugin blocks
tyllark Feb 15, 2025
f4a37e1
chore(api): Migrate API Gradle to declarative plugin blocks
tyllark Feb 15, 2025
1f9e92d
chore(authenticator): Migrate Authenticator Gradle to declarative plu…
tyllark Feb 15, 2025
3ca3614
chore(notifications): Migrate Notifications Gradle to declarative plu…
tyllark Feb 15, 2025
8094512
chore(secure_storage): Migrate Secure Storage Gradle to declarative p…
tyllark Feb 15, 2025
18a5056
chore(storage): Migrate Storage Gradle to declarative plugin blocks
tyllark Feb 15, 2025
0102fd2
chore(): ignore deprecated_member_use for js_util and html
tyllark Feb 15, 2025
837d2f8
chore(): ignore deprecated_member_use for js
tyllark Feb 15, 2025
17a2181
chore(): ignore deprecated_member_use
tyllark Feb 15, 2025
dfaf471
chore(): Updated Pigeon codec for unit tests
tyllark Feb 17, 2025
0d6b8df
chore(): Regenerated files (fix white space mismatch)
tyllark Feb 17, 2025
962a76b
chore(): Updated Swift Pigeon codec type name
tyllark Feb 17, 2025
021aa25
chore(): Updated iOS fetchAuthSession unit test to support Result
tyllark Feb 17, 2025
ccc12b1
chore(): fixed typo
tyllark Feb 17, 2025
356ef96
chore(): fixed typo
tyllark Feb 17, 2025
8472d50
chore(): Updated settings.gradle and build.gradle's to have the exten…
tyllark Feb 17, 2025
ba676ed
Chore(): Updated Gradle to 8.9
tyllark Feb 17, 2025
09b1da9
Chore(): Updated settings.gradle.kts configuration
tyllark Feb 17, 2025
5a19f34
chore(): Added Desugaring to canary project
tyllark Feb 17, 2025
dcbec77
chore(): Updated canaries to support both gradle and gradle.kts exten…
tyllark Feb 18, 2025
ad75f87
chore(): cleaned up error causing whitespace
tyllark Feb 18, 2025
635e859
chore(): cleaned up error causing whitespace
tyllark Feb 18, 2025
14c74c3
chore(): Cleaned up Android configuration files and corrected version…
tyllark Feb 18, 2025
66cb71c
chore(): refactored build_canary.sh
tyllark Feb 18, 2025
87fcae1
chore90: Update build_canary.sh
tyllark Feb 19, 2025
897c0dc
chore(): updated fetchAuthSession Unit Test
tyllark Feb 20, 2025
61fe7a3
chore(): updated fetchAuthSession Unit Test
tyllark Feb 20, 2025
a91d167
chore(): updated fetchAuthSession Unit Test
tyllark Feb 20, 2025
be0cfcf
chore(): updated fetchAuthSession Unit Test
tyllark Feb 20, 2025
c1d150a
chore(): updated fetchAuthSession Unit Test
tyllark Feb 20, 2025
e1f711a
chore(): updated fetchAuthSession Unit Test
tyllark Feb 20, 2025
cf0712a
chore(): updated fetchAuthSession Unit Test
tyllark Feb 20, 2025
ef7e39b
chore(): updated fetchAuthSession Unit Test
tyllark Feb 22, 2025
d50b849
chore(notifications): Add entry-point annotation to unit tests
tyllark Feb 24, 2025
2531c9d
Merge branch 'main' into chore/drift-upgrade
tyllark Feb 27, 2025
9c652ab
fix: reverted accidental change log update
tyllark Feb 28, 2025
5f5cc23
chore(): Updated AuthSessionResult failure to return the upstream error
tyllark Mar 3, 2025
ac8ac29
chore(): Updated AuthSessionResult failure to return the upstream error
tyllark Mar 3, 2025
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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/BUG-REPORT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ body:
attributes:
label: "Flutter Version"
description: "Please share which version of Flutter you're using (found using `flutter --version`)."
placeholder: "3.24.0"
placeholder: "3.27.0"
validations:
required: true
- type: input
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup Dart
uses: dart-lang/setup-dart@e58aeb62aef51dcc4d0ba8eada7c08092aad5314 # main
with:
sdk: 3.3.0
sdk: 3.6.0

- name: Setup pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # 4.0.0
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Setup Dart
uses: dart-lang/setup-dart@e58aeb62aef51dcc4d0ba8eada7c08092aad5314 # main
with:
sdk: 3.3.0
sdk: 3.6.0

- name: Setup aft
shell: bash # Run in bash regardless of platform
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/amplify_canaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- "any" # latest
include:
- channel: "stable"
flutter-version: "3.19.0"
flutter-version: "3.27.0"
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0
with:
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
- "any" # latest
include:
- channel: "stable"
flutter-version: "3.19.0"
flutter-version: "3.27.0"
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0
with:
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
- "any" # latest
include:
- channel: "stable"
flutter-version: "3.19.0"
flutter-version: "3.27.0"
ios-version:
- "15.0"
- "17.5"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dart_dart2js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
matrix:
sdk:
# Minimum supported Dart version
- "3.3.0"
- "3.6.0"
- stable
- beta
browser:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dart_ddc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
matrix:
sdk:
# Minimum supported Dart version
- "3.3.0"
- "3.6.0"
- stable
- beta
browser:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dart_vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
matrix:
sdk:
# Minimum supported Dart version
- "3.3.0"
- "3.6.0"
- stable
- beta
# Skips 'beta' tests on PRs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flutter_vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- "any" # latest
include:
- channel: "stable"
flutter-version: "3.19.0"
flutter-version: "3.27.0"
# Skips 'beta' tests on PRs
exclude:
- channel: ${{ (github.event_name == 'pull_request') && 'beta' || 'NONE' }}
Expand Down
1 change: 1 addition & 0 deletions actions/lib/src/node/actions/exec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import 'dart:convert';
import 'dart:js_interop';
//ignore: deprecated_member_use
import 'dart:js_util';

@JS()
Expand Down
2 changes: 1 addition & 1 deletion actions/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 1.0.0
publish_to: none

environment:
sdk: ^3.3.0
sdk: ^3.6.0

dependencies:
aws_common: ^0.6.1
Expand Down
74 changes: 56 additions & 18 deletions build-support/build_canary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,62 @@ cp -r $ROOT_DIR/canaries/lib .
cp $ROOT_DIR/build-support/dummy_amplifyconfiguration.dart lib/amplifyconfiguration.dart

# Android
sed -i '' -e "s/id \"com.android.application\" .*/id \"com.android.application\" version \"8.1.0\" apply false/" ./android/settings.gradle
sed -i '' -e "s/id \"org.jetbrains.kotlin.android\" .*/id \"org.jetbrains.kotlin.android\" version \"1.9.10\" apply false/" ./android/settings.gradle
cat ./android/settings.gradle

# TODO(khatruong2009): remove this line after the next stable release (3.22.0 or 4.0)
sed -i '' -e "s/minSdkVersion .*/minSdkVersion 24/" ./android/app/build.gradle
sed -i '' -e "s/minSdk .*/minSdk 24/" ./android/app/build.gradle
sed -i '' -e '/id "kotlin-android"/a\
id '\''kotlin-parcelize'\''' ./android/app/build.gradle
sed -i '' -e "s/compileSdk .*/compileSdk = 35/" ./android/app/build.gradle
sed -i '' -e "s/sourceCompatibility .*/sourceCompatibility = JavaVersion.VERSION_17/" ./android/app/build.gradle
sed -i '' -e "s/targetCompatibility .*/targetCompatibility = JavaVersion.VERSION_17/" ./android/app/build.gradle
# TODO(equartey): remove this line after the next stable release (3.22.0 or 4.0)
sed -i '' -e '/kotlinOptions {/,/}/ s/jvmTarget = .*/jvmTarget = '\''17'\''/' ./android/app/build.gradle
cat ./android/app/build.gradle

sed -i '' -e "s#distributionUrl=.*#distributionUrl=https\\://services.gradle.org/distributions/gradle-8.1-all.zip#" ./android/gradle/wrapper/gradle-wrapper.properties
cat ./android/gradle/wrapper/gradle-wrapper.properties
# Flutter >=3.29.0
if [ -e ./android/settings.gradle.kts ]
then
sed -i '' -e "s/id(\"com.android.application\") .*/id(\"com.android.application\") version \"8.1.0\" apply false/" ./android/settings.gradle.kts
sed -i '' -e "s/id(\"org.jetbrains.kotlin.android\") .*/id(\"org.jetbrains.kotlin.android\") version \"1.9.10\" apply false/" ./android/settings.gradle.kts
cat ./android/settings.gradle.kts

# TODO(khatruong2009): remove this line after the next stable release (3.22.0 or 4.0)
sed -i '' -e "s/minSdkVersion = .*/minSdkVersion = 24/" ./android/app/build.gradle.kts
sed -i '' -e "s/minSdk = .*/minSdk = 24/" ./android/app/build.gradle.kts

sed -i '' -e '/id "kotlin-android"/a\
id '\''kotlin-parcelize'\''' ./android/app/build.gradle.kts

sed -i '' -e "s/compileSdk = .*/compileSdk = 35/" ./android/app/build.gradle.kts

sed -i '' -e "s/sourceCompatibility = .*/sourceCompatibility = JavaVersion.VERSION_17/" ./android/app/build.gradle.kts

sed -i '' -e "s/targetCompatibility = .*/targetCompatibility = JavaVersion.VERSION_17/" ./android/app/build.gradle.kts

# TODO(equartey): remove this line after the next stable release (3.22.0 or 4.0)
sed -i '' -e "s/jvmTarget = .*/jvmTarget = JavaVersion.VERSION_17.toString()/" ./android/app/build.gradle.kts

sed -i '' -e "s/compileOptions {.*/compileOptions {\n\t\tisCoreLibraryDesugaringEnabled = true/" ./android/app/build.gradle.kts
sed -i '' -e "s/flutter {.*/dependencies {\n\tcoreLibraryDesugaring(\"com.android.tools:desugar_jdk_libs:2.0.3\")\n}\n\nflutter {/" ./android/app/build.gradle.kts
cat ./android/app/build.gradle.kts

sed -i '' -e "s#distributionUrl=.*#distributionUrl=https\\://services.gradle.org/distributions/gradle-8.9-all.zip#" ./android/gradle/wrapper/gradle-wrapper.properties
cat ./android/gradle/wrapper/gradle-wrapper.properties
# Flutter <3.29.0 (delete this else block when min Flutter SDK is bumped to 3.29.0 or higher)
else
sed -i '' -e "s/id \"com.android.application\" .*/id \"com.android.application\" version \"8.1.0\" apply false/" ./android/settings.gradle
sed -i '' -e "s/id \"org.jetbrains.kotlin.android\" .*/id \"org.jetbrains.kotlin.android\" version \"1.9.10\" apply false/" ./android/settings.gradle
cat ./android/settings.gradle

sed -i '' -e "s/minSdkVersion = .*/minSdkVersion = 24/" ./android/app/build.gradle
sed -i '' -e "s/minSdk = .*/minSdk = 24/" ./android/app/build.gradle

sed -i '' -e '/id "kotlin-android"/a\
id '\''kotlin-parcelize'\''' ./android/app/build.gradle

sed -i '' -e "s/compileSdk = .*/compileSdk = 35/" ./android/app/build.gradle

sed -i '' -e "s/sourceCompatibility = .*/sourceCompatibility = JavaVersion.VERSION_17/" ./android/app/build.gradle

sed -i '' -e "s/targetCompatibility = .*/targetCompatibility = JavaVersion.VERSION_17/" ./android/app/build.gradle

sed -i '' -e "s/jvmTarget = .*/jvmTarget = JavaVersion.VERSION_17/" ./android/app/build.gradle

#sed -i '' -e "s/compileOptions {.*/compileOptions {\n\t\tCoreLibraryDesugaringEnabled = true/" ./android/app/build.gradle
sed -i '' -e "s/flutter {.*/dependencies {\n\tcoreLibraryDesugaring(\"com.android.tools:desugar_jdk_libs:2.0.3\")\n}\n\nflutter {/" ./android/app/build.gradle
cat ./android/app/build.gradle

sed -i '' -e "s#distributionUrl=.*#distributionUrl=https\\://services.gradle.org/distributions/gradle-8.9-all.zip#" ./android/gradle/wrapper/gradle-wrapper.properties
cat ./android/gradle/wrapper/gradle-wrapper.properties
fi

# iOS
sed -i '' -e "s/# platform .*/platform :ios, '13.0'/" ./ios/Podfile
Expand Down
4 changes: 2 additions & 2 deletions canaries/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: amplified_todo
publish_to: none

environment:
sdk: ^3.3.0
flutter: ">=3.19.0"
sdk: ^3.6.0
flutter: ">=3.27.0"

dependencies:
amplify_analytics_pinpoint: ^2.0.0
Expand Down
2 changes: 1 addition & 1 deletion infra-gen2/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: infra_gen2
publish_to: none

environment:
sdk: ^3.3.0
sdk: ^3.6.0

dependencies:
amplify_core: any
Expand Down
2 changes: 1 addition & 1 deletion infra/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: infra
publish_to: none

environment:
sdk: ^3.3.0
sdk: ^3.6.0

dependencies:
amplify_core: any
Expand Down
4 changes: 2 additions & 2 deletions packages/aft/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 0.1.1
publish_to: none

environment:
sdk: ^3.3.0
sdk: ^3.6.0

dependencies:
args: ^2.3.0
Expand Down Expand Up @@ -66,7 +66,7 @@ dependency_overrides:
dev_dependencies:
amplify_lints: ">=2.0.2 <2.1.0"
build_runner: ^2.4.9
built_value_generator: 8.8.1
built_value_generator: 8.9.3
checks: ^0.3.0
json_serializable: 6.8.0
test: ^1.22.1
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/amplify/amplify_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ As always, you can find us on [GitHub](https://github.com/aws-amplify/amplify-fl
## 1.8.0

NOTE: This version has been updated to:
- Flutter: ">=3.19.0"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert this change as we should not update old changelogs unless they are incorrect.

- flutter: ">=3.27.0"
- Dart ^3.3.0
- Java 17, Kotlin 1.9.10 and Gradle 8.1 for Android projects

Expand Down
4 changes: 2 additions & 2 deletions packages/amplify/amplify_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ description: Demonstrates how to use the Amplify Flutter client libraries.
publish_to: none

environment:
flutter: ">=3.19.0"
sdk: ^3.3.0
flutter: ">=3.27.0"
sdk: ^3.6.0

dependencies:
amplify_analytics_pinpoint: ">=1.0.0-next.8 <1.0.0-next.9"
Expand Down
4 changes: 2 additions & 2 deletions packages/amplify/amplify_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/am
issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues

environment:
sdk: ^3.3.0
flutter: ">=3.19.0"
sdk: ^3.6.0
flutter: ">=3.27.0"

# Helps `pana` since we do not use Flutter plugins for most platforms
platforms:
Expand Down
4 changes: 2 additions & 2 deletions packages/amplify_core/doc/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues
publish_to: none

environment:
sdk: ^3.3.0
flutter: ">=3.19.0"
sdk: ^3.6.0
flutter: ">=3.27.0"

dependencies:
amplify_analytics_pinpoint: any
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

//ignore: deprecated_member_use
import 'dart:html';

final RegExp _edgeRegex = RegExp(r'Edg/[\d\.]+');
Expand Down
2 changes: 1 addition & 1 deletion packages/amplify_core/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/am
issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues

environment:
sdk: ^3.3.0
sdk: ^3.6.0

dependencies:
async: ^2.10.0
Expand Down
Loading
Loading