-
Notifications
You must be signed in to change notification settings - Fork 6k
Revert "Support Mice in iPadOS 13.4+" #23610
Conversation
This reverts commit 6c80aa7.
|
@jmagman @godofredoc What version of the SDK are we compiling with? That symbol was introduced in iOS 13.4 which came with xcode 11.4 which was released in March 2020. The real fix should be to update the xcode version in the bots, it's almost a year old. The cost to developers to have to accommodate old build systems is greater than the cost to upgrade xcode on the bots. I know we were hesitant to upgrade to xcode 12, but this should just be a matter of upgrading to a new version of 11. |
|
It's not an Xcode problem, it's that newly Flutter-created apps have a minimum version of iOS 9 (and older ones iOS 8), so APIs with availability newer than that need to be guarded. You see this error on the latest version of Xcode as well. |
|
Ah ok, it sounds like we only need to guard the public headers. That should be an easy fix. |
|
I think you are mistaken. The minimum version should only affect guards around methods. For example, a method that is only available in iOS 10 and higher would generate an error without an When it comes to the availability of symbols, that is solely decided by the SDK with which you are compiling the source code. |
|
This is how I explained it to George over chat: "the SDK makes all symbols available statically, but the ios target version determines what needs a runtime check to be used". |
|
You're right, it's not : UIViewController <FlutterTextureRegistry, FlutterPluginRegistry
#if defined(__IPHONE_13_4)
, UIPointerInteractionDelegate
#endif
>But there's probably a better way. |
|
In the engine we are using xcode 11.3, I upgraded it from 11.0 in december. |
|
Our users on the minimum allowed version of Xcode (by the Flutter tool) will see this error, regardless of what the engine bots are on. |
|
@jmagman That will only work if Apple's API code is using edit: We could know if there was some way to write an integration test. We couldn't think of a way to do that since there is the hardware requirement of using a mouse. |
|
I don't think we've ever advertised a minimum SDK required to compile the engine. I think it has always been the latest SDK. |
|
I vote we guard the public headers and file an issue to update the Xcode on the bots in the future. I don't think this PR needs to be tied to updating Xcode. |
|
We are moving devicelab test to luci, over the next weeks. Once that is complete we will have the functionality to migrate engine/sdk/devicelab to the xcode versions we want with a single config and a little bit of extra work to create the xcode bundle with all the flutter dependencies. |
If you want to do that we should test that compiling with xcode 11.3 will execute correctly with mouse support. We don't have a way to automate that test that I know of. You'll just have to do it manually. (edit: to make sure Apple isn't using |
This reverts commit 6c80aa7.
Reverts #23362
Fixes flutter/flutter#73764
Caused framework test failure: