Skip to content

Commit bb58924

Browse files
committed
SPM support for iOS
1 parent 4055b1a commit bb58924

File tree

111 files changed

+8520
-78
lines changed

Some content is hidden

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

111 files changed

+8520
-78
lines changed

.github/workflows/ios_spm.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: iOS Build CI (CocoaPods + SPM)
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build-ios:
11+
name: Build iOS Example (Pods + SPM)
12+
runs-on: macos-latest
13+
14+
strategy:
15+
matrix:
16+
flutter-channel: [stable]
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Flutter
23+
uses: subosito/flutter-action@v2
24+
with:
25+
channel: "stable"
26+
27+
- name: Flutter pub get
28+
run: flutter pub get
29+
30+
# 🧪 Build iOS example using CocoaPods
31+
- name: Build iOS example with CocoaPods
32+
working-directory: example
33+
run: |
34+
echo "=== Building with CocoaPods ==="
35+
cd ios
36+
pod repo update
37+
pod install
38+
cd ..
39+
flutter config --no-enable-swift-package-manager
40+
flutter build ios --no-codesign --verbose
41+
42+
# 🧹 Clean build + prepare for SPM test
43+
- name: Clean and prepare for SPM test
44+
working-directory: example
45+
run: |
46+
echo "=== Cleaning Pods ==="
47+
rm -rf ios/Pods ios/Podfile.lock
48+
flutter clean
49+
50+
# 🧪 Step 7: Build iOS example using Swift Package Manager
51+
- name: Build iOS example with Swift Package Manager
52+
working-directory: example
53+
run: |
54+
echo "=== Building with SPM ==="
55+
flutter config --enable-swift-package-manager
56+
flutter build ios --no-codesign --verbose
57+
58+
# ✅ Step 8: Verify output
59+
- name: Verify build artifacts
60+
run: |
61+
echo "✅ Both CocoaPods and SPM builds succeeded."

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,8 @@ android/.settings/org.eclipse.buildship.core.prefs
5656
!webrtc.iml
5757

5858
# vs
59-
*.pdb
59+
*.pdb
60+
61+
# Swift
62+
.build/
63+
.swiftpm/

ios/Assets/.gitkeep

Whitespace-only changes.

ios/Classes/AudioManager.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

ios/Classes/AudioManager.m

Lines changed: 0 additions & 1 deletion
This file was deleted.

ios/Classes/AudioProcessingAdapter.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

ios/Classes/AudioProcessingAdapter.m

Lines changed: 0 additions & 1 deletion
This file was deleted.

ios/Classes/AudioUtils.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

ios/Classes/AudioUtils.m

Lines changed: 0 additions & 1 deletion
This file was deleted.

ios/Classes/CameraUtils.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)