Skip to content

Commit 89d4e5a

Browse files
committed
refactor: Migrate plugins to Swift
1 parent 619dd8e commit 89d4e5a

131 files changed

Lines changed: 2654 additions & 2915 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/code-analysis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,9 @@ jobs:
134134
run: brew install ktlint
135135
- name: Run ktlint on Kotlin code
136136
run: ktlint
137+
138+
# Lint Swift code (iOS plugins) with SwiftLint.
139+
- name: Install SwiftLint
140+
run: brew install swiftlint
141+
- name: Run SwiftLint on Swift code
142+
run: swiftlint lint

.run/Example App - Debug.run.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Example App - Debug" type="FlutterRunConfigurationType" factoryName="Flutter">
3+
<option name="filePath" value="$PROJECT_DIR$/packages/example/lib/main.dart" />
4+
<method v="2" />
5+
</configuration>
6+
</component>

.run/Example App - Profile.run.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Example App - Profile" type="FlutterRunConfigurationType" factoryName="Flutter">
3+
<option name="additionalArgs" value="--profile" />
4+
<option name="filePath" value="$PROJECT_DIR$/packages/example/lib/main.dart" />
5+
<method v="2" />
6+
</configuration>
7+
</component>

.run/Example App - Release.run.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Example App - Release" type="FlutterRunConfigurationType" factoryName="Flutter">
3+
<option name="additionalArgs" value="--release" />
4+
<option name="filePath" value="$PROJECT_DIR$/packages/example/lib/main.dart" />
5+
<method v="2" />
6+
</configuration>
7+
</component>

.swiftlint.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Exclude generated / third-party paths
2+
excluded:
3+
- packages/example/ios/Flutter/ephemeral
4+
5+
function_body_length:
6+
warning: 90
7+
error: 120
8+
function_parameter_count:
9+
warning: 6
10+
error: 8
11+
cyclomatic_complexity:
12+
warning: 20
13+
error: 30

.vscode/launch.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"name": "Flutter (Example App)",
5+
"name": "Example App - Debug",
66
"request": "launch",
77
"type": "dart",
88
"program": "${workspaceFolder}/packages/example/lib/main.dart",
99
"cwd": "${workspaceFolder}/packages/example"
1010
},
1111
{
12-
"name": "Flutter (Example App - Profile)",
12+
"name": "Example App - Profile",
1313
"request": "launch",
1414
"type": "dart",
1515
"flutterMode": "profile",
1616
"program": "${workspaceFolder}/packages/example/lib/main.dart",
1717
"cwd": "${workspaceFolder}/packages/example"
1818
},
1919
{
20-
"name": "Flutter (Example App - Release)",
20+
"name": "Example App - Release",
2121
"request": "launch",
2222
"type": "dart",
2323
"flutterMode": "release",

packages/example/ios/Podfile.lock

Lines changed: 47 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
PODS:
2+
- camera_avfoundation (0.0.1):
3+
- Flutter
24
- Flutter (1.0.0)
5+
- flutter_pdfview (1.0.2):
6+
- Flutter
37
- google_mlkit_barcode_scanning (0.14.2):
48
- Flutter
59
- google_mlkit_commons
@@ -152,6 +156,8 @@ PODS:
152156
- GoogleUtilities/Logger
153157
- GoogleUtilities/Privacy
154158
- GTMSessionFetcher/Core (3.5.0)
159+
- image_picker_ios (0.0.1):
160+
- Flutter
155161
- MLImage (1.0.0-beta8)
156162
- MLKitBarcodeScanning (8.0.0):
157163
- MLKitCommon (~> 14.0)
@@ -272,11 +278,16 @@ PODS:
272278
- nanopb/encode (= 3.30910.0)
273279
- nanopb/decode (3.30910.0)
274280
- nanopb/encode (3.30910.0)
281+
- path_provider_foundation (0.0.1):
282+
- Flutter
283+
- FlutterMacOS
275284
- PromisesObjC (2.4.0)
276285
- SSZipArchive (2.6.0)
277286

278287
DEPENDENCIES:
288+
- camera_avfoundation (from `.symlinks/plugins/camera_avfoundation/ios`)
279289
- Flutter (from `Flutter`)
290+
- flutter_pdfview (from `.symlinks/plugins/flutter_pdfview/ios`)
280291
- google_mlkit_barcode_scanning (from `.symlinks/plugins/google_mlkit_barcode_scanning/ios`)
281292
- google_mlkit_commons (from `.symlinks/plugins/google_mlkit_commons/ios`)
282293
- google_mlkit_digital_ink_recognition (from `.symlinks/plugins/google_mlkit_digital_ink_recognition/ios`)
@@ -303,6 +314,8 @@ DEPENDENCIES:
303314
- GoogleMLKit/TextRecognitionDevanagari (~> 9.0.0)
304315
- GoogleMLKit/TextRecognitionJapanese (~> 9.0.0)
305316
- 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`)
306319

307320
SPEC REPOS:
308321
trunk:
@@ -347,8 +360,12 @@ SPEC REPOS:
347360
- SSZipArchive
348361

349362
EXTERNAL SOURCES:
363+
camera_avfoundation:
364+
:path: ".symlinks/plugins/camera_avfoundation/ios"
350365
Flutter:
351366
:path: Flutter
367+
flutter_pdfview:
368+
:path: ".symlinks/plugins/flutter_pdfview/ios"
352369
google_mlkit_barcode_scanning:
353370
:path: ".symlinks/plugins/google_mlkit_barcode_scanning/ios"
354371
google_mlkit_commons:
@@ -393,36 +410,43 @@ EXTERNAL SOURCES:
393410
:path: ".symlinks/plugins/google_mlkit_text_recognition/ios"
394411
google_mlkit_translation:
395412
: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"
396417

397418
SPEC CHECKSUMS:
419+
camera_avfoundation: 5675ca25298b6f81fa0a325188e7df62cc217741
398420
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467
399-
google_mlkit_barcode_scanning: 12d8422d8f7b00726dedf9cac00188a2b98750c2
400-
google_mlkit_commons: a5e4ffae5bc59ea4c7b9025dc72cb6cb79dc1166
401-
google_mlkit_digital_ink_recognition: a9f14c9a75bad980ea26f2d3ce277f5963f413ba
402-
google_mlkit_document_scanner: 107c2c91ea967acb9eb989ff988443b81b8e761a
403-
google_mlkit_entity_extraction: 45de8519319089085569ef9e10e2500b8d0d55a0
404-
google_mlkit_face_detection: ee4b72cfae062b4c972204be955d83055a4bfd36
405-
google_mlkit_face_mesh_detection: 644aad01e609e0962bc38495d1d807e2ae9f5e1b
406-
google_mlkit_genai_image_description: 84e90c2ad87ae5e2f05cc4d5f1924059c799fc12
407-
google_mlkit_genai_prompt: f4a41c9548172a86c6723e5c83c1c3295b6ad299
408-
google_mlkit_genai_proofreading: 09ca9edfaa66e58ff165d2047286c10ba0a831ca
409-
google_mlkit_genai_rewriting: 7a647b345cf7d9fe8fda004142ca980abbba9724
410-
google_mlkit_genai_speech_recognition: 783fd846946877dc812a81d629c676b41973ce72
411-
google_mlkit_genai_summarization: 8d750cfca622746aef09d6521bf2e764e8647ded
412-
google_mlkit_image_labeling: 6f6fdb11c14600e01898e59a8c4413b255ede272
413-
google_mlkit_language_id: de6f5cc02967420549c3c3a1624b359217442db9
414-
google_mlkit_object_detection: 6a81b32faf7a9b700bed7a2caa67254818553257
415-
google_mlkit_pose_detection: 211eabf55f5ea8d6a9537fdade0a37148fc84d8b
416-
google_mlkit_selfie_segmentation: 0317616b7e460f242bd13a805b70f4e0ba636336
417-
google_mlkit_smart_reply: fa236bc7f5f8ed70a894a659ec8d43b5b05374a6
418-
google_mlkit_subject_segmentation: 864c91cd7c89cedc4b17021794c6c182ba165e0f
419-
google_mlkit_text_recognition: b3de5adb786ad7a0fe8e13618387b8d2df0f3c70
420-
google_mlkit_translation: c5a10fefc8f641df87a49d2744b2b1bf0c418064
421+
flutter_pdfview: 32bf27bda6fd85b9dd2c09628a824df5081246cf
422+
google_mlkit_barcode_scanning: 37a95c619ade2966885d549d337c7ce25cdcd6e1
423+
google_mlkit_commons: fdbddbd42f5f4680ce01932017e31d1e0f02b4ef
424+
google_mlkit_digital_ink_recognition: 4faaf4dc06be7427ca2e5a2b605e8c4e6f8919b5
425+
google_mlkit_document_scanner: 4286ef97b690c747db9db15337207a631e3efa24
426+
google_mlkit_entity_extraction: 2500f93887c590c0c68341d9b64523c992346281
427+
google_mlkit_face_detection: 4cf4f7bda5e0cfdb4e52c11603aa025a81138a47
428+
google_mlkit_face_mesh_detection: 103cfafc7ee649085abc40b07cedb1c9e165e9cb
429+
google_mlkit_genai_image_description: 0a468e8016204f093f9f352a92823573f1b49728
430+
google_mlkit_genai_prompt: d527fb9e9b6885c373075a058c96b00c552f14c0
431+
google_mlkit_genai_proofreading: d4f6e35918c40f08069b4c2c89ce4f2fb9f1b4d9
432+
google_mlkit_genai_rewriting: b9821623a69e2cb9e54eedf68200a29dd89b3e92
433+
google_mlkit_genai_speech_recognition: 1064074540af10fdc14cf6810a004c38f0a46434
434+
google_mlkit_genai_summarization: 40a3ba7e03ab369f1ce7702e0970d6e7a35baa50
435+
google_mlkit_image_labeling: 7d5de5ee0fbbc23d95d33f9880e2c761beca6f23
436+
google_mlkit_language_id: 892ac40627c56faece8753d0ca5f1402854bf030
437+
google_mlkit_object_detection: 960463a8dff3a818a41d704632f9017a3d80a5a6
438+
google_mlkit_pose_detection: c378a1e88fc7ed97b64219f72edc2880ac40ca23
439+
google_mlkit_selfie_segmentation: 38f73022f0e63f253a050298f6d89c2978548991
440+
google_mlkit_smart_reply: ddac7d36acf06981e4e1fb009cfd8e10197af3cc
441+
google_mlkit_subject_segmentation: b6d3bfeee5deb973d2832a68022c28cb8c36668f
442+
google_mlkit_text_recognition: 00511b4b7987ad04770382e343ad73d40250a049
443+
google_mlkit_translation: f163102828e75ce10a4d5b31852599755a516809
421444
GoogleDataTransport: aae35b7ea0c09004c3797d53c8c41f66f219d6a7
422445
GoogleMLKit: b1eee21a41c57704fe72483b15c85cb2c0cd7444
423446
GoogleToolboxForMac: d1a2cbf009c453f4d6ded37c105e2f67a32206d8
424447
GoogleUtilities: 00c88b9a86066ef77f0da2fab05f65d7768ed8e1
425448
GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6
449+
image_picker_ios: e0ece4aa2a75771a7de3fa735d26d90817041326
426450
MLImage: 0de5c6c2bf9e93b80ef752e2797f0836f03b58c0
427451
MLKitBarcodeScanning: 39de223e7b1b8a8fbf10816a536dd292d8a39343
428452
MLKitCommon: 47d47b50a031d00db62f1b0efe5a1d8b09a3b2e6
@@ -455,6 +479,7 @@ SPEC CHECKSUMS:
455479
MLKitVisionKit: 316cd349468797ef4e7fd785bf658ca838984de3
456480
MLKitXenoCommon: 1a4268c1222a6043047af5bb9435028206c63287
457481
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
482+
path_provider_foundation: bb55f6dbba17d0dccd6737fe6f7f34fbd0376880
458483
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
459484
SSZipArchive: 8a6ee5677c8e304bebc109e39cf0da91ccef22ea
460485

0 commit comments

Comments
 (0)