Skip to content

Commit 852f32f

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents fcba0e3 + d5c34dd commit 852f32f

File tree

1,932 files changed

+35068
-11420
lines changed

Some content is hidden

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

1,932 files changed

+35068
-11420
lines changed

.github/workflows/flutter-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
flutter_version: [stable, beta, master]
2727
os: [ubuntu-latest, macos-latest, windows-latest]
2828
steps:
29-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
30-
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9
29+
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
30+
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73
3131
with:
3232
distribution: 'zulu' # See https://github.com/actions/setup-java#supported-distributions
3333
java-version: "17"

.github/workflows/no-response.yaml

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

.github/workflows/scorecards-analysis.yml

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

adaptive_app/codelab_rebuild.yaml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,6 @@ steps:
11501150
avoid_print: false
11511151
directives_ordering: true
11521152
prefer_single_quotes: true
1153-
sort_pub_dependencies: true
11541153
11551154
# For additional information about configuring this file, see
11561155
# https://dart.dev/guides/language/analysis-options
@@ -1279,6 +1278,12 @@ steps:
12791278
- name: Remove http package
12801279
path: adaptive_app
12811280
flutter: pub remove http
1281+
- name: flutter clean
1282+
path: adaptive_app
1283+
flutter: clean
1284+
- name: flutter pub get
1285+
path: adaptive_app
1286+
flutter: pub get
12821287
- name: Add googleapis_auth google_sign_in extension_google_sign_in_as_googleapis_auth
12831288
path: adaptive_app
12841289
flutter: pub add googleapis_auth google_sign_in extension_google_sign_in_as_googleapis_auth http
@@ -1386,7 +1391,8 @@ steps:
13861391
_googleSignIn.onCurrentUserChanged.listen((account) {
13871392
if (account != null) {
13881393
_googleSignIn.authenticatedClient().then((authClient) {
1389-
if (authClient != null) {
1394+
final context = this.context;
1395+
if (authClient != null && context.mounted) {
13901396
context.read<AuthedUserPlaylists>().authClient = authClient;
13911397
context.go('/');
13921398
}
@@ -1433,8 +1439,11 @@ steps:
14331439
_authUrl = Uri.parse(url);
14341440
});
14351441
}).then((authClient) {
1436-
context.read<AuthedUserPlaylists>().authClient = authClient;
1437-
context.go('/');
1442+
final context = this.context;
1443+
if (context.mounted) {
1444+
context.read<AuthedUserPlaylists>().authClient = authClient;
1445+
context.go('/');
1446+
}
14381447
});
14391448
}
14401449

adaptive_app/step_03/android/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gradle-wrapper.jar
77
GeneratedPluginRegistrant.java
88

99
# Remember to never publicly share your keystore.
10-
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
10+
# See https://flutter.dev/to/reference-keystore
1111
key.properties
1212
**/*.keystore
1313
**/*.jks

adaptive_app/step_03/android/app/build.gradle

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,6 @@ plugins {
55
id "dev.flutter.flutter-gradle-plugin"
66
}
77

8-
def localProperties = new Properties()
9-
def localPropertiesFile = rootProject.file("local.properties")
10-
if (localPropertiesFile.exists()) {
11-
localPropertiesFile.withReader("UTF-8") { reader ->
12-
localProperties.load(reader)
13-
}
14-
}
15-
16-
def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
17-
if (flutterVersionCode == null) {
18-
flutterVersionCode = "1"
19-
}
20-
21-
def flutterVersionName = localProperties.getProperty("flutter.versionName")
22-
if (flutterVersionName == null) {
23-
flutterVersionName = "1.0"
24-
}
25-
268
android {
279
namespace = "com.example.adaptive_app"
2810
compileSdk = flutter.compileSdkVersion
@@ -33,15 +15,19 @@ android {
3315
targetCompatibility = JavaVersion.VERSION_1_8
3416
}
3517

18+
kotlinOptions {
19+
jvmTarget = JavaVersion.VERSION_1_8
20+
}
21+
3622
defaultConfig {
3723
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3824
applicationId = "com.example.adaptive_app"
3925
// You can update the following values to match your application needs.
40-
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
26+
// For more information, see: https://flutter.dev/to/review-gradle-config.
4127
minSdk = flutter.minSdkVersion
4228
targetSdk = flutter.targetSdkVersion
43-
versionCode = flutterVersionCode.toInteger()
44-
versionName = flutterVersionName
29+
versionCode = flutter.versionCode
30+
versionName = flutter.versionName
4531
}
4632

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

adaptive_app/step_03/ios/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Flutter
22
import UIKit
33

4-
@UIApplicationMain
4+
@main
55
@objc class AppDelegate: FlutterAppDelegate {
66
override func application(
77
_ application: UIApplication,

adaptive_app/step_03/macos/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Cocoa
22
import FlutterMacOS
33

4-
@NSApplicationMain
4+
@main
55
class AppDelegate: FlutterAppDelegate {
66
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
77
return true

adaptive_app/step_03/pubspec.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1919
version: 1.0.0+1
2020

2121
environment:
22-
sdk: '>=3.4.0-0 <4.0.0'
22+
sdk: ^3.5.1
2323

2424
# Dependencies specify other packages that your package needs in order to work.
2525
# To automatically upgrade your package dependencies to the latest versions
@@ -34,7 +34,7 @@ dependencies:
3434

3535
# The following adds the Cupertino Icons font to your application.
3636
# Use with the CupertinoIcons class for iOS style icons.
37-
cupertino_icons: ^1.0.6
37+
cupertino_icons: ^1.0.8
3838

3939
dev_dependencies:
4040
flutter_test:
@@ -45,7 +45,7 @@ dev_dependencies:
4545
# activated in the `analysis_options.yaml` file located at the root of your
4646
# package. See that file for information about deactivating specific lint
4747
# rules and activating additional ones.
48-
flutter_lints: ^3.0.0
48+
flutter_lints: ^4.0.0
4949

5050
# For information on the generic Dart part of this file, see the
5151
# following page: https://dart.dev/tools/pub/pubspec
@@ -64,10 +64,10 @@ flutter:
6464
# - images/a_dot_ham.jpeg
6565

6666
# An image asset can refer to one or more resolution-specific "variants", see
67-
# https://flutter.dev/assets-and-images/#resolution-aware
67+
# https://flutter.dev/to/resolution-aware-images
6868

6969
# For details regarding adding assets from package dependencies, see
70-
# https://flutter.dev/assets-and-images/#from-packages
70+
# https://flutter.dev/to/asset-from-package
7171

7272
# To add custom fonts to your application, add a fonts section here,
7373
# in this "flutter" section. Each entry in this list should have a
@@ -87,4 +87,4 @@ flutter:
8787
# weight: 700
8888
#
8989
# For details regarding fonts from package dependencies,
90-
# see https://flutter.dev/custom-fonts/#from-packages
90+
# see https://flutter.dev/to/font-from-package

0 commit comments

Comments
 (0)