Skip to content

Commit

Permalink
visionOS support (why though?)
Browse files Browse the repository at this point in the history
Ran without changes but will require updates to version check functions
  • Loading branch information
ThatStella7922 committed Aug 1, 2023
1 parent 38621c7 commit ba5ce41
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions dcbattwebhook-swift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,10 @@
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = auto;
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator";
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator xros xrsimulator";
SUPPORTS_MACCATALYST = YES;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "dcbattwebhook-swift/dcbattwebhook-swift-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -393,9 +394,10 @@
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = auto;
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator";
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator xros xrsimulator";
SUPPORTS_MACCATALYST = YES;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "dcbattwebhook-swift/dcbattwebhook-swift-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down
Binary file not shown.
2 changes: 2 additions & 0 deletions dcbattwebhook-swift/DeviceInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ func getOSVersionAsDbl() -> Double {

/**
Returns `true` if the device is running any version of iOS prior to `16.0`

- Warning: Returns `true` when running on visionOS and fix is TODO
*/
func isiOSPre16() -> Bool {
if (getOSVersionAsDbl() < 16.0) {
Expand Down
4 changes: 2 additions & 2 deletions dcbattwebhook-swift/dcbattwebhook_swiftApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import SwiftUI
public let prodName = "Battery Webhook"

#if os(tvOS)
public let version = "1.0b35 on tvOS"
public let version = "1.0b36 on tvOS"
#else
public let version = "1.0b35"
public let version = "1.0b36"
#endif

@main
Expand Down

0 comments on commit ba5ce41

Please sign in to comment.