-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: add visionOS Support * add visionOS support to lifecycleMonitor & update specs * update dependency version * add visionOS targeted unit test to github workflow * use arm64 runner
- Loading branch information
Showing
12 changed files
with
96 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ on: | |
jobs: | ||
authorize: | ||
name: Authorize | ||
runs-on: macos-13 | ||
runs-on: macos-13-xlarge | ||
steps: | ||
- name: ${{ github.actor }} permission check to do a release | ||
uses: octokit/[email protected] | ||
|
@@ -27,7 +27,7 @@ jobs: | |
|
||
release: | ||
name: Release | ||
runs-on: macos-13 | ||
runs-on: macos-13-xlarge | ||
needs: [authorize, run-tests] | ||
steps: | ||
- name: Checkout | ||
|
@@ -36,6 +36,11 @@ jobs: | |
run: | | ||
sudo xcode-select -switch /Applications/Xcode_15.2.app | ||
# Install missing sdk for pod lint | ||
# Remove this step after the runner upgraded to macos-15 | ||
- name: Install visionOS simulator | ||
run: xcodebuild -downloadPlatform visionOS -quiet | ||
|
||
- name: Validate Podfile | ||
run: pod lib lint --allow-warnings | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ Pod::Spec.new do |s| | |
s.author = { "Amplitude" => "[email protected]" } | ||
s.source = { :git => "https://github.com/amplitude/Amplitude-Swift.git", :tag => "v#{s.version}" } | ||
|
||
s.swift_version = '5.7' | ||
s.swift_version = '5.9' | ||
|
||
s.ios.deployment_target = '13.0' | ||
s.ios.source_files = 'Sources/Amplitude/**/*.{h,swift}' | ||
|
@@ -29,7 +29,11 @@ Pod::Spec.new do |s| | |
# s.watchos.source_files = 'Sources/Amplitude/**/*.{h,swift}' | ||
# s.watchos.resource_bundle = { 'Amplitude': ['Sources/Amplitude/PrivacyInfo.xcprivacy'] } | ||
|
||
s.dependency 'AnalyticsConnector', '~> 1.0.1' | ||
s.visionos.deployment_target = '1.0' | ||
s.visionos.source_files = 'Sources/Amplitude/**/*.{h,swift}' | ||
s.visionos.resource_bundle = { 'Amplitude': ['Sources/Amplitude/PrivacyInfo.xcprivacy'] } | ||
|
||
s.dependency 'AnalyticsConnector', '~> 1.3.0' | ||
|
||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// swift-tools-version: 5.9 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Amplitude-Swift", | ||
platforms: [ | ||
.macOS("10.15"), | ||
.iOS("13.0"), | ||
.tvOS("13.0"), | ||
.watchOS("7.0"), | ||
.visionOS("1.0"), | ||
], | ||
products: [ | ||
// Products define the executables and libraries a package produces, and make them visible to other packages. | ||
.library( | ||
name: "AmplitudeSwift", | ||
targets: ["AmplitudeSwift"] | ||
) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/amplitude/analytics-connector-ios.git", from: "1.3.0") | ||
], | ||
targets: [ | ||
// Targets are the basic building blocks of a package. A target can define a module or a test suite. | ||
// Targets can depend on other targets in this package, and on products in packages this package depends on. | ||
.target( | ||
name: "AmplitudeSwift", | ||
dependencies: [ | ||
.product(name: "AnalyticsConnector", package: "analytics-connector-ios") | ||
], | ||
path: "Sources/Amplitude", | ||
exclude: ["../../Examples/", "../../Tests/"], | ||
resources: [.copy("PrivacyInfo.xcprivacy")] | ||
), | ||
.testTarget( | ||
name: "Amplitude-SwiftTests", | ||
dependencies: ["AmplitudeSwift"], | ||
path: "Tests/AmplitudeTests" | ||
), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters