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

chore(macos,firestore): use precompiled frameworks in example app #4698

Merged
merged 1 commit into from
Jan 16, 2021

Conversation

Salakar
Copy link
Member

@Salakar Salakar commented Jan 16, 2021

Description

https://github.com/invertase/firestore-ios-sdk-frameworks should now be compatible with macOS, this PR adds it back in to improve build times on CI.

Note that this adds additional Ruby code to read the iOS SDK version that firebase_core uses so that the version used by https://github.com/invertase/firestore-ios-sdk-frameworks is always in sync with the version used by firebase_core and therefore your other Firebase plugins.

Related Issues

#2751
invertase/firestore-ios-sdk-frameworks#11

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
  • No, this is not a breaking change.

@google-cla google-cla bot added the cla: yes label Jan 16, 2021
@Salakar Salakar force-pushed the @salakar/macos-firestore-frameworks branch from 42164fd to d376f43 Compare January 16, 2021 12:22
@Salakar Salakar marked this pull request as ready for review January 16, 2021 12:33
@Salakar Salakar merged commit 228fb62 into master Jan 16, 2021
@Salakar Salakar deleted the @salakar/macos-firestore-frameworks branch January 16, 2021 12:33
@nilsreichardt
Copy link
Contributor

nilsreichardt commented Jan 16, 2021

A related Ticket is also #3185 ([cloud_firestore] Xcode build extremely slow (Flutter macOS)) 👍

@@ -1,4 +1,9 @@
platform :osx, '10.12'
$FirebaseSDKVersion = '7.4.0'
Copy link
Contributor

Choose a reason for hiding this comment

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

I removed those in my one version pr, why add one back? Now you have this version to watch and bump even though core is mandatory. Better to remove this and fail fast if can't get version from core then inevitably take version skew or maintain it

Copy link
Member Author

@Salakar Salakar Jan 16, 2021

Choose a reason for hiding this comment

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

This isn't the same, this is the overriding sdk versions in a users Podfile thing as we need 7.4.0 for macOS support but we're currently on 7.3.0 🙂

https://firebase.flutter.dev/docs/overview#overriding-native-sdk-versions

Copy link
Contributor

Choose a reason for hiding this comment

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

...instead of bumping firebase_core in the PR?

Copy link
Member Author

@Salakar Salakar Jan 16, 2021

Choose a reason for hiding this comment

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

We're in the middle of nullsafety migrations so didn't think it wise to touch anything that affects all packages and potentially cause issues/slow things down, this is meant to be a targeted PR that can be readressed after the nullsafety dust settles by bumping core - I should have left a todo comment 😩

Copy link
Member Author

Choose a reason for hiding this comment

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

Will throw up another PR in bit that reworks this and bumps core, then it can be rebased after nullsafety and merged.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's understandable but a breadcrumb for sure. I will say that the 7.n.0 updates are trivial, if they can't just always be adopted firebase-ios-sdk did something wrong, and they haven't done that for a while. This particular one (7.3.0 to 7.4.0) was just fine in my experience on my work app (already live ;-) )

Copy link
Member Author

Choose a reason for hiding this comment

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

This particular one (7.3.0 to 7.4.0) was just fine in my experience on my work app (already live ;-) )

Good to know, let's see what happens on the other PR with CI and perhaps we can merge it, maybe I'm worrying too much 😅

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually can't merge yet as it'd cause a feat version bump to all packages which we can't do yet with the nullsafety package versioning prereleases atm - still to be figured out.

I'll get the PR up still anyway.

@firebase firebase locked and limited conversation to collaborators Feb 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants