Skip to content

Commit

Permalink
Use shared config file for setting the version of the targets
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 9, 2020
1 parent c8ac763 commit 4e7b4ff
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
12 changes: 4 additions & 8 deletions Gifski.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
C2AFA91B204FFEFD00FC5A7F /* MainWindowController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = MainWindowController.swift; sourceTree = "<group>"; usesTabs = 1; };
D957BCDD234941C200A9A9F9 /* CheckerboardView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = CheckerboardView.swift; sourceTree = "<group>"; usesTabs = 1; };
E339F010203820ED003B78FB /* Gifski.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = Gifski.swift; sourceTree = "<group>"; usesTabs = 1; };
E3805F542466E68900489E6C /* Shared.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Shared.xcconfig; sourceTree = "<group>"; };
E3A6BD102245345C00F62256 /* Constants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = Constants.swift; sourceTree = "<group>"; usesTabs = 1; };
E3A9400D2182D7BC006981D5 /* Crashlytics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Crashlytics.framework; path = Frameworks/Crashlytics.framework; sourceTree = "<group>"; };
E3A9400E2182D7BC006981D5 /* Fabric.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Fabric.framework; path = Frameworks/Fabric.framework; sourceTree = "<group>"; };
Expand Down Expand Up @@ -213,6 +214,7 @@
E3AE627A1E5CD2F300035A2F = {
isa = PBXGroup;
children = (
E3805F542466E68900489E6C /* Shared.xcconfig */,
E3AE62851E5CD2F300035A2F /* Gifski */,
0E79251C2329BDBE00058B94 /* ShareExtension */,
E3AE62841E5CD2F300035A2F /* Products */,
Expand Down Expand Up @@ -535,7 +537,6 @@
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 36;
DEVELOPMENT_TEAM = YG56YK5RN5;
ENABLE_HARDENED_RUNTIME = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -545,7 +546,6 @@
"@executable_path/../Frameworks",
"@executable_path/../../../../Frameworks",
);
MARKETING_VERSION = 2.7.1;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.sindresorhus.Gifski.ShareExtension;
Expand All @@ -566,7 +566,6 @@
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 36;
DEVELOPMENT_TEAM = YG56YK5RN5;
ENABLE_HARDENED_RUNTIME = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -576,7 +575,6 @@
"@executable_path/../Frameworks",
"@executable_path/../../../../Frameworks",
);
MARKETING_VERSION = 2.7.1;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.sindresorhus.Gifski.ShareExtension;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -587,6 +585,7 @@
};
E3AE628E1E5CD2F300035A2F /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = E3805F542466E68900489E6C /* Shared.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
Expand Down Expand Up @@ -647,6 +646,7 @@
};
E3AE628F1E5CD2F300035A2F /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = E3805F542466E68900489E6C /* Shared.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
Expand Down Expand Up @@ -707,7 +707,6 @@
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 36;
DEVELOPMENT_TEAM = YG56YK5RN5;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -725,7 +724,6 @@
"$(inherited)",
/usr/local/opt/gcc/lib/gcc/9,
);
MARKETING_VERSION = 2.7.1;
OTHER_LDFLAGS = (
"-weak_framework",
Combine,
Expand Down Expand Up @@ -753,7 +751,6 @@
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 36;
DEVELOPMENT_TEAM = YG56YK5RN5;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -771,7 +768,6 @@
"$(inherited)",
/usr/local/opt/gcc/lib/gcc/9,
);
MARKETING_VERSION = 2.7.1;
OTHER_LDFLAGS = (
"-weak_framework",
Combine,
Expand Down
7 changes: 4 additions & 3 deletions Gifski/util.swift
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ extension CMTimeScale {
CMTime(seconds: (1 / fps), preferredTimescale: .video)
```
*/
static let video: CMTimeScale = 600
static let video: Self = 600
}


Expand Down Expand Up @@ -2753,7 +2753,7 @@ extension ClosedRange {
//=> true
```
*/
func isSuperset(of other: ClosedRange<Bound>) -> Bool {
func isSuperset(of other: Self) -> Bool {
other.isEmpty ||
(
lowerBound <= other.lowerBound &&
Expand All @@ -2769,7 +2769,7 @@ extension ClosedRange {
//=> true
```
*/
func isSubset(of other: ClosedRange<Bound>) -> Bool {
func isSubset(of other: Self) -> Bool {
other.isSuperset(of: self)
}
}
Expand Down Expand Up @@ -2903,6 +2903,7 @@ final class BackButton: NSButton {

private func commonInit() {
self.image = NSImage(named: NSImage.goBackTemplateName)
self.setAccessibilityLabel("Back")
}
}

Expand Down
2 changes: 2 additions & 0 deletions Shared.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
MARKETING_VERSION = 2.7.1
CURRENT_PROJECT_VERSION = 36

0 comments on commit 4e7b4ff

Please sign in to comment.