Skip to content

Commit

Permalink
Build for macOS 13 and enable outgoing connections
Browse files Browse the repository at this point in the history
  • Loading branch information
yalishanda42 committed May 12, 2023
1 parent 50ba99f commit c7e67b1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
4 changes: 2 additions & 2 deletions BDZDelays.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 12.5;
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = yalishanda.BDZDelays;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -350,7 +350,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 12.5;
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = yalishanda.BDZDelays;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
10 changes: 6 additions & 4 deletions BDZDelays/BDZDelays.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ import SharedModels
import Dependencies

private let coordTolerance = 0.001

#if os(iOS)
private let authorizedStatuses: [CLAuthorizationStatus] = [.authorizedAlways, .authorizedWhenInUse]
#elseif os(macOS)
private let authorizedStatuses: [CLAuthorizationStatus] = [.authorized]
#else
private let authorizedStatuses: [CLAuthorizationStatus] = []
#endif


extension LocationService: DependencyKey {
public static let liveValue: Self = {
Expand Down

0 comments on commit c7e67b1

Please sign in to comment.