Skip to content

Commit c136627

Browse files
committed
Version 0.1.3
1 parent dfc30f2 commit c136627

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

HotKey.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@
528528
INFOPLIST_FILE = "$(SRCROOT)/Support/Info.plist";
529529
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
530530
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
531+
MARKETING_VERSION = 0.1.3;
531532
PRODUCT_BUNDLE_IDENTIFIER = com.samsoffes.HotKey;
532533
PRODUCT_NAME = "$(TARGET_NAME)";
533534
SKIP_INSTALL = YES;
@@ -547,6 +548,7 @@
547548
INFOPLIST_FILE = "$(SRCROOT)/Support/Info.plist";
548549
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
549550
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
551+
MARKETING_VERSION = 0.1.3;
550552
PRODUCT_BUNDLE_IDENTIFIER = com.samsoffes.HotKey;
551553
PRODUCT_NAME = "$(TARGET_NAME)";
552554
SKIP_INSTALL = YES;

Sources/HotKey/KeyCombo+System.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extension KeyCombo {
55
/// All system key combos
66
///
77
/// - returns: array of key combos
8-
static func systemKeyCombos() -> [KeyCombo] {
8+
public static func systemKeyCombos() -> [KeyCombo] {
99
var unmanagedGlobalHotkeys: Unmanaged<CFArray>?
1010
guard CopySymbolicHotKeys(&unmanagedGlobalHotkeys) == noErr,
1111
let globalHotkeys = unmanagedGlobalHotkeys?.takeRetainedValue() else
@@ -33,7 +33,7 @@ extension KeyCombo {
3333
/// All key combos in the application’s main window
3434
///
3535
/// - returns: array of key combos
36-
static func mainMenuKeyCombos() -> [KeyCombo] {
36+
public static func mainMenuKeyCombos() -> [KeyCombo] {
3737
guard let menu = NSApp.mainMenu else {
3838
return []
3939
}
@@ -46,7 +46,7 @@ extension KeyCombo {
4646
/// - parameter menu: menu to search
4747
///
4848
/// - returns: array of key combos
49-
static func keyCombos(in menu: NSMenu) -> [KeyCombo] {
49+
public static func keyCombos(in menu: NSMenu) -> [KeyCombo] {
5050
var keyCombos = [KeyCombo]()
5151

5252
for item in menu.items {
@@ -65,7 +65,7 @@ extension KeyCombo {
6565
/// Standard application key combos
6666
///
6767
/// - returns: array of key combos
68-
static func standardKeyCombos() -> [KeyCombo] {
68+
public static func standardKeyCombos() -> [KeyCombo] {
6969
return [
7070
// Application
7171
KeyCombo(key: .comma, modifiers: .command),

Support/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.1.2</string>
18+
<string>$(MARKETING_VERSION)</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSHumanReadableCopyright</key>

0 commit comments

Comments
 (0)