Skip to content

Commit 26e7830

Browse files
authored
feat: Support seamless integration with amplitude experiment SDK (#378)
1 parent 27af7b7 commit 26e7830

File tree

12 files changed

+230
-67
lines changed

12 files changed

+230
-67
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
run: |
3838
sudo xcode-select -switch /Applications/Xcode_12.app
3939
40+
- name: Carthage Bootstrap
41+
run: carthage bootstrap --use-xcframeworks
42+
4043
- name: Setup Ruby
4144
uses: actions/setup-ruby@v1
4245
with:

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
run: |
1818
sudo xcode-select -switch /Applications/Xcode_12.app
1919
20+
- name: Carthage Bootstrap
21+
run: carthage bootstrap --use-xcframeworks
22+
2023
- name: Setup Ruby
2124
uses: actions/setup-ruby@v1
2225
with:

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/Pods
33
/Build/
44
/DerivedData/
5-
Carthage/Build
5+
Carthage/
66

77
doc/
88
.swiftpm
@@ -28,4 +28,4 @@ DerivedData/
2828
!default.perspectivev3
2929

3030
## Gcc Patch
31-
/*.gcno
31+
/*.gcno

Amplitude.podspec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Pod::Spec.new do |s|
1111
s.requires_arc = true
1212
s.library = 'sqlite3.0'
1313

14+
s.swift_version = '4.1'
15+
1416
s.ios.deployment_target = '10.0'
1517
s.ios.source_files = 'Sources/Amplitude/**/*.{h,m}'
1618
s.ios.resources = 'Sources/Resources/*.{der}'
@@ -26,6 +28,8 @@ Pod::Spec.new do |s|
2628
s.watchos.deployment_target = '3.0'
2729
s.watchos.source_files = 'Sources/Amplitude/**/*.{h,m}'
2830
s.watchos.resources = 'Sources/Resources/*.{der}'
31+
32+
s.dependency 'AnalyticsConnector', '~> 1.0.0'
2933

3034
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
3135
end

Amplitude.xcodeproj/project.pbxproj

Lines changed: 169 additions & 63 deletions
Large diffs are not rendered by default.

Cartfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github "amplitude/analytics-connector-ios" ~> 1.0.0

Cartfile.resolved

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github "amplitude/analytics-connector-ios" "v1.0.0"

Package.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ let package = Package(
1313
products: [
1414
.library(name: "Amplitude", targets: ["Amplitude"]),
1515
],
16+
dependencies: [
17+
.package(url: "https://github.com/amplitude/amplitude-ios-core.git", from: "1.0.0")
18+
],
1619
targets: [
1720
.target(
1821
name: "Amplitude",
@@ -21,3 +24,4 @@ let package = Package(
2124
publicHeadersPath: "Amplitude/Public"),
2225
]
2326
)
27+

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project 'Amplitude'
33
abstract_target 'shared' do
44

55
pod 'OCMock', '~> 3.2.1'
6-
6+
77
target 'Amplitude_iOSTests' do
88
platform :ios, '10.0'
99
end

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ SPEC REPOS:
1111
SPEC CHECKSUMS:
1212
OCMock: 18c9b7e67d4c2770e95bb77a9cc1ae0c91fe3835
1313

14-
PODFILE CHECKSUM: c234af1832073dccffe31825daef96d6b0eb126c
14+
PODFILE CHECKSUM: f4462aedc7398f89b3216737d86da7f673eb4649
1515

1616
COCOAPODS: 1.11.2

0 commit comments

Comments
 (0)