Commit 783530c
fix(ios): guard FlutterSceneLifeCycleDelegate with compile-time check
Instead of hard-requiring Flutter >=3.38.0, wrap FlutterSceneLifeCycleDelegate
protocol adoption and addSceneDelegate with #if __has_include guards.
- Flutter >=3.38 (header present): UIScene delegate registered, all three
scene callbacks active — deep links work under UIScene migration.
- Flutter <3.38 (header absent): guard skips it at compile time, plugin
falls back to application:openURL: — backward compatible.
pubspec.yaml reverts flutter constraint to >=1.10.0 (no breaking change).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 680bd7b commit 783530c
3 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
965 | 967 | | |
966 | 968 | | |
967 | 969 | | |
| 970 | + | |
968 | 971 | | |
969 | 972 | | |
970 | 973 | | |
| |||
990 | 993 | | |
991 | 994 | | |
992 | 995 | | |
| 996 | + | |
993 | 997 | | |
994 | 998 | | |
995 | 999 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments