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

AMP-63100 Swift V2 example #268

Merged
merged 21 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
1a552e9
AMP-63100 Move current Swift example to v1 subfolder
falconandy Jul 26, 2023
ee0da0d
AMP-63100 Swift v2 app
falconandy Aug 3, 2023
d2323b9
AMP-63100 Swift v2 app: add Ampli.swift
falconandy Aug 3, 2023
7335624
AMP-63100 Swift v2 app: updated Ampli.swift
falconandy Aug 4, 2023
05be371
AMP-63100 Swift v2 app: updated Ampli.swift
falconandy Aug 4, 2023
d9f9d7d
AMP-63100 Swift v2 app: updated Ampli.swift
falconandy Aug 7, 2023
c39bdc6
AMP-63100 Swift v2 app: updated Ampli.swift
falconandy Aug 8, 2023
123729c
AMP-63100 Swift v2 app: remove
falconandy Aug 9, 2023
3d3ea6d
AMP-63100 Swift v2 app: v1 copy
falconandy Aug 9, 2023
4319bae
AMP-63100 Swift v2 app: update and tests
falconandy Aug 10, 2023
556b75a
AMP-63100 Swift v2 app: CI tests
falconandy Aug 10, 2023
8bbb235
AMP-63100 Swift v2 app: update CI merge check
falconandy Aug 10, 2023
21eaf4c
AMP-63100 Swift v2 app: update Ampli.swift
falconandy Aug 10, 2023
db922e5
AMP-63100 Swift v2 app: update Ampli.swift
falconandy Aug 10, 2023
adfc564
AMP-63100 Swift v2 app: update to AmplitudeSwift 0.4.9
falconandy Aug 11, 2023
451e506
AMP-63100 Swift v2 app: update to AmplitudeSwift 0.4.11
falconandy Aug 14, 2023
978f8f2
AMP-63100 Swift v2 app: update to AmplitudeSwift 0.4.14
falconandy Aug 17, 2023
e9370ea
AMP-63100 Swift v2 app: switch to Swift Package Manager instead of Co…
falconandy Aug 17, 2023
04637f4
AMP-63100 Swift v2 app: update Ampli.swift
falconandy Aug 17, 2023
237b836
AMP-63100 Swift v2 app: minor fixes
falconandy Aug 18, 2023
7c73cc6
AMP-63100 Move current Objective-C example to v1 subfolder
falconandy Aug 23, 2023
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
8 changes: 6 additions & 2 deletions .github/workflows/ampli-merge-check.ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: (iOS Swift) Check the Data branch is merged before merging the Git branch
working-directory: ./ios/swift/AmpliSwiftSampleApp
- name: (iOS Swift V1) Check the Data branch is merged before merging the Git branch
working-directory: ./ios/swift/v1/AmpliSwiftSampleApp
run: ampli status --is-merged -t ${{secrets.AMPLI_TOKEN}}

- name: (iOS Swift V2) Check the Data branch is merged before merging the Git branch
working-directory: ./ios/swift/v2/AmpliSwiftSampleApp
run: ampli status --is-merged -t ${{secrets.AMPLI_TOKEN}}

- name: (iOS Objective-C) Check the Data branch is merged before merging the Git branch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: CI - iOS Tests
name: CI - iOS V1 Tests

on:
pull_request:
paths:
- 'ios/objective-c/**'
- 'ios/swift/**'
- 'ios/swift/v1/**'

jobs:
test:
Expand All @@ -31,12 +31,12 @@ jobs:
uses: actions/cache@v2
with:
path: |
./ios/swift/AmpliSwiftSampleApp/Pods
./ios/swift/AmpliSwiftSampleApp/vendor/bundle
./ios/swift/v1/AmpliSwiftSampleApp/Pods
./ios/swift/v1/AmpliSwiftSampleApp/vendor/bundle
key: ${{ runner.os }}-ruby-${{ matrix.ruby-version }}-gems-${{ hashFiles('**/Gemfile.lock') }}-pods-${{ hashFiles('**/Podfile.lock') }}

- name: Install Cocoapods For Swift
working-directory: ./ios/swift/AmpliSwiftSampleApp
working-directory: ./ios/swift/v1/AmpliSwiftSampleApp
if: steps.cache-gems-pods.outputs.cache-hit != 'true'
run: |
gem install bundler
Expand All @@ -45,7 +45,7 @@ jobs:
pod install

- name: Swfit iOS Tests
working-directory: ./ios/swift/AmpliSwiftSampleApp
working-directory: ./ios/swift/v1/AmpliSwiftSampleApp
run: |
pod install
xcodebuild test \
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/ci-build-ios-v2-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI - iOS V2 Tests

on:
pull_request:
paths:
- 'ios/swift/v2/**'

jobs:
test:
name: Test
runs-on: macos-12
strategy:
matrix:
ruby-version: ["2.7.x"]
steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Set Xcode 14.2
run: |
sudo xcode-select -switch /Applications/Xcode_14.2.app

- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}

- name: Cache Bundle Gems and Cocoapods For Swift
id: cache-gems-pods
uses: actions/cache@v2
with:
path: |
./ios/swift/v2/AmpliSwiftSampleApp/Pods
./ios/swift/v2/AmpliSwiftSampleApp/vendor/bundle
key: ${{ runner.os }}-ruby-${{ matrix.ruby-version }}-gems-${{ hashFiles('**/Gemfile.lock') }}-pods-${{ hashFiles('**/Podfile.lock') }}

- name: Install Cocoapods For Swift
working-directory: ./ios/swift/v2/AmpliSwiftSampleApp
if: steps.cache-gems-pods.outputs.cache-hit != 'true'
run: |
gem install bundler
bundle config path vendor/bundle
bundle install
pod install

- name: Swfit iOS Tests
justin-fiedler marked this conversation as resolved.
Show resolved Hide resolved
working-directory: ./ios/swift/v2/AmpliSwiftSampleApp
run: |
pod install
xcodebuild test \
-workspace AmpliSwiftSampleApp.xcworkspace \
-scheme AmpliSwiftSampleAppTests \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 14,OS=16.2'
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ See subproject README's for details on each platform.
#### [node/typescript](node/typescript)
#### [nextjs/typescript](node/nextjs/ampli-app)

## iOS
#### [ios/swift](ios/swift/AmpliSwiftSampleApp)
## iOS V1
#### [ios/swift](ios/swift/v1/AmpliSwiftSampleApp)
#### [ios/objective-c](ios/objective-c/AmpliObjectiveCSampleApp)

## iOS V2
#### [ios/swift](ios/swift/v2/AmpliSwiftSampleApp)

## Android V1
#### [android/kotlin](android/kotlin/v1/AmpliApp)
#### [android/java](android/java/v1/AmpliApp)
Expand Down
Loading
Loading