Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move non-legacy examples to Swift Package Manager #1666

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 11 additions & 18 deletions .github/workflows/analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,17 @@ env:

jobs:
cocoapods:
name: cocoapods - ${{ matrix.os }}
name: spm - ${{ matrix.os }}
runs-on: macOS-15
strategy:
matrix:
os: [iOS, catalyst, tvOS, macOS]
os: [iOS, tvOS, macOS]
xcode: ["16.1"]
include:
- os: iOS
device: iPhone 16
scheme: AnalyticsExample
test: true
- os: catalyst
device: localhost
test: false # disabled due to a permissions error on launch (OSStatus -54).
- os: tvOS
device: Apple TV 4K (3rd generation) (at 1080p)
scheme: AnalyticsExampleTV
Expand All @@ -50,27 +48,22 @@ jobs:
scheme: AnalyticsExampleMac
test: true
env:
SPM: false
LEGACY: false
OS: ${{ matrix.os }}
SETUP: analytics
SPM: true
LEGACY: false
DIR: analytics
DEVICE: ${{ matrix.device }}
TEST: ${{ matrix.test }}
SCHEME: ${{ matrix.scheme }}
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd analytics
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/analytics.sh
- name: Build Swift
cd $SETUP
../scripts/install_prereqs/${SETUP}.sh
- name: Build and Test SwiftUI (${{ matrix.os }})
run: ./scripts/test.sh
env:
TEST: ${{ matrix.test }}
SWIFT_SUFFIX: ""

#TODO: Add `spm` job.
21 changes: 10 additions & 11 deletions .github/workflows/authentication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,25 @@ env:

jobs:
cocoapods:
name: cocoapods
name: spm
runs-on: macOS-15
env:
SPM: false
LEGACY: false
OS: iOS
SETUP: authentication
SPM: true
LEGACY: false
DIR: authentication
DEVICE: iPhone 16
TEST: false
SCHEME: AuthenticationExample
DEVELOPER_DIR: /Applications/Xcode_16.1.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd authentication
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/authentication.sh
- name: Build Swift
cd $SETUP
../scripts/install_prereqs/${SETUP}.sh
- name: Build and Test SwiftUI (${OS})
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: ""
18 changes: 7 additions & 11 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,24 @@ env:
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
spm:
name: spm
runs-on: macOS-15
env:
SPM: false
OS: iOS
DEVICE: iPhone 16
DIR: config
SPM: true
LEGACY: false
SWIFT_SUFFIX: ""
SCHEME: ConfigExample
TEST: true
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd config
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/config.sh
xcrun simctl boot "iPhone 16"
- name: Build Swift
run: ./scripts/test.sh
env:
OS: iOS
DEVICE: iPhone 16
18 changes: 8 additions & 10 deletions .github/workflows/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,28 @@ env:
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
spm-buildonly:
name: spm (non-SwiftUI)
runs-on: macOS-15
env:
SPM: false
LEGACY: false
OS: iOS
SPM: true
LEGACY: false
DIR: database
DEVICE: iPhone 16
TEST: false
SCHEME: DatabaseExampleSwift
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd database
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
cd database
../scripts/install_prereqs/database.sh
- name: Build Swift
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: Swift

spm:
name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }})
runs-on: macOS-15
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/firestore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,24 @@ env:
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
spm:
name: cocoapods
runs-on: macOS-15
env:
SPM: false
SPM: true
LEGACY: false
OS: iOS
DIR: firestore
DEVICE: iPhone 16
TEST: false
SCHEME: FirestoreExample
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd firestore
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/firestore.sh
- name: Build
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: ""
14 changes: 6 additions & 8 deletions .github/workflows/inappmessaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ env:
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
spm:
name: spm
runs-on: macOS-15
env:
SPM: false
SPM: true
LEGACY: false
DIR: inappmessaging
OS: iOS
DEVICE: iPhone 16
TEST: true
Expand All @@ -42,16 +43,13 @@ jobs:
- name: Setup
run: |
cd inappmessaging
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/inappmessaging.sh
- name: Build ObjC
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: ""
SCHEME: InAppMessagingExample
- name: Build Swift
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: Swift
SCHEME: InAppMessagingExampleSwift
14 changes: 6 additions & 8 deletions .github/workflows/installations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,29 @@ env:
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
spm:
name: spm
runs-on: macOS-15
env:
SPM: false
SPM: true
LEGACY: false
OS: iOS
DEVICE: iPhone 16
TEST: true
DIR: installations
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd installations
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/installations.sh
- name: Build ObjC
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: ""
SCHEME: InstallationsExampleSwift
- name: Build Swift
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: Swift
SCHEME: InstallationsExample
14 changes: 6 additions & 8 deletions .github/workflows/messaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,29 @@ env:
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
spm:
name: spm
runs-on: macOS-15
env:
SPM: false
SPM: true
LEGACY: false
OS: iOS
DEVICE: iPhone 16
TEST: false
DIR: messaging
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd messaging
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/messaging.sh
- name: Build ObjC
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: ""
SCHEME: MessagingExample
- name: Build Swift
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: Swift
SCHEME: MessagingExampleSwift
14 changes: 6 additions & 8 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,28 @@ env:
secrets_passphrase: ${{ secrets.GHASECRETSGPGPASSPHRASE1 }}

jobs:
cocoapods:
name: cocoapods
spm:
name: spm
runs-on: macOS-15
env:
SPM: false
SPM: true
LEGACY: false
OS: iOS
DEVICE: iPhone 16
TEST: true
DIR: performance
SCHEME: PerformanceExampleSwift
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
cd performance
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
../scripts/install_prereqs/performance.sh
- name: Build Swift
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: Swift

spm:
name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }})
runs-on: macOS-15
Expand Down
Loading
Loading