Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

[CP] Fix _availability_version_check for iOS 11 and 12 #48926

Merged

Conversation

zanderso
Copy link
Member

CP of 5587d26 into 3.16 for flutter/flutter#138711.

This PR ports more of the implementation of availability checking from
clang-rt into the Engine. In particular, when the call to look up the
symbol `_availability_version_check` fails, this PR falls back on
reading the platform version information out of a plist file at a
well-known location, as is done
[here](https://github.com/llvm/llvm-project/blob/2fd66e6eb659701b9d4c88708d55d5854a246815/compiler-rt/lib/builtins/os_version_check.c#L163).

This change fixes a mistake in
flutter#44711, which didn't account for
`_availability_version_check` not being available on iOS 11 and 12.

Fixes flutter/flutter#138711
@zanderso
Copy link
Member Author

@chinmaygarde if the crash now being reported on flutter/flutter#138711 is unrelated, I think we should CP this fix.

@chinmaygarde
Copy link
Member

I could not reproduce the home screen crash on iPhone 6 and I believe it is unrelated.

@CaseyHillers CaseyHillers added the autosubmit Merge PR when tree becomes green via auto submit App label Dec 13, 2023
@auto-submit auto-submit bot merged commit bc2e856 into flutter:flutter-3.16-candidate.0 Dec 13, 2023
@zanderso zanderso deleted the cp-av-check-fix branch December 13, 2023 20:39
bryanoltman added a commit to shorebirdtech/engine that referenced this pull request Jan 2, 2024
* [CP] Fix _availability_version_check for iOS 11 and 12 (flutter#48926)

CP of flutter@5587d26 into 3.16 for flutter/flutter#138711.

* [CP] [Impeller] Turn off Aiks bounds tracking for filtered SaveLayers. (flutter#49198)

Cherry-pick for flutter#49076.

For issue: flutter/flutter#139294

* [CP] Fix for AnimatedOpacity affects blended color overlay render (flutter#49190)

This PR cherry-picks the following two commits:

flutter@2dbc5d2
flutter@0b0fab8

to address flutter/flutter#139571

* [cherrypick-stable]Skip unexpected events in MultiPlatformViewBackgroundForegroundScenar… (flutter#49247)

�io (flutter#48456)

Fixes flutter/flutter#138193.

Was first attempted to fix in flutter#48096, but that was not reliable since it's all asynchronous. 

-------------------------------------------

cherry pick to fix mac unopt failures on stable branch: 
https://flutter-dashboard.appspot.com/#/build?repo=engine&branch=flutter-3.16-candidate.0

---------

Co-authored-by: Zachary Anderson <[email protected]>
Co-authored-by: Brandon DeRosier <[email protected]>
Co-authored-by: Xilai Zhang <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects: desktop autosubmit Merge PR when tree becomes green via auto submit App platform-ios platform-macos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants