Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
watchOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
hongxinhope committed Aug 22, 2016
1 parent 4ddc323 commit b58107f
Show file tree
Hide file tree
Showing 9 changed files with 248 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: objective-c
osx_image: xcode7.3
script:
- xcodebuild build test -workspace ManagedObjectAdapter.xcworkspace -scheme ManagedObjectAdapter -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6s,OS=9.3'
- xcodebuild build test -workspace ManagedObjectAdapter.xcworkspace -scheme 'ManagedObjectAdapter iOS' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6s,OS=9.3'
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>Example.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>2</integer>
<integer>3</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
Expand Down
132 changes: 120 additions & 12 deletions ManagedObjectAdapter.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
D3283CC91D48876C00E1B445 /* ManagedObjectSerializing.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3283CC81D48876C00E1B445 /* ManagedObjectSerializing.swift */; };
D3D39DF11D6AA90F00AECD76 /* ManagedObjectAdapterTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3D39DF01D6AA90F00AECD76 /* ManagedObjectAdapterTests.swift */; };
D3D39DF31D6AA90F00AECD76 /* ManagedObjectAdapter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D3283C961D4880C500E1B445 /* ManagedObjectAdapter.framework */; };
D3D39E061D6AC4DE00AECD76 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = D304AAA21D5B0A7400013742 /* Constants.swift */; };
D3D39E071D6AC4E100AECD76 /* ManagedObjectSerializing.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3283CC81D48876C00E1B445 /* ManagedObjectSerializing.swift */; };
D3D39E081D6AC4E400AECD76 /* ManagedObjectAdapter.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3283CC21D4881D900E1B445 /* ManagedObjectAdapter.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -27,12 +30,14 @@
/* Begin PBXFileReference section */
D304AAA21D5B0A7400013742 /* Constants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = "<group>"; };
D3283C961D4880C500E1B445 /* ManagedObjectAdapter.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ManagedObjectAdapter.framework; sourceTree = BUILT_PRODUCTS_DIR; };
D3283CC01D4881BB00E1B445 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
D3283CC01D4881BB00E1B445 /* Info-iOS.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-iOS.plist"; sourceTree = "<group>"; };
D3283CC21D4881D900E1B445 /* ManagedObjectAdapter.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ManagedObjectAdapter.swift; sourceTree = "<group>"; };
D3283CC81D48876C00E1B445 /* ManagedObjectSerializing.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ManagedObjectSerializing.swift; sourceTree = "<group>"; };
D3D39DEE1D6AA90F00AECD76 /* ManagedObjectAdapterTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ManagedObjectAdapterTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
D3D39DF01D6AA90F00AECD76 /* ManagedObjectAdapterTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ManagedObjectAdapterTests.swift; sourceTree = "<group>"; };
D3D39DF21D6AA90F00AECD76 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
D3D39DFE1D6AC3B600AECD76 /* ManagedObjectAdapter.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ManagedObjectAdapter.framework; sourceTree = BUILT_PRODUCTS_DIR; };
D3D39E091D6AC93600AECD76 /* Info-watchOS.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-watchOS.plist"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -51,6 +56,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
D3D39DFA1D6AC3B600AECD76 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand All @@ -68,6 +80,7 @@
children = (
D3283C961D4880C500E1B445 /* ManagedObjectAdapter.framework */,
D3D39DEE1D6AA90F00AECD76 /* ManagedObjectAdapterTests.xctest */,
D3D39DFE1D6AC3B600AECD76 /* ManagedObjectAdapter.framework */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -86,7 +99,8 @@
D3283CBF1D4881A200E1B445 /* Supporting Files */ = {
isa = PBXGroup;
children = (
D3283CC01D4881BB00E1B445 /* Info.plist */,
D3283CC01D4881BB00E1B445 /* Info-iOS.plist */,
D3D39E091D6AC93600AECD76 /* Info-watchOS.plist */,
);
path = "Supporting Files";
sourceTree = "<group>";
Expand All @@ -110,12 +124,19 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
D3D39DFB1D6AC3B600AECD76 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
D3283C951D4880C500E1B445 /* ManagedObjectAdapter */ = {
D3283C951D4880C500E1B445 /* ManagedObjectAdapter iOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = D3283C9E1D4880C500E1B445 /* Build configuration list for PBXNativeTarget "ManagedObjectAdapter" */;
buildConfigurationList = D3283C9E1D4880C500E1B445 /* Build configuration list for PBXNativeTarget "ManagedObjectAdapter iOS" */;
buildPhases = (
D3283C911D4880C500E1B445 /* Sources */,
D3283C921D4880C500E1B445 /* Frameworks */,
Expand All @@ -126,7 +147,7 @@
);
dependencies = (
);
name = ManagedObjectAdapter;
name = "ManagedObjectAdapter iOS";
productName = ManagedObjectAdapter;
productReference = D3283C961D4880C500E1B445 /* ManagedObjectAdapter.framework */;
productType = "com.apple.product-type.framework";
Expand All @@ -149,6 +170,24 @@
productReference = D3D39DEE1D6AA90F00AECD76 /* ManagedObjectAdapterTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
D3D39DFD1D6AC3B600AECD76 /* ManagedObjectAdapter watchOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = D3D39E031D6AC3B600AECD76 /* Build configuration list for PBXNativeTarget "ManagedObjectAdapter watchOS" */;
buildPhases = (
D3D39DF91D6AC3B600AECD76 /* Sources */,
D3D39DFA1D6AC3B600AECD76 /* Frameworks */,
D3D39DFB1D6AC3B600AECD76 /* Headers */,
D3D39DFC1D6AC3B600AECD76 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "ManagedObjectAdapter watchOS";
productName = "ManagedObjectAdapter watchOS";
productReference = D3D39DFE1D6AC3B600AECD76 /* ManagedObjectAdapter.framework */;
productType = "com.apple.product-type.framework";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
Expand All @@ -165,6 +204,9 @@
D3D39DED1D6AA90F00AECD76 = {
CreatedOnToolsVersion = 7.3.1;
};
D3D39DFD1D6AC3B600AECD76 = {
CreatedOnToolsVersion = 7.3.1;
};
};
};
buildConfigurationList = D3283C901D4880C500E1B445 /* Build configuration list for PBXProject "ManagedObjectAdapter" */;
Expand All @@ -179,7 +221,8 @@
projectDirPath = "";
projectRoot = "";
targets = (
D3283C951D4880C500E1B445 /* ManagedObjectAdapter */,
D3283C951D4880C500E1B445 /* ManagedObjectAdapter iOS */,
D3D39DFD1D6AC3B600AECD76 /* ManagedObjectAdapter watchOS */,
D3D39DED1D6AA90F00AECD76 /* ManagedObjectAdapterTests */,
);
};
Expand All @@ -200,6 +243,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
D3D39DFC1D6AC3B600AECD76 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand All @@ -221,12 +271,22 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
D3D39DF91D6AC3B600AECD76 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
D3D39E071D6AC4E100AECD76 /* ManagedObjectSerializing.swift in Sources */,
D3D39E061D6AC4DE00AECD76 /* Constants.swift in Sources */,
D3D39E081D6AC4E400AECD76 /* ManagedObjectAdapter.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
D3D39DF51D6AA90F00AECD76 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = D3283C951D4880C500E1B445 /* ManagedObjectAdapter */;
target = D3283C951D4880C500E1B445 /* ManagedObjectAdapter iOS */;
targetProxy = D3D39DF41D6AA90F00AECD76 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
Expand Down Expand Up @@ -331,11 +391,11 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "$(SRCROOT)/ManagedObjectAdapter/Supporting Files/Info.plist";
INFOPLIST_FILE = "$(SRCROOT)/ManagedObjectAdapter/Supporting Files/Info-iOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = Teambition.ManagedObjectAdapter;
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = ManagedObjectAdapter;
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
Expand All @@ -349,11 +409,11 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "$(SRCROOT)/ManagedObjectAdapter/Supporting Files/Info.plist";
INFOPLIST_FILE = "$(SRCROOT)/ManagedObjectAdapter/Supporting Files/Info-iOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = Teambition.ManagedObjectAdapter;
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = ManagedObjectAdapter;
SKIP_INSTALL = YES;
};
name = Release;
Expand All @@ -380,6 +440,46 @@
};
name = Release;
};
D3D39E041D6AC3B600AECD76 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "$(SRCROOT)/ManagedObjectAdapter/Supporting Files/Info-watchOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "Teambition.ManagedObjectAdapter-watchOS";
PRODUCT_NAME = ManagedObjectAdapter;
SDKROOT = watchos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = 4;
WATCHOS_DEPLOYMENT_TARGET = 2.2;
};
name = Debug;
};
D3D39E051D6AC3B600AECD76 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "$(SRCROOT)/ManagedObjectAdapter/Supporting Files/Info-watchOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "Teambition.ManagedObjectAdapter-watchOS";
PRODUCT_NAME = ManagedObjectAdapter;
SDKROOT = watchos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = 4;
WATCHOS_DEPLOYMENT_TARGET = 2.2;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand All @@ -392,7 +492,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
D3283C9E1D4880C500E1B445 /* Build configuration list for PBXNativeTarget "ManagedObjectAdapter" */ = {
D3283C9E1D4880C500E1B445 /* Build configuration list for PBXNativeTarget "ManagedObjectAdapter iOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
D3283C9F1D4880C500E1B445 /* Debug */,
Expand All @@ -409,6 +509,14 @@
);
defaultConfigurationIsVisible = 0;
};
D3D39E031D6AC3B600AECD76 /* Build configuration list for PBXNativeTarget "ManagedObjectAdapter watchOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
D3D39E041D6AC3B600AECD76 /* Debug */,
D3D39E051D6AC3B600AECD76 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = D3283C8D1D4880C500E1B445 /* Project object */;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "D3283C951D4880C500E1B445"
BuildableName = "ManagedObjectAdapter.framework"
BlueprintName = "ManagedObjectAdapter"
BlueprintName = "ManagedObjectAdapter iOS"
ReferencedContainer = "container:ManagedObjectAdapter.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down Expand Up @@ -44,7 +44,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "D3283C951D4880C500E1B445"
BuildableName = "ManagedObjectAdapter.framework"
BlueprintName = "ManagedObjectAdapter"
BlueprintName = "ManagedObjectAdapter iOS"
ReferencedContainer = "container:ManagedObjectAdapter.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand All @@ -66,7 +66,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "D3283C951D4880C500E1B445"
BuildableName = "ManagedObjectAdapter.framework"
BlueprintName = "ManagedObjectAdapter"
BlueprintName = "ManagedObjectAdapter iOS"
ReferencedContainer = "container:ManagedObjectAdapter.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand All @@ -84,7 +84,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "D3283C951D4880C500E1B445"
BuildableName = "ManagedObjectAdapter.framework"
BlueprintName = "ManagedObjectAdapter"
BlueprintName = "ManagedObjectAdapter iOS"
ReferencedContainer = "container:ManagedObjectAdapter.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand Down
Loading

0 comments on commit b58107f

Please sign in to comment.