Skip to content

Commit

Permalink
add visionos support for UT
Browse files Browse the repository at this point in the history
  • Loading branch information
sojingle committed Nov 19, 2024
1 parent 828fa09 commit 22c38c1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Xcode 14.3.1
- name: Set Xcode 15.4
run: |
sudo xcode-select -switch /Applications/Xcode_14.3.1.app
sudo xcode-select -switch /Applications/Xcode_15.4.app
- name: iOS Build
run: |
Expand All @@ -41,6 +41,14 @@ jobs:
-sdk appletvsimulator \
-destination 'platform=tvOS Simulator,name=Apple TV' \
- name: xrOS Build
run: |
xcodebuild \
-project AnalyticsConnector.xcodeproj \
-scheme AnalyticsConnector \
-sdk xrsimulator \
-destination 'platform=visionOS Simulator,name=Apple Vision Pro' \
- name: iOS Tests
run: |
xcodebuild test \
Expand All @@ -67,3 +75,11 @@ jobs:
-destination 'platform=tvOS Simulator,name=Apple TV' \
test
- name: visionOS Tests
run: |
xcodebuild \
-project AnalyticsConnector.xcodeproj \
-scheme AnalyticsConnector \
-sdk xrsimulator \
-destination 'platform=visionOS Simulator,name=Apple Vision Pro' \
test
14 changes: 8 additions & 6 deletions AnalyticsConnector.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objectVersion = 55;
objects = {

/* Begin PBXBuildFile section */
Expand All @@ -13,7 +13,7 @@
2001756927728E16001C341D /* IdentityStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2001756827728E16001C341D /* IdentityStore.swift */; };
2001756F2773B679001C341D /* EventBridgeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2001756E2773B679001C341D /* EventBridgeTests.swift */; };
200175752773D888001C341D /* IdentityStoreTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 200175742773D888001C341D /* IdentityStoreTests.swift */; };
20C47A8E297A674F0084AC03 /* AnalyticsConnector.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 200174A52771569E001C341D /* AnalyticsConnector.framework */; };
20C47A8E297A674F0084AC03 /* AnalyticsConnector.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 200174A52771569E001C341D /* AnalyticsConnector.framework */; platformFilters = (ios, macos, tvos, xros, ); };
20C9FAB1278CB1C000A4D530 /* ObjectiveCTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 20C9FAB0278CB1C000A4D530 /* ObjectiveCTests.m */; };
20C9FAD4278CBFAC00A4D530 /* AnalyticsConnector.h in Headers */ = {isa = PBXBuildFile; fileRef = 20866C9B27714900003D1705 /* AnalyticsConnector.h */; settings = {ATTRIBUTES = (Public, ); }; };
/* End PBXBuildFile section */
Expand Down Expand Up @@ -331,11 +331,12 @@
MACOSX_DEPLOYMENT_TARGET = 10.13;
PRODUCT_BUNDLE_IDENTIFIER = com.amplitude.AnalyticsConnectorTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvos appletvsimulator";
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx xros xrsimulator";
SUPPORTS_MACCATALYST = NO;
SWIFT_OBJC_BRIDGING_HEADER = "";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2,3,6";
TARGETED_DEVICE_FAMILY = "1,2,3,6,7";
TVOS_DEPLOYMENT_TARGET = 10.0;
};
name = Debug;
Expand All @@ -357,10 +358,11 @@
MACOSX_DEPLOYMENT_TARGET = 10.13;
PRODUCT_BUNDLE_IDENTIFIER = com.amplitude.AnalyticsConnectorTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvos appletvsimulator";
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx xros xrsimulator";
SUPPORTS_MACCATALYST = NO;
SWIFT_OBJC_BRIDGING_HEADER = "";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2,3,6";
TARGETED_DEVICE_FAMILY = "1,2,3,6,7";
TVOS_DEPLOYMENT_TARGET = 10.0;
};
name = Release;
Expand Down

0 comments on commit 22c38c1

Please sign in to comment.