Skip to content

Commit 614ac2b

Browse files
committed
chore: Update iOS example app configuration and clean up dependencies
- Migrate AppDelegate to use FlutterImplicitEngineDelegate. - Add scene configuration to Info.plist. - Prune unused packages from Podfile.lock. - Exclude build/Pods/.symlinks in SwiftLint configuration.
1 parent be7035c commit 614ac2b

5 files changed

Lines changed: 28 additions & 34 deletions

File tree

.swiftlint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Exclude generated / third-party paths
22
excluded:
33
- packages/example/ios/Flutter/ephemeral
4+
- packages/example/ios/.symlinks
5+
- packages/example/ios/Pods
6+
- packages/example/build
47

58
function_body_length:
69
warning: 90

packages/example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
23-
<key>MinimumOSVersion</key>
24-
<string>13.0</string>
2523
</dict>
2624
</plist>

packages/example/ios/Podfile.lock

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
PODS:
2-
- camera_avfoundation (0.0.1):
3-
- Flutter
42
- Flutter (1.0.0)
5-
- flutter_pdfview (1.0.2):
6-
- Flutter
73
- google_mlkit_barcode_scanning (0.14.2):
84
- Flutter
95
- google_mlkit_commons
@@ -156,8 +152,6 @@ PODS:
156152
- GoogleUtilities/Logger
157153
- GoogleUtilities/Privacy
158154
- GTMSessionFetcher/Core (3.5.0)
159-
- image_picker_ios (0.0.1):
160-
- Flutter
161155
- MLImage (1.0.0-beta8)
162156
- MLKitBarcodeScanning (8.0.0):
163157
- MLKitCommon (~> 14.0)
@@ -278,16 +272,11 @@ PODS:
278272
- nanopb/encode (= 3.30910.0)
279273
- nanopb/decode (3.30910.0)
280274
- nanopb/encode (3.30910.0)
281-
- path_provider_foundation (0.0.1):
282-
- Flutter
283-
- FlutterMacOS
284275
- PromisesObjC (2.4.0)
285276
- SSZipArchive (2.6.0)
286277

287278
DEPENDENCIES:
288-
- camera_avfoundation (from `.symlinks/plugins/camera_avfoundation/ios`)
289279
- Flutter (from `Flutter`)
290-
- flutter_pdfview (from `.symlinks/plugins/flutter_pdfview/ios`)
291280
- google_mlkit_barcode_scanning (from `.symlinks/plugins/google_mlkit_barcode_scanning/ios`)
292281
- google_mlkit_commons (from `.symlinks/plugins/google_mlkit_commons/ios`)
293282
- google_mlkit_digital_ink_recognition (from `.symlinks/plugins/google_mlkit_digital_ink_recognition/ios`)
@@ -314,8 +303,6 @@ DEPENDENCIES:
314303
- GoogleMLKit/TextRecognitionDevanagari (~> 9.0.0)
315304
- GoogleMLKit/TextRecognitionJapanese (~> 9.0.0)
316305
- GoogleMLKit/TextRecognitionKorean (~> 9.0.0)
317-
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
318-
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
319306

320307
SPEC REPOS:
321308
trunk:
@@ -360,12 +347,8 @@ SPEC REPOS:
360347
- SSZipArchive
361348

362349
EXTERNAL SOURCES:
363-
camera_avfoundation:
364-
:path: ".symlinks/plugins/camera_avfoundation/ios"
365350
Flutter:
366351
:path: Flutter
367-
flutter_pdfview:
368-
:path: ".symlinks/plugins/flutter_pdfview/ios"
369352
google_mlkit_barcode_scanning:
370353
:path: ".symlinks/plugins/google_mlkit_barcode_scanning/ios"
371354
google_mlkit_commons:
@@ -410,15 +393,9 @@ EXTERNAL SOURCES:
410393
:path: ".symlinks/plugins/google_mlkit_text_recognition/ios"
411394
google_mlkit_translation:
412395
:path: ".symlinks/plugins/google_mlkit_translation/ios"
413-
image_picker_ios:
414-
:path: ".symlinks/plugins/image_picker_ios/ios"
415-
path_provider_foundation:
416-
:path: ".symlinks/plugins/path_provider_foundation/darwin"
417396

418397
SPEC CHECKSUMS:
419-
camera_avfoundation: 5675ca25298b6f81fa0a325188e7df62cc217741
420398
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467
421-
flutter_pdfview: 32bf27bda6fd85b9dd2c09628a824df5081246cf
422399
google_mlkit_barcode_scanning: 37a95c619ade2966885d549d337c7ce25cdcd6e1
423400
google_mlkit_commons: fdbddbd42f5f4680ce01932017e31d1e0f02b4ef
424401
google_mlkit_digital_ink_recognition: 4faaf4dc06be7427ca2e5a2b605e8c4e6f8919b5
@@ -446,7 +423,6 @@ SPEC CHECKSUMS:
446423
GoogleToolboxForMac: d1a2cbf009c453f4d6ded37c105e2f67a32206d8
447424
GoogleUtilities: 00c88b9a86066ef77f0da2fab05f65d7768ed8e1
448425
GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6
449-
image_picker_ios: e0ece4aa2a75771a7de3fa735d26d90817041326
450426
MLImage: 0de5c6c2bf9e93b80ef752e2797f0836f03b58c0
451427
MLKitBarcodeScanning: 39de223e7b1b8a8fbf10816a536dd292d8a39343
452428
MLKitCommon: 47d47b50a031d00db62f1b0efe5a1d8b09a3b2e6
@@ -479,7 +455,6 @@ SPEC CHECKSUMS:
479455
MLKitVisionKit: 316cd349468797ef4e7fd785bf658ca838984de3
480456
MLKitXenoCommon: 1a4268c1222a6043047af5bb9435028206c63287
481457
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
482-
path_provider_foundation: bb55f6dbba17d0dccd6737fe6f7f34fbd0376880
483458
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
484459
SSZipArchive: 8a6ee5677c8e304bebc109e39cf0da91ccef22ea
485460

packages/example/ios/Runner/AppDelegate.swift

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@ import Flutter
22
import UIKit
33

44
@main
5-
@objc class AppDelegate: FlutterAppDelegate {
6-
override func application(
7-
_ application: UIApplication,
8-
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9-
) -> Bool {
10-
GeneratedPluginRegistrant.register(with: self)
11-
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
5+
@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate {
6+
7+
func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) {
8+
GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
129
}
1310
}

packages/example/ios/Runner/Info.plist

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,27 @@
3636
<string>To take video with your camera</string>
3737
<key>NSPhotoLibraryUsageDescription</key>
3838
<string>To access your photos in your Library</string>
39+
<key>UIApplicationSceneManifest</key>
40+
<dict>
41+
<key>UIApplicationSupportsMultipleScenes</key>
42+
<false/>
43+
<key>UISceneConfigurations</key>
44+
<dict>
45+
<key>UIWindowSceneSessionRoleApplication</key>
46+
<array>
47+
<dict>
48+
<key>UISceneClassName</key>
49+
<string>UIWindowScene</string>
50+
<key>UISceneConfigurationName</key>
51+
<string>flutter</string>
52+
<key>UISceneDelegateClassName</key>
53+
<string>FlutterSceneDelegate</string>
54+
<key>UISceneStoryboardFile</key>
55+
<string>Main</string>
56+
</dict>
57+
</array>
58+
</dict>
59+
</dict>
3960
<key>UIApplicationSupportsIndirectInputEvents</key>
4061
<true/>
4162
<key>UILaunchStoryboardName</key>

0 commit comments

Comments
 (0)