Skip to content

Commit

Permalink
Merge pull request #97 from mattrubin/configuration
Browse files Browse the repository at this point in the history
Move target build settings into shared xcconfig files
  • Loading branch information
mattrubin authored Nov 4, 2016
2 parents c8a3ac2 + 4e9b54b commit 9aa11a6
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 108 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# OneTimePassword Changelog

## [In development][master]
- Clean up project configuration and build settings ([#95](https://github.com/mattrubin/OneTimePassword/pull/95))
#### Enhancements
- Add watchOS target ([#96](https://github.com/mattrubin/OneTimePassword/pull/96))

#### Other Changes
- Clean up project configuration and build settings ([#95](https://github.com/mattrubin/OneTimePassword/pull/95), [#97](https://github.com/mattrubin/OneTimePassword/pull/97))


## [2.0.1][] (2016-09-20)
#### Enhancements
Expand Down
2 changes: 2 additions & 0 deletions Configuration/OneTimePassword-iOS.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include "../Carthage/Checkouts/xcconfigs/iOS/iOS-Framework.xcconfig"
#include "OneTimePassword.xcconfig"
2 changes: 2 additions & 0 deletions Configuration/OneTimePassword-watchOS.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include "../Carthage/Checkouts/xcconfigs/watchOS/watchOS-Framework.xcconfig"
#include "OneTimePassword.xcconfig"
13 changes: 13 additions & 0 deletions Configuration/OneTimePassword.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
PRODUCT_NAME = OneTimePassword;
PRODUCT_BUNDLE_IDENTIFIER = me.mattrubin.onetimepassword;
INFOPLIST_FILE = Sources/Info.plist;

SWIFT_INSTALL_OBJC_HEADER = NO;

SWIFT_INCLUDE_PATHS[sdk=appletvos*] = $(SRCROOT)/CommonCrypto/appletvos;
SWIFT_INCLUDE_PATHS[sdk=appletvsimulator*] = $(SRCROOT)/CommonCrypto/appletvsimulator;
SWIFT_INCLUDE_PATHS[sdk=iphoneos*] = $(SRCROOT)/CommonCrypto/iphoneos;
SWIFT_INCLUDE_PATHS[sdk=iphonesimulator*] = $(SRCROOT)/CommonCrypto/iphonesimulator;
SWIFT_INCLUDE_PATHS[sdk=macosx*] = $(SRCROOT)/CommonCrypto/macosx;
SWIFT_INCLUDE_PATHS[sdk=watchos*] = $(SRCROOT)/CommonCrypto/watchos;
SWIFT_INCLUDE_PATHS[sdk=watchsimulator*] = $(SRCROOT)/CommonCrypto/watchsimulator;
2 changes: 2 additions & 0 deletions Configuration/OneTimePasswordTests-iOS.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include "../Carthage/Checkouts/xcconfigs/iOS/iOS-Application.xcconfig"
#include "OneTimePasswordTests.xcconfig"
3 changes: 3 additions & 0 deletions Configuration/OneTimePasswordTests.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PRODUCT_NAME = OneTimePasswordTests;
PRODUCT_BUNDLE_IDENTIFIER = me.mattrubin.onetimepassword.tests;
INFOPLIST_FILE = Tests/Info.plist;
139 changes: 32 additions & 107 deletions OneTimePassword.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
C93A2514196AFE1100F86892 /* KeychainTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KeychainTests.swift; sourceTree = "<group>"; };
C93A2515196AFE1100F86892 /* OTPTokenSerializationTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OTPTokenSerializationTests.m; sourceTree = "<group>"; };
C93A2519196B1BA400F86892 /* Token.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Token.swift; sourceTree = "<group>"; };
C93CC01A1DCBB755006255FA /* OneTimePassword-iOS.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "OneTimePassword-iOS.xcconfig"; sourceTree = "<group>"; };
C93CC01B1DCBB7FB006255FA /* OneTimePassword-watchOS.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "OneTimePassword-watchOS.xcconfig"; sourceTree = "<group>"; };
C93CC01C1DCBB875006255FA /* OneTimePasswordTests-iOS.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "OneTimePasswordTests-iOS.xcconfig"; sourceTree = "<group>"; };
C93CC01E1DCBBDE7006255FA /* OneTimePassword.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = OneTimePassword.xcconfig; sourceTree = "<group>"; };
C93CC0211DCBC189006255FA /* OneTimePasswordTests.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = OneTimePasswordTests.xcconfig; sourceTree = "<group>"; };
C944A55E1A7EDAE200E08B1E /* Base32.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Base32.framework; sourceTree = BUILT_PRODUCTS_DIR; };
C944A5941A809CC000E08B1E /* OTPTokenTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OTPTokenTests.swift; sourceTree = "<group>"; };
C94765061C64587800C7527E /* Cartfile.private */ = {isa = PBXFileReference; lastKnownFileType = text; path = Cartfile.private; sourceTree = "<group>"; };
Expand All @@ -80,13 +85,6 @@
C996EC2D1A74D5830076B105 /* Profile.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Profile.xcconfig; path = Configurations/Profile.xcconfig; sourceTree = "<group>"; };
C996EC2E1A74D5830076B105 /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Configurations/Release.xcconfig; sourceTree = "<group>"; };
C996EC2F1A74D5830076B105 /* Test.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Test.xcconfig; path = Configurations/Test.xcconfig; sourceTree = "<group>"; };
C996EC351A74D5830076B105 /* iOS-Application.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "iOS-Application.xcconfig"; sourceTree = "<group>"; };
C996EC371A74D5830076B105 /* iOS-Framework.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "iOS-Framework.xcconfig"; sourceTree = "<group>"; };
C996EC381A74D5830076B105 /* iOS-StaticLibrary.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "iOS-StaticLibrary.xcconfig"; sourceTree = "<group>"; };
C996EC3A1A74D5830076B105 /* Mac-Application.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Mac-Application.xcconfig"; sourceTree = "<group>"; };
C996EC3C1A74D5830076B105 /* Mac-DynamicLibrary.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Mac-DynamicLibrary.xcconfig"; sourceTree = "<group>"; };
C996EC3D1A74D5830076B105 /* Mac-Framework.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Mac-Framework.xcconfig"; sourceTree = "<group>"; };
C996EC3E1A74D5830076B105 /* Mac-StaticLibrary.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Mac-StaticLibrary.xcconfig"; sourceTree = "<group>"; };
C9A486B3196F352E00524F51 /* OneTimePasswordLegacyTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = OneTimePasswordLegacyTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
C9A486B9196F352F00524F51 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
C9B2A19B199A7F1B00BC4A8A /* EquatableTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EquatableTests.swift; sourceTree = "<group>"; };
Expand All @@ -103,9 +101,6 @@
C9E829541C62FFBD003F5FC9 /* CONTRIBUTING.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CONTRIBUTING.md; sourceTree = "<group>"; };
C9E829551C630514003F5FC9 /* CONDUCT.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CONDUCT.md; sourceTree = "<group>"; };
C9F544AC1C8391630023CCF0 /* Crypto.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Crypto.swift; sourceTree = "<group>"; };
C9FCE5631DCB01B90032920D /* watchOS-Application.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "watchOS-Application.xcconfig"; sourceTree = "<group>"; };
C9FCE5651DCB01B90032920D /* watchOS-Framework.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "watchOS-Framework.xcconfig"; sourceTree = "<group>"; };
C9FCE5661DCB01B90032920D /* watchOS-StaticLibrary.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "watchOS-StaticLibrary.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -160,6 +155,18 @@
name = Serialization;
sourceTree = "<group>";
};
C93CC01F1DCBC0E6006255FA /* Targets */ = {
isa = PBXGroup;
children = (
C93CC01E1DCBBDE7006255FA /* OneTimePassword.xcconfig */,
C93CC01A1DCBB755006255FA /* OneTimePassword-iOS.xcconfig */,
C93CC01B1DCBB7FB006255FA /* OneTimePassword-watchOS.xcconfig */,
C93CC0211DCBC189006255FA /* OneTimePasswordTests.xcconfig */,
C93CC01C1DCBB875006255FA /* OneTimePasswordTests-iOS.xcconfig */,
);
name = Targets;
sourceTree = "<group>";
};
C94B9BC71BD726F70073D7C5 /* Docs */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -244,47 +251,23 @@
C996EC281A74D5830076B105 /* Configuration */ = {
isa = PBXGroup;
children = (
C996EC291A74D5830076B105 /* Base */,
C996EC341A74D5830076B105 /* iOS */,
C996EC391A74D5830076B105 /* macOS */,
C9FCE5621DCB01B90032920D /* watchOS */,
C996EC291A74D5830076B105 /* Project */,
C93CC01F1DCBC0E6006255FA /* Targets */,
);
name = Configuration;
path = Carthage/Checkouts/xcconfigs;
path = Configuration;
sourceTree = "<group>";
};
C996EC291A74D5830076B105 /* Base */ = {
C996EC291A74D5830076B105 /* Project */ = {
isa = PBXGroup;
children = (
C996EC2C1A74D5830076B105 /* Debug.xcconfig */,
C996EC2D1A74D5830076B105 /* Profile.xcconfig */,
C996EC2E1A74D5830076B105 /* Release.xcconfig */,
C996EC2F1A74D5830076B105 /* Test.xcconfig */,
);
path = Base;
sourceTree = "<group>";
};
C996EC341A74D5830076B105 /* iOS */ = {
isa = PBXGroup;
children = (
C996EC351A74D5830076B105 /* iOS-Application.xcconfig */,
C996EC371A74D5830076B105 /* iOS-Framework.xcconfig */,
C996EC381A74D5830076B105 /* iOS-StaticLibrary.xcconfig */,
);
path = iOS;
sourceTree = "<group>";
};
C996EC391A74D5830076B105 /* macOS */ = {
isa = PBXGroup;
children = (
C996EC3A1A74D5830076B105 /* Mac-Application.xcconfig */,
C996EC3C1A74D5830076B105 /* Mac-DynamicLibrary.xcconfig */,
C996EC3D1A74D5830076B105 /* Mac-Framework.xcconfig */,
C996EC3E1A74D5830076B105 /* Mac-StaticLibrary.xcconfig */,
);
name = macOS;
path = "Mac OS X";
sourceTree = "<group>";
name = Project;
path = Carthage/Checkouts/xcconfigs/Base;
sourceTree = SOURCE_ROOT;
};
C9A486B7196F352F00524F51 /* OneTimePasswordLegacyTests */ = {
isa = PBXGroup;
Expand Down Expand Up @@ -338,16 +321,6 @@
name = Helpers;
sourceTree = "<group>";
};
C9FCE5621DCB01B90032920D /* watchOS */ = {
isa = PBXGroup;
children = (
C9FCE5631DCB01B90032920D /* watchOS-Application.xcconfig */,
C9FCE5651DCB01B90032920D /* watchOS-Framework.xcconfig */,
C9FCE5661DCB01B90032920D /* watchOS-StaticLibrary.xcconfig */,
);
path = watchOS;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
Expand Down Expand Up @@ -576,35 +549,15 @@
/* Begin XCBuildConfiguration section */
5B39F4991DBD06BA00CD2DAB /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = C9FCE5651DCB01B90032920D /* watchOS-Framework.xcconfig */;
baseConfigurationReference = C93CC01B1DCBB7FB006255FA /* OneTimePassword-watchOS.xcconfig */;
buildSettings = {
INFOPLIST_FILE = Sources/Info.plist;
PRODUCT_BUNDLE_IDENTIFIER = me.mattrubin.onetimepassword;
PRODUCT_NAME = OneTimePassword;
"SWIFT_INCLUDE_PATHS[sdk=appletvos*]" = "$(SRCROOT)/CommonCrypto/appletvos";
"SWIFT_INCLUDE_PATHS[sdk=appletvsimulator*]" = "$(SRCROOT)/CommonCrypto/appletvsimulator";
"SWIFT_INCLUDE_PATHS[sdk=iphoneos*]" = "$(SRCROOT)/CommonCrypto/iphoneos";
"SWIFT_INCLUDE_PATHS[sdk=iphonesimulator*]" = "$(SRCROOT)/CommonCrypto/iphonesimulator";
"SWIFT_INCLUDE_PATHS[sdk=macosx*]" = "$(SRCROOT)/CommonCrypto/macosx";
"SWIFT_INCLUDE_PATHS[sdk=watchos*]" = "$(SRCROOT)/CommonCrypto/watchos";
"SWIFT_INCLUDE_PATHS[sdk=watchsimulator*]" = "$(SRCROOT)/CommonCrypto/watchsimulator";
};
name = Debug;
};
5B39F49A1DBD06BA00CD2DAB /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = C9FCE5651DCB01B90032920D /* watchOS-Framework.xcconfig */;
baseConfigurationReference = C93CC01B1DCBB7FB006255FA /* OneTimePassword-watchOS.xcconfig */;
buildSettings = {
INFOPLIST_FILE = Sources/Info.plist;
PRODUCT_BUNDLE_IDENTIFIER = me.mattrubin.onetimepassword;
PRODUCT_NAME = OneTimePassword;
"SWIFT_INCLUDE_PATHS[sdk=appletvos*]" = "$(SRCROOT)/CommonCrypto/appletvos";
"SWIFT_INCLUDE_PATHS[sdk=appletvsimulator*]" = "$(SRCROOT)/CommonCrypto/appletvsimulator";
"SWIFT_INCLUDE_PATHS[sdk=iphoneos*]" = "$(SRCROOT)/CommonCrypto/iphoneos";
"SWIFT_INCLUDE_PATHS[sdk=iphonesimulator*]" = "$(SRCROOT)/CommonCrypto/iphonesimulator";
"SWIFT_INCLUDE_PATHS[sdk=macosx*]" = "$(SRCROOT)/CommonCrypto/macosx";
"SWIFT_INCLUDE_PATHS[sdk=watchos*]" = "$(SRCROOT)/CommonCrypto/watchos";
"SWIFT_INCLUDE_PATHS[sdk=watchsimulator*]" = "$(SRCROOT)/CommonCrypto/watchsimulator";
};
name = Release;
};
Expand All @@ -630,63 +583,35 @@
};
C97C824F1946E51D00FD9F4C /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = C996EC371A74D5830076B105 /* iOS-Framework.xcconfig */;
baseConfigurationReference = C93CC01A1DCBB755006255FA /* OneTimePassword-iOS.xcconfig */;
buildSettings = {
INFOPLIST_FILE = Sources/Info.plist;
PRODUCT_BUNDLE_IDENTIFIER = me.mattrubin.onetimepassword;
PRODUCT_NAME = OneTimePassword;
"SWIFT_INCLUDE_PATHS[sdk=appletvos*]" = "$(SRCROOT)/CommonCrypto/appletvos";
"SWIFT_INCLUDE_PATHS[sdk=appletvsimulator*]" = "$(SRCROOT)/CommonCrypto/appletvsimulator";
"SWIFT_INCLUDE_PATHS[sdk=iphoneos*]" = "$(SRCROOT)/CommonCrypto/iphoneos";
"SWIFT_INCLUDE_PATHS[sdk=iphonesimulator*]" = "$(SRCROOT)/CommonCrypto/iphonesimulator";
"SWIFT_INCLUDE_PATHS[sdk=macosx*]" = "$(SRCROOT)/CommonCrypto/macosx";
"SWIFT_INCLUDE_PATHS[sdk=watchos*]" = "$(SRCROOT)/CommonCrypto/watchos";
"SWIFT_INCLUDE_PATHS[sdk=watchsimulator*]" = "$(SRCROOT)/CommonCrypto/watchsimulator";
SWIFT_INSTALL_OBJC_HEADER = NO;
};
name = Debug;
};
C97C82501946E51D00FD9F4C /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = C996EC371A74D5830076B105 /* iOS-Framework.xcconfig */;
baseConfigurationReference = C93CC01A1DCBB755006255FA /* OneTimePassword-iOS.xcconfig */;
buildSettings = {
INFOPLIST_FILE = Sources/Info.plist;
PRODUCT_BUNDLE_IDENTIFIER = me.mattrubin.onetimepassword;
PRODUCT_NAME = OneTimePassword;
"SWIFT_INCLUDE_PATHS[sdk=appletvos*]" = "$(SRCROOT)/CommonCrypto/appletvos";
"SWIFT_INCLUDE_PATHS[sdk=appletvsimulator*]" = "$(SRCROOT)/CommonCrypto/appletvsimulator";
"SWIFT_INCLUDE_PATHS[sdk=iphoneos*]" = "$(SRCROOT)/CommonCrypto/iphoneos";
"SWIFT_INCLUDE_PATHS[sdk=iphonesimulator*]" = "$(SRCROOT)/CommonCrypto/iphonesimulator";
"SWIFT_INCLUDE_PATHS[sdk=macosx*]" = "$(SRCROOT)/CommonCrypto/macosx";
"SWIFT_INCLUDE_PATHS[sdk=watchos*]" = "$(SRCROOT)/CommonCrypto/watchos";
"SWIFT_INCLUDE_PATHS[sdk=watchsimulator*]" = "$(SRCROOT)/CommonCrypto/watchsimulator";
SWIFT_INSTALL_OBJC_HEADER = NO;
};
name = Release;
};
C97C82521946E51D00FD9F4C /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = C996EC351A74D5830076B105 /* iOS-Application.xcconfig */;
baseConfigurationReference = C93CC01C1DCBB875006255FA /* OneTimePasswordTests-iOS.xcconfig */;
buildSettings = {
INFOPLIST_FILE = Tests/Info.plist;
PRODUCT_BUNDLE_IDENTIFIER = me.mattrubin.onetimepassword.tests;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
C97C82531946E51D00FD9F4C /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = C996EC351A74D5830076B105 /* iOS-Application.xcconfig */;
baseConfigurationReference = C93CC01C1DCBB875006255FA /* OneTimePasswordTests-iOS.xcconfig */;
buildSettings = {
INFOPLIST_FILE = Tests/Info.plist;
PRODUCT_BUNDLE_IDENTIFIER = me.mattrubin.onetimepassword.tests;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
C9A486BE196F352F00524F51 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = C996EC351A74D5830076B105 /* iOS-Application.xcconfig */;
baseConfigurationReference = C93CC01C1DCBB875006255FA /* OneTimePasswordTests-iOS.xcconfig */;
buildSettings = {
INFOPLIST_FILE = OneTimePasswordLegacyTests/Info.plist;
PRODUCT_BUNDLE_IDENTIFIER = me.mattrubin.onetimepassword.legacy.tests;
Expand All @@ -696,7 +621,7 @@
};
C9A486BF196F352F00524F51 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = C996EC351A74D5830076B105 /* iOS-Application.xcconfig */;
baseConfigurationReference = C93CC01C1DCBB875006255FA /* OneTimePasswordTests-iOS.xcconfig */;
buildSettings = {
INFOPLIST_FILE = OneTimePasswordLegacyTests/Info.plist;
PRODUCT_BUNDLE_IDENTIFIER = me.mattrubin.onetimepassword.legacy.tests;
Expand Down

0 comments on commit 9aa11a6

Please sign in to comment.