Commit b90f8a7
authored
[various] Update example apps to Swift (flutter#9347)
Converts the Objective-C iOS example apps for all non-iOS-plugin-implementation packages to Swift.
The process for this was (all using current `stable`, 3.32):
- Deleted example/ios.
- Ran `flutter create --platforms=ios .`.
- Reverted changes in `ios/Runner/Assets.xcassets/AppIcon.appiconset` (this doesn't really matter either way, I just decided not to thrash a bunch of icons, since there's no real reason to and it would have added a ton more files).
- Reverted changes outside of `ios/`, except for `.gitignore` which we may as well have a current version of.
- Added license blocks to template-created code files.
- Removed the `RunnerTest` target, its source file, and the `Podfile` adjustment to `RunnerTest`.
- Reverted bundle identifier changes in most cases, since it was often auto-detecting the old `io.flutter.*` org the examples were first created with.
- Re-added any important bits to `Info.plist`.
- Ran a build both with and without SwiftPM enabled, to ensure that all the Cocoapods and SwiftPM boilerplate is added to the projects to cut down on random diffs when people build later.
One-off changes:
- Added back `Configuration.storkekit` in in_app_purchase.
- Migrated the Google Maps API key code in AppDelegate.m to AppDelegate.swift
I did not convert the implementation packages in this PR because those will need to be handled more carefully, due to the presence of RunnerTest (and sometimes RunnerUITest) targets that need to be preserved.
Part of flutter#148586
## Pre-Review Checklist
[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.1 parent f7b32d9 commit b90f8a7
File tree
254 files changed
+3511
-2659
lines changed- packages
- camera/camera/example
- ios
- Flutter
- Runner.xcodeproj
- Runner
- extension_google_sign_in_as_googleapis_auth
- example/ios
- Runner.xcodeproj
- Runner
- google_maps_flutter/google_maps_flutter/example
- ios
- Flutter
- Runner.xcodeproj
- Runner
- google_sign_in/google_sign_in/example
- ios
- Flutter
- GoogleSignInPluginTest
- Runner.xcodeproj
- Runner
- Assets.xcassets/LaunchImage.imageset
- Base.lproj
- image_picker/image_picker/example
- ios
- Flutter
- Runner.xcodeproj
- project.xcworkspace
- Runner.xcworkspace
- Runner
- Assets.xcassets
- LaunchImage.imageset
- Base.lproj
- TestImages
- image_picker_exampleTests
- in_app_purchase/in_app_purchase/example
- ios
- Flutter
- Runner.xcodeproj
- Runner
- local_auth/local_auth/example
- ios
- Flutter
- Runner.xcodeproj
- Runner
- Assets.xcassets/LaunchImage.imageset
- Base.lproj
- path_provider/path_provider/example
- ios
- Flutter
- Runner.xcodeproj
- RunnerTests
- Runner
- Assets.xcassets/LaunchImage.imageset
- Base.lproj
- quick_actions/quick_actions/example
- ios
- Flutter
- Runner.xcodeproj
- project.xcworkspace
- RunnerTests
- RunnerUITests
- Runner
- Assets.xcassets/LaunchImage.imageset
- Base.lproj
- url_launcher/url_launcher/example
- ios
- Flutter
- Runner.xcodeproj
- Runner
- Assets.xcassets/LaunchImage.imageset
- Base.lproj
- video_player/video_player/example/ios
- Flutter
- Runner.xcodeproj
- Runner
- webview_flutter/webview_flutter/example
- ios
- Flutter
- Runner.xcodeproj
- Runner
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
254 files changed
+3511
-2659
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 23 | | |
28 | 24 | | |
29 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
Lines changed: 126 additions & 66 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | 94 | | |
99 | 95 | | |
100 | | - | |
| 96 | + | |
101 | 97 | | |
102 | 98 | | |
103 | 99 | | |
| |||
0 commit comments