Skip to content

Commit

Permalink
Add Hardened runtime and sandboxing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev1an committed Aug 4, 2018
1 parent d929f1c commit 772656d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
9 changes: 8 additions & 1 deletion Magic Drumpad.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,11 @@
CreatedOnToolsVersion = 9.0;
LastSwiftMigration = 1000;
SystemCapabilities = {
com.apple.HardenedRuntime = {
enabled = 1;
};
com.apple.Sandbox = {
enabled = 0;
enabled = 1;
};
};
};
Expand Down Expand Up @@ -440,8 +443,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = "Magic Drumpad/Magic Drumpad.entitlements";
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 7TD9A665TC;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = "Magic Drumpad/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.12;
Expand All @@ -456,8 +461,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = "Magic Drumpad/Magic Drumpad.entitlements";
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 7TD9A665TC;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = "Magic Drumpad/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.12;
Expand Down
4 changes: 2 additions & 2 deletions Magic Drumpad/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1.1</string>
<string>1.2</string>
<key>CFBundleVersion</key>
<string>7</string>
<string>8</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.music</string>
<key>LSMinimumSystemVersion</key>
Expand Down
5 changes: 4 additions & 1 deletion Magic Drumpad/Magic Drumpad.entitlements
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
</dict>
</plist>
2 changes: 1 addition & 1 deletion Magic Drumpad/Player.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MidiPlayer: Player {
}

func play() {
try! sender.sendNoteOnMessage(noteNumber: note, velocity: 120)
try! sender.sendNoteOnMessage(noteNumber: note, velocity: 127)
}

func stop() {
Expand Down

0 comments on commit 772656d

Please sign in to comment.