-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from newmarcel/version-1.6.1
Version 1.6.1
- Loading branch information
Showing
153 changed files
with
2,542 additions
and
1,124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// NSBundle+KYAUpdateFeed.h | ||
// KYAKit | ||
// | ||
// Created by Marcel Dierkes on 26.02.21. | ||
// Copyright © 2021 Marcel Dierkes. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface NSBundle (KYAUpdateFeed) | ||
@property (nonatomic, readonly) NSString *kya_updateFeedURLString; | ||
@property (nonatomic, readonly) NSString *kya_preReleaseUpdateFeedURLString; | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// NSBundle+KYAUpdateFeed.m | ||
// KYAKit | ||
// | ||
// Created by Marcel Dierkes on 26.02.21. | ||
// Copyright © 2021 Marcel Dierkes. All rights reserved. | ||
// | ||
|
||
#import "NSBundle+KYAUpdateFeed.h" | ||
#import "KYADefines.h" | ||
|
||
static NSString * const KYAUpdateFeedKey = @"SUFeedURL"; | ||
|
||
@implementation NSBundle (KYAUpdateFeed) | ||
|
||
- (NSString *)kya_updateFeedURLString | ||
{ | ||
Auto feedURLString = (NSString *)self.infoDictionary[KYAUpdateFeedKey]; | ||
NSAssert(feedURLString != nil, @"A feed URL should be set in Info.plist"); | ||
|
||
return feedURLString; | ||
} | ||
|
||
- (NSString *)kya_preReleaseUpdateFeedURLString | ||
{ | ||
Auto feedURLString = self.kya_updateFeedURLString; | ||
Auto lastComponent = feedURLString.lastPathComponent; | ||
Auto baseURLString = feedURLString.stringByDeletingLastPathComponent; | ||
|
||
return [NSString stringWithFormat:@"%@/prerelease-%@", baseURLString, lastComponent]; | ||
} | ||
|
||
@end |
12 changes: 6 additions & 6 deletions
12
...Awake/Extensions/NSApplication+Versions.h → KYAKit/Extensions/NSBundle+KYAVersion.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// NSBundle+KYAVersion.m | ||
// KYAKit | ||
// | ||
// Created by Marcel Dierkes on 30.03.21. | ||
// Copyright © 2021 Marcel Dierkes. All rights reserved. | ||
// | ||
|
||
#import "NSBundle+KYAVersion.h" | ||
#import "KYADefines.h" | ||
#import "KYAKitLocalizedStrings.h" | ||
|
||
static NSString * const KYAShortVersionKey = @"CFBundleShortVersionString"; | ||
static NSString * const KYABundleVersionKey = @"CFBundleVersion"; | ||
static NSString * const KYACopyrightKey = @"NSHumanReadableCopyright"; | ||
|
||
@implementation NSBundle (KYAVersion) | ||
|
||
- (NSString *)kya_shortVersionString | ||
{ | ||
return self.infoDictionary[KYAShortVersionKey]; | ||
} | ||
|
||
- (NSString *)kya_buildVersionString | ||
{ | ||
return self.infoDictionary[KYABundleVersionKey]; | ||
} | ||
|
||
- (NSString *)kya_localizedVersionString | ||
{ | ||
return [NSString stringWithFormat:@"%@ %@ (%@)", | ||
KYA_L10N_VERSION, | ||
self.kya_shortVersionString, | ||
self.kya_buildVersionString]; | ||
} | ||
|
||
#pragma mark - Copyright String | ||
|
||
- (NSString *)kya_localizedCopyrightString | ||
{ | ||
return self.infoDictionary[KYACopyrightKey]; | ||
} | ||
|
||
@end |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?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> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>$(MARKETING_VERSION)</string> | ||
<key>CFBundleVersion</key> | ||
<string>$(CURRENT_PROJECT_VERSION)</string> | ||
</dict> | ||
</plist> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.