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

Bump macos deployment target; stop holding back firebase_core; run tools/upgrade pub #1184

Merged
merged 8 commits into from
Dec 27, 2024

Conversation

chrisbobbe
Copy link
Collaborator

@chrisbobbe chrisbobbe commented Dec 19, 2024

Fixes #1116.
Fixes #1189.

@chrisbobbe chrisbobbe requested a review from gnprice December 19, 2024 22:30
@chrisbobbe
Copy link
Collaborator Author

chrisbobbe commented Dec 19, 2024

Is the CI failure a new flavor of #1177?

0s
Run flutter precache --universal
fatal: Not a valid object name origin/master
Error: Process completed with exit code [1](https://github.com/zulip/zulip-flutter/actions/runs/12421852640/job/34682388039?pr=1184#step:6:1)28.

@gnprice
Copy link
Member

gnprice commented Dec 19, 2024

Is the CI failure a new flavor of #1177?

Yeah, I think so.

@gnprice
Copy link
Member

gnprice commented Dec 19, 2024

(I'll send a fix for that)

@chrisbobbe
Copy link
Collaborator Author

chrisbobbe commented Dec 19, 2024

Thanks. I also saw this go by (thanks to #mobile-github > zulip-flutter!): d90c5a0#commitcomment-150583217

@gnprice
Copy link
Member

gnprice commented Dec 19, 2024

Thanks for taking care of this! These changes all look great.

Since we're upgrading firebase_messaging, and particularly as the underlying SDK seems to be upgraded by a major version (FirebaseMessaging (11.0.0) in the Podfile.lock), we should probably repeat our manual testing that notifications still work. (It'll be great to someday have automated tests for that: #757, #758.) Would you do that?

That testing can be batched with further upgrading Firebase to the latest: if you upgrade share_plus and share_plus_platform_interface, then all the Firebase packages can be upgraded to latest. No need to manually test on the intermediate upgraded versions, except in the unlikely case that things don't work after fully upgrading.

chrisbobbe added a commit to chrisbobbe/zulip-flutter that referenced this pull request Dec 20, 2024
Done by editing pubspec.yaml and running `tools/upgrade pub` twice.

This should mean that all the Firebase packages are upgraded to latest:
  zulip#1184 (comment)

This seems to have unlocked upgrading `drift` too. Some followups
were needed:

- ran `tools/check drift --all --fix`

- ran `tools/check build_runner --all --fix`

- followed an instruction from the analyzer:

  info • 'package:drift_dev/api/migrations.dart' is deprecated and
    shouldn't be used. Import `package:drift/migrations_native.dart`
    instead • test/model/database_test.dart:4:1 •
    deprecated_member_use
@chrisbobbe chrisbobbe force-pushed the pr-macos-deployment-target-and-deps branch from 09c653e to f620229 Compare December 20, 2024 16:38
@chrisbobbe
Copy link
Collaborator Author

chrisbobbe commented Dec 20, 2024

Mm, good idea. OK to test on Android only, do you think, since on iOS it takes more setup? Then for iOS I can make sure to take a look in the new version from TestFlight when we publish that?

(Android device charging right now)

@chrisbobbe
Copy link
Collaborator Author

OK, and checked that notifications are still being presented on the office Android device running Android 9.

We'll plan to test iOS notifications when making the next beta release, because Apple makes it complicated to test client-side notification code in dev: https://github.com/zulip/zulip-mobile/blob/main/docs/howto/push-notifications.md#testing-client-side-changes-on-ios

Copy link
Member

@gnprice gnprice left a comment

Choose a reason for hiding this comment

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

Thanks! The changes all look good. Some comments/questions about the commit message on the last commit.

{"_meta":{"description":"This file contains a serialized version of schema entities for drift.","version":"1.2.0"},"options":{"store_date_time_values_as_text":false},"entities":[{"id":0,"references":[],"type":"table","data":{"name":"accounts","was_declared_in_moor":false,"columns":[{"name":"id","getter_name":"id","moor_type":"int","nullable":false,"customConstraints":null,"defaultConstraints":"PRIMARY KEY AUTOINCREMENT","dialectAwareDefaultConstraints":{"sqlite":"PRIMARY KEY AUTOINCREMENT"},"default_dart":null,"default_client_dart":null,"dsl_features":["auto-increment"]},{"name":"realm_url","getter_name":"realmUrl","moor_type":"string","nullable":false,"customConstraints":null,"default_dart":null,"default_client_dart":null,"dsl_features":[],"type_converter":{"dart_expr":"const UriConverter()","dart_type_name":"Uri"}},{"name":"user_id","getter_name":"userId","moor_type":"int","nullable":false,"customConstraints":null,"default_dart":null,"default_client_dart":null,"dsl_features":[]},{"name":"email","getter_name":"email","moor_type":"string","nullable":false,"customConstraints":null,"default_dart":null,"default_client_dart":null,"dsl_features":[]},{"name":"api_key","getter_name":"apiKey","moor_type":"string","nullable":false,"customConstraints":null,"default_dart":null,"default_client_dart":null,"dsl_features":[]},{"name":"zulip_version","getter_name":"zulipVersion","moor_type":"string","nullable":false,"customConstraints":null,"default_dart":null,"default_client_dart":null,"dsl_features":[]},{"name":"zulip_merge_base","getter_name":"zulipMergeBase","moor_type":"string","nullable":true,"customConstraints":null,"default_dart":null,"default_client_dart":null,"dsl_features":[]},{"name":"zulip_feature_level","getter_name":"zulipFeatureLevel","moor_type":"int","nullable":false,"customConstraints":null,"default_dart":null,"default_client_dart":null,"dsl_features":[]},{"name":"acked_push_token","getter_name":"ackedPushToken","moor_type":"string","nullable":true,"customConstraints":null,"default_dart":null,"default_client_dart":null,"dsl_features":[]}],"is_virtual":false,"without_rowid":false,"constraints":[],"unique_keys":[["realm_url","user_id"],["realm_url","email"]]}}]}
Copy link
Member

Choose a reason for hiding this comment

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

Huh, a bit awkward that this changes, as its purpose is to be a historical record of how things were when we introduced v2 of the schema.

So I got a diff of what changed:

$ diff -U1 \
    <(git show @~:test/model/schemas/drift_schema_v2.json | jq .) \
    <(<test/model/schemas/drift_schema_v2.json jq .)
--- /dev/fd/63	2024-12-20 14:31:03.565983750 -0800
+++ /dev/fd/62	2024-12-20 14:31:03.565983750 -0800
@@ -3,3 +3,3 @@
     "description": "This file contains a serialized version of schema entities for drift.",
-    "version": "1.1.0"
+    "version": "1.2.0"
   },
@@ -24,2 +24,5 @@
             "defaultConstraints": "PRIMARY KEY AUTOINCREMENT",
+            "dialectAwareDefaultConstraints": {
+              "sqlite": "PRIMARY KEY AUTOINCREMENT"
+            },
             "default_dart": null,

Seems like no substantive change, so it's fine.

Comment on lines +1 to 4
// dart format width=80
// GENERATED CODE, DO NOT EDIT BY HAND.
// ignore_for_file: type=lint
//@dart=2.12
import 'package:drift/drift.dart';
Copy link
Member

Choose a reason for hiding this comment

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

Similarly, awkward that these schema_vN.dart files change, but again the change is a no-op (and this time just git log -p is enough to show that).

pubspec.yaml Outdated
Comment on lines 57 to 58
share_plus: ^9.0.0
share_plus_platform_interface: ^4.0.0
share_plus: ^10.0.0
share_plus_platform_interface: ^5.0.0
Copy link
Member

Choose a reason for hiding this comment

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

Done by editing pubspec.yaml and running `tools/upgrade pub` twice.

Huh, why'd you have to run tools/upgrade twice? I'd expect it to be idempotent — for the first time to go all the way that a second time would take you. (Modulo new package versions getting uploaded to the package repo in between.)

Copy link
Member

Choose a reason for hiding this comment

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

(Linking the follow-up to this on CZO here)

Comment on lines -393 to 394
version: "15.0.4"
version: "15.1.6"
firebase_messaging_platform_interface:
Copy link
Member

Choose a reason for hiding this comment

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

This should mean that all the Firebase packages are upgraded to latest:
  https://github.com/zulip/zulip-flutter/pull/1184#issuecomment-2555964673

You can confirm this yourself using flutter pub outdated. Here's the output I see at the tip of the branch:

$ flutter pub outdated
Showing outdated packages.
[*] indicates versions that are not the latest available.

Package Name              Current              Upgradable           Resolvable           Latest   

direct dependencies:     
collection                *1.19.0              *1.19.0              *1.19.0              1.19.1   
device_info_plus          *10.1.2              *10.1.2              11.2.0               11.2.0   
flutter_color_models      *1.4.0 (overridden)  *1.4.0 (overridden)  *1.4.0 (overridden)  1.3.3+2  
intl                      *0.19.0              *0.19.0              *0.19.0              0.20.1   
mime                      *1.0.6               *1.0.6               2.0.0                2.0.0    
wakelock_plus             *1.2.8               1.2.9                1.2.9                1.2.9    

dev_dependencies:        
flutter_lints             *4.0.0               *4.0.0               5.0.0                5.0.0    
json_serializable         *6.9.0               *6.9.0               *6.9.0               6.9.2    
pigeon                    *20.0.2              *20.0.2              22.7.0               22.7.0   
stack_trace               *1.12.0              *1.12.0              *1.12.0              1.12.1   

transitive dependencies: 
characters                *1.3.0               *1.3.0               *1.3.0               1.4.0    
matcher                   *0.12.16+1           *0.12.16+1           *0.12.16+1           0.12.17  
material_color_utilities  *0.11.1              *0.11.1              *0.11.1              0.12.0   
meta                      *1.15.0              *1.15.0              *1.15.0              1.16.0   
stream_channel            *2.1.2               *2.1.2               *2.1.2               2.1.3    
string_scanner            *1.4.0               *1.4.0               *1.4.0               1.4.1    
term_glyph                *1.2.1               *1.2.1               *1.2.1               1.2.2    
vm_service                *14.3.1              *14.3.1              *14.3.1              15.0.0   
win32_registry            *1.1.5               *1.1.5               *1.1.5               2.0.1    

transitive dev_dependencies:
_fe_analyzer_shared       *76.0.0              *76.0.0              *76.0.0              78.0.0   
analyzer                  *6.11.0              *6.11.0              *6.11.0              7.1.0    
analyzer_plugin           *0.11.3              *0.11.3              *0.11.3              0.12.0   
dart_style                *2.3.7               *2.3.7               *2.3.7               3.0.1    
lints                     *4.0.0               *4.0.0               5.1.1                5.1.1    
pubspec_parse             *1.3.0               1.4.0                1.4.0                1.4.0    
source_gen                *1.5.0               *1.5.0               *1.5.0               2.0.0    
yaml                      *3.1.2               3.1.3                3.1.3                3.1.3    

3 upgradable dependencies are locked (in pubspec.lock) to older versions.
To update these dependencies, use `flutter pub upgrade`.

5  dependencies are constrained to versions that are older than a resolvable version.
To update these dependencies, edit pubspec.yaml, or run `flutter pub upgrade --major-versions`.

I think most of those are probably from the Flutter version being a couple of weeks old. In any case, no Firebase packages in the list.

In the terminal it comes in helpful color, too. Here's a screenshot:
image

@gnprice gnprice added the integration review Added by maintainers when PR may be ready for integration label Dec 23, 2024
chrisbobbe added a commit to chrisbobbe/zulip-flutter that referenced this pull request Dec 23, 2024
Done with:

  flutter pub upgrade --major-versions share_plus{,_platform_interface}
(then commit, for the sake of a no-uncommitted-files check)
  tools/upgrade pub
(then squash)

See discussion:
  https://chat.zulip.org/#narrow/channel/243-mobile-team/topic/deps.3A.20running.20.60tools.2Fupgrade.20pub.60.20twice/near/2013483

All the Firebase packages are now upgraded to latest; none of them
appear in the `flutter pub outdated` list.

This seems to have unlocked upgrading `drift` too. Some followups
were needed:

- ran `tools/check drift --all --fix`

- ran `tools/check build_runner --all --fix`

- followed an instruction from the analyzer:

  info • 'package:drift_dev/api/migrations.dart' is deprecated and
    shouldn't be used. Import `package:drift/migrations_native.dart`
    instead • test/model/database_test.dart:4:1 •
    deprecated_member_use

Greg pointed out that it's awkward that some Drift files change, but
he found that they're not substantive changes, so it's fine:
  zulip#1184 (comment)
  zulip#1184 (comment)
@chrisbobbe chrisbobbe force-pushed the pr-macos-deployment-target-and-deps branch from f620229 to 3e4e0a5 Compare December 23, 2024 22:18
@chrisbobbe
Copy link
Collaborator Author

Thanks for the review! Revision pushed.

@PIG208
Copy link
Member

PIG208 commented Dec 23, 2024

Run flutter pub get
Resolving dependencies...
The current Flutter SDK version is 3.28.0-2.0.pre.1001.

Because zulip requires Flutter SDK version >=3.28.0-2.0.pre.38575, version solving failed.
Failed to update packages.

Looks like we cloned the right version of Flutter in CI, but 38575 from 3.28.0-2.0.pre.38575 is way too large for the version to be inferred correctly as we set --depth=1000:

  git clone --depth=1000 -b main https://github.com/flutter/flutter ~/flutter

@chrisbobbe
Copy link
Collaborator Author

I'm not sure offhand what would cause such a large number there.

@gnprice
Copy link
Member

gnprice commented Dec 23, 2024

The large number is because of the merge of flutter/engine into the flutter/flutter monorepo. It's counting all the migrated engine commits, because they're part of the history of the new commit but not the history of that tag. Here's git log --oneline --graph there:

* 62c6859e5 (origin/master, origin/main, origin/HEAD) Delete unused `engine_hash.dart` script (and test), simplify `engine_hash.sh`. (#160549)
* 65ff06028 Remove bringup: true from web tests. (#160788)
* 5c7d9d01b [Impeller] fix device buffer nullptr on Intel macOS. (#160645)
[…]
* b79ee9282 [tech debt] remove web engine windows build (#160573)
* 0fcb6aa5b Upstream and Origin check (#160574)
* d14259a25 Commit engine.realm as empty (#160541)
* f0bf49559 Trigger Build Part Deux (#160481)
* 1398dc7ee Trigger Build (#160476)
*   721b47e7e Merge flutter/engine into framework
|\  
| * 2a17b7544 Roll Dart SDK from a74650e32880 to 37bbc285d8d2 (1 revision) (flutter/engine#57244)
| * 7f8da94c2 embedder: fix bit-order in software pixel format description (flutter/engine#57156)
| * fe7d6f391 [monorepo] remove Linux Web Framework tests (flutter/engine#57234)
| * 7db982f38 Roll Skia from dca47129cf2e to f784f78a5669 (3 revisions) (flutter/engine#57242)
| * d2a5b9dcb [web] Reland: (Add `crossOrigin` property to `<img>` tag used for decoding)++ (flutter/engine#57228)
| * 37a7c44c1 Roll Skia from 804042d75299 to dca47129cf2e (1 revision) (flutter/engine#57241)
[…]

… and that branch merged in from the right is the engine commits and goes on for over 30000 of them.

Or as gitk shows it:
image

@gnprice
Copy link
Member

gnprice commented Dec 23, 2024

I think the fix is that before doing that Flutter upgrade, a prep commit should drop the --depth=1000. It'll make CI a little slower; but we can revert after the next Flutter upgrade if there's a new tag by then.

Xcode made the project.pbxproj changes when I changed the "macOS
Deployment Target" setting in the GUI from 10.14 to 10.15 and back
again. The Runner.xcscheme changes happened when I built the app to
run.

A quick test confirmed that 7649477 explains the change from
"zulip.app" to "Zulip.app" (I tried a different string "asdfjkl" and
saw that it propagated in the same way).

Not sure what explains removing the "name = Pods;" line, but there's
a "path = Pods;" line right under it, and anyway the app continues
to build.
…m ios/

We brought this to ios/Podfile from zulip-mobile in a7ed31e;
helpful to have it on the macOS side too.
Fixes zulip#1116.

Done by changing the line in the Podfile, and following the
(recently added) comment there by changing a setting in the Xcode
GUI.

The Podfile change seems to be the only thing missing when Greg
attempted this bump:

(from zulip#1116)
> Naturally we're happy to bump up our minimum macOS deployment
> target — 10.15 is from 2019, and even increasing to last year's
> macOS 14 would be perfectly fine. But I spent a few minutes just
> now attempting to do so — editing the `MACOSX_DEPLOYMENT_TARGET =
> 10.14;` lines in the `project.pbxproj` file so they say 10.15 (or
> 13.0) instead, then also tried setting it in Xcode which added
> some new lines of that form — and the error persisted. (Perhaps
> there's somewhere *else* that `pod update` is looking? Perhaps it
> has a cache of some kind that it fails to update?)
As Greg said in zulip#1116:

> 10.15 is from 2019, and even increasing to last year's macOS 14
> would be perfectly fine.
chrisbobbe added a commit to chrisbobbe/zulip-flutter that referenced this pull request Dec 26, 2024
Done with:

  flutter pub upgrade --major-versions share_plus{,_platform_interface}
(then commit, for the sake of a no-uncommitted-files check)
  tools/upgrade pub
(then squash)

See discussion:
  https://chat.zulip.org/#narrow/channel/243-mobile-team/topic/deps.3A.20running.20.60tools.2Fupgrade.20pub.60.20twice/near/2013483

All the Firebase packages are now upgraded to latest; none of them
appear in the `flutter pub outdated` list.

This seems to have unlocked upgrading `drift` too. Some followups
were needed:

- ran `tools/check drift --all --fix`

- ran `tools/check build_runner --all --fix`

- followed an instruction from the analyzer:

  info • 'package:drift_dev/api/migrations.dart' is deprecated and
    shouldn't be used. Import `package:drift/migrations_native.dart`
    instead • test/model/database_test.dart:4:1 •
    deprecated_member_use

Greg pointed out that it's awkward that some Drift files change, but
he found that they're not substantive changes, so it's fine:
  zulip#1184 (comment)
  zulip#1184 (comment)
@chrisbobbe chrisbobbe force-pushed the pr-macos-deployment-target-and-deps branch from 3e4e0a5 to 12034a2 Compare December 26, 2024 16:01
@chrisbobbe
Copy link
Collaborator Author

chrisbobbe commented Dec 26, 2024

Makes sense, thanks for explaining! Revision pushed, with that new commit, and filed issue #1204 to reinstate the depth-1000 clone once Flutter makes a new tag.

@gnprice
Copy link
Member

gnprice commented Dec 27, 2024

Thanks! All now LGTM except I think you did a git commit when you wanted git commit --amend:
c5cbf58 ci: Drop --depth=1000 in cloning Flutter
2497dfb ci: Remove --depth=1000 in doing Flutter clone, to be added back later

I'll squash those and merge.

Done with:

  flutter pub upgrade --major-versions share_plus{,_platform_interface}
(then commit, for the sake of a no-uncommitted-files check)
  tools/upgrade pub
(then squash)

See discussion:
  https://chat.zulip.org/#narrow/channel/243-mobile-team/topic/deps.3A.20running.20.60tools.2Fupgrade.20pub.60.20twice/near/2013483

All the Firebase packages are now upgraded to latest; none of them
appear in the `flutter pub outdated` list.

This seems to have unlocked upgrading `drift` too. Some followups
were needed:

- ran `tools/check drift --all --fix`

- ran `tools/check build_runner --all --fix`

- followed an instruction from the analyzer:

  info • 'package:drift_dev/api/migrations.dart' is deprecated and
    shouldn't be used. Import `package:drift/migrations_native.dart`
    instead • test/model/database_test.dart:4:1 •
    deprecated_member_use

Greg pointed out that it's awkward that some Drift files change, but
he found that they're not substantive changes, so it's fine:
  zulip#1184 (comment)
  zulip#1184 (comment)
@gnprice gnprice force-pushed the pr-macos-deployment-target-and-deps branch from 12034a2 to 24215f6 Compare December 27, 2024 00:03
@gnprice gnprice merged commit 24215f6 into zulip:main Dec 27, 2024
@chrisbobbe chrisbobbe deleted the pr-macos-deployment-target-and-deps branch December 27, 2024 16:29
gnprice added a commit to gnprice/zulip-flutter that referenced this pull request Dec 27, 2024
Starting with our last Flutter update 273674f (zulip#1184), a directory
android/app/.cxx/ gets created whenever building or running the app
for Android.  It has a lot of generated files in it.

See chat discussion:
  https://chat.zulip.org/#narrow/channel/516-mobile-dev-help/topic/Error.20in.20running.20the.20app/near/2017805
  https://chat.zulip.org/#narrow/channel/516-mobile-dev-help/topic/.2Ecxx.2F.20files.20created/near/2017819

There's an upstream issue for the need to add a gitignore line for
these in the `flutter create` templates:
  flutter/flutter#160372

Even when that's done, it won't affect existing apps like ours; we
need to make a similar update in our own tree.  That's this commit.
chrisbobbe pushed a commit that referenced this pull request Dec 27, 2024
Starting with our last Flutter update 273674f (#1184), a directory
android/app/.cxx/ gets created whenever building or running the app
for Android.  It has a lot of generated files in it.

See chat discussion:
  https://chat.zulip.org/#narrow/channel/516-mobile-dev-help/topic/Error.20in.20running.20the.20app/near/2017805
  https://chat.zulip.org/#narrow/channel/516-mobile-dev-help/topic/.2Ecxx.2F.20files.20created/near/2017819

There's an upstream issue for the need to add a gitignore line for
these in the `flutter create` templates:
  flutter/flutter#160372

Even when that's done, it won't affect existing apps like ours; we
need to make a similar update in our own tree.  That's this commit.
Gaurav-Kushwaha-1225 pushed a commit to Gaurav-Kushwaha-1225/zulip-flutter that referenced this pull request Jan 8, 2025
Done with:

  flutter pub upgrade --major-versions share_plus{,_platform_interface}
(then commit, for the sake of a no-uncommitted-files check)
  tools/upgrade pub
(then squash)

See discussion:
  https://chat.zulip.org/#narrow/channel/243-mobile-team/topic/deps.3A.20running.20.60tools.2Fupgrade.20pub.60.20twice/near/2013483

All the Firebase packages are now upgraded to latest; none of them
appear in the `flutter pub outdated` list.

This seems to have unlocked upgrading `drift` too. Some followups
were needed:

- ran `tools/check drift --all --fix`

- ran `tools/check build_runner --all --fix`

- followed an instruction from the analyzer:

  info • 'package:drift_dev/api/migrations.dart' is deprecated and
    shouldn't be used. Import `package:drift/migrations_native.dart`
    instead • test/model/database_test.dart:4:1 •
    deprecated_member_use

Greg pointed out that it's awkward that some Drift files change, but
he found that they're not substantive changes, so it's fine:
  zulip#1184 (comment)
  zulip#1184 (comment)
Gaurav-Kushwaha-1225 pushed a commit to Gaurav-Kushwaha-1225/zulip-flutter that referenced this pull request Jan 8, 2025
Starting with our last Flutter update 273674f (zulip#1184), a directory
android/app/.cxx/ gets created whenever building or running the app
for Android.  It has a lot of generated files in it.

See chat discussion:
  https://chat.zulip.org/#narrow/channel/516-mobile-dev-help/topic/Error.20in.20running.20the.20app/near/2017805
  https://chat.zulip.org/#narrow/channel/516-mobile-dev-help/topic/.2Ecxx.2F.20files.20created/near/2017819

There's an upstream issue for the need to add a gitignore line for
these in the `flutter create` templates:
  flutter/flutter#160372

Even when that's done, it won't affect existing apps like ours; we
need to make a similar update in our own tree.  That's this commit.
Gaurav-Kushwaha-1225 pushed a commit to Gaurav-Kushwaha-1225/zulip-flutter that referenced this pull request Jan 8, 2025
Done with:

  flutter pub upgrade --major-versions share_plus{,_platform_interface}
(then commit, for the sake of a no-uncommitted-files check)
  tools/upgrade pub
(then squash)

See discussion:
  https://chat.zulip.org/#narrow/channel/243-mobile-team/topic/deps.3A.20running.20.60tools.2Fupgrade.20pub.60.20twice/near/2013483

All the Firebase packages are now upgraded to latest; none of them
appear in the `flutter pub outdated` list.

This seems to have unlocked upgrading `drift` too. Some followups
were needed:

- ran `tools/check drift --all --fix`

- ran `tools/check build_runner --all --fix`

- followed an instruction from the analyzer:

  info • 'package:drift_dev/api/migrations.dart' is deprecated and
    shouldn't be used. Import `package:drift/migrations_native.dart`
    instead • test/model/database_test.dart:4:1 •
    deprecated_member_use

Greg pointed out that it's awkward that some Drift files change, but
he found that they're not substantive changes, so it's fine:
  zulip#1184 (comment)
  zulip#1184 (comment)
Gaurav-Kushwaha-1225 pushed a commit to Gaurav-Kushwaha-1225/zulip-flutter that referenced this pull request Jan 8, 2025
Starting with our last Flutter update 273674f (zulip#1184), a directory
android/app/.cxx/ gets created whenever building or running the app
for Android.  It has a lot of generated files in it.

See chat discussion:
  https://chat.zulip.org/#narrow/channel/516-mobile-dev-help/topic/Error.20in.20running.20the.20app/near/2017805
  https://chat.zulip.org/#narrow/channel/516-mobile-dev-help/topic/.2Ecxx.2F.20files.20created/near/2017819

There's an upstream issue for the need to add a gitignore line for
these in the `flutter create` templates:
  flutter/flutter#160372

Even when that's done, it won't affect existing apps like ours; we
need to make a similar update in our own tree.  That's this commit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration review Added by maintainers when PR may be ready for integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash on launch on Galaxy S5 Can't upgrade firebase_core to 3.4.0, because macOS deployment target
3 participants