Skip to content

Commit

Permalink
Use new build system for Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
takecian committed Aug 23, 2018
1 parent a2c609b commit 3263a36
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 65 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,8 @@ fastlane/Preview.html
fastlane/screenshots
fastlane/test_output

Demo/Pods
Demo/Podfile.lock

DemoObjc/Pods
DemoObjc/Podfile.lock
132 changes: 67 additions & 65 deletions Demo/Demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
objects = {

/* Begin PBXBuildFile section */
2C20CEB031B6E6A064B100AB /* Pods_Demo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06C98591926CDD7188A14E21 /* Pods_Demo.framework */; };
645FF60A1E8A1DCE001D5563 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 645FF6091E8A1DCE001D5563 /* AppDelegate.swift */; };
645FF60C1E8A1DCE001D5563 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 645FF60B1E8A1DCE001D5563 /* ViewController.swift */; };
645FF60F1E8A1DCE001D5563 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 645FF60D1E8A1DCE001D5563 /* Main.storyboard */; };
645FF6111E8A1DCE001D5563 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 645FF6101E8A1DCE001D5563 /* Assets.xcassets */; };
645FF6141E8A1DCE001D5563 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 645FF6121E8A1DCE001D5563 /* LaunchScreen.storyboard */; };
645FF61F1E8A1DCE001D5563 /* DemoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 645FF61E1E8A1DCE001D5563 /* DemoTests.swift */; };
645FF6361E8A20C0001D5563 /* SwiftRater.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 645FF62F1E8A202F001D5563 /* SwiftRater.framework */; };
645FF6371E8A20C0001D5563 /* SwiftRater.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 645FF62F1E8A202F001D5563 /* SwiftRater.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -25,27 +24,6 @@
remoteGlobalIDString = 645FF6051E8A1DCE001D5563;
remoteInfo = Demo;
};
645FF62E1E8A202F001D5563 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 645FF6291E8A202F001D5563 /* SwiftRater.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 645FF5E31E8A1D89001D5563;
remoteInfo = SwiftRater;
};
645FF6301E8A202F001D5563 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 645FF6291E8A202F001D5563 /* SwiftRater.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 645FF5EC1E8A1D89001D5563;
remoteInfo = SwiftRaterTests;
};
645FF6381E8A20C0001D5563 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 645FF6291E8A202F001D5563 /* SwiftRater.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = 645FF6641E8B8CD0001D5563;
remoteInfo = SwiftRater;
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
Expand All @@ -55,14 +33,15 @@
dstPath = "";
dstSubfolderSpec = 10;
files = (
645FF6371E8A20C0001D5563 /* SwiftRater.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
06C98591926CDD7188A14E21 /* Pods_Demo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Demo.framework; sourceTree = BUILT_PRODUCTS_DIR; };
44A4A212099F3E57AD17D1F0 /* Pods-Demo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo.release.xcconfig"; path = "Pods/Target Support Files/Pods-Demo/Pods-Demo.release.xcconfig"; sourceTree = "<group>"; };
645FF6061E8A1DCE001D5563 /* Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Demo.app; sourceTree = BUILT_PRODUCTS_DIR; };
645FF6091E8A1DCE001D5563 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
645FF60B1E8A1DCE001D5563 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
Expand All @@ -73,7 +52,6 @@
645FF61A1E8A1DCE001D5563 /* DemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
645FF61E1E8A1DCE001D5563 /* DemoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DemoTests.swift; sourceTree = "<group>"; };
645FF6201E8A1DCE001D5563 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
645FF6291E8A202F001D5563 /* SwiftRater.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SwiftRater.xcodeproj; path = ../SwiftRater.xcodeproj; sourceTree = "<group>"; };
645FF6991E8BABEF001D5563 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Main.strings; sourceTree = "<group>"; };
645FF69A1E8BABEF001D5563 /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
645FF69B1E8BABF6001D5563 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Main.strings; sourceTree = "<group>"; };
Expand Down Expand Up @@ -110,14 +88,15 @@
64B62F691E8E4B47000FFF09 /* hu */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = hu; path = hu.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
64B62F6A1E8E4B88000FFF09 /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/Main.strings; sourceTree = "<group>"; };
64B62F6B1E8E4B88000FFF09 /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
D8FDD3233067D0E3EF31CEE3 /* Pods-Demo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Demo/Pods-Demo.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
645FF6031E8A1DCE001D5563 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
645FF6361E8A20C0001D5563 /* SwiftRater.framework in Frameworks */,
2C20CEB031B6E6A064B100AB /* Pods_Demo.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -131,13 +110,31 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
0056070747B2172C6140A649 /* Pods */ = {
isa = PBXGroup;
children = (
D8FDD3233067D0E3EF31CEE3 /* Pods-Demo.debug.xcconfig */,
44A4A212099F3E57AD17D1F0 /* Pods-Demo.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
};
38DD8154192569F5DB394C3D /* Frameworks */ = {
isa = PBXGroup;
children = (
06C98591926CDD7188A14E21 /* Pods_Demo.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
645FF5FD1E8A1DCE001D5563 = {
isa = PBXGroup;
children = (
645FF6291E8A202F001D5563 /* SwiftRater.xcodeproj */,
645FF6081E8A1DCE001D5563 /* Demo */,
645FF61D1E8A1DCE001D5563 /* DemoTests */,
645FF6071E8A1DCE001D5563 /* Products */,
0056070747B2172C6140A649 /* Pods */,
38DD8154192569F5DB394C3D /* Frameworks */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -172,31 +169,23 @@
path = DemoTests;
sourceTree = "<group>";
};
645FF62A1E8A202F001D5563 /* Products */ = {
isa = PBXGroup;
children = (
645FF62F1E8A202F001D5563 /* SwiftRater.framework */,
645FF6311E8A202F001D5563 /* SwiftRaterTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
645FF6051E8A1DCE001D5563 /* Demo */ = {
isa = PBXNativeTarget;
buildConfigurationList = 645FF6231E8A1DCE001D5563 /* Build configuration list for PBXNativeTarget "Demo" */;
buildPhases = (
62FEA4FD55D7F5C481DB5872 /* [CP] Check Pods Manifest.lock */,
645FF6021E8A1DCE001D5563 /* Sources */,
645FF6031E8A1DCE001D5563 /* Frameworks */,
645FF6041E8A1DCE001D5563 /* Resources */,
645FF63A1E8A20C0001D5563 /* Embed Frameworks */,
7B71ED379BB285C7E36A3BE0 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
dependencies = (
645FF6391E8A20C0001D5563 /* PBXTargetDependency */,
);
name = Demo;
productName = Demo;
Expand Down Expand Up @@ -257,12 +246,6 @@
mainGroup = 645FF5FD1E8A1DCE001D5563;
productRefGroup = 645FF6071E8A1DCE001D5563 /* Products */;
projectDirPath = "";
projectReferences = (
{
ProductGroup = 645FF62A1E8A202F001D5563 /* Products */;
ProjectRef = 645FF6291E8A202F001D5563 /* SwiftRater.xcodeproj */;
},
);
projectRoot = "";
targets = (
645FF6051E8A1DCE001D5563 /* Demo */,
Expand All @@ -271,23 +254,6 @@
};
/* End PBXProject section */

/* Begin PBXReferenceProxy section */
645FF62F1E8A202F001D5563 /* SwiftRater.framework */ = {
isa = PBXReferenceProxy;
fileType = wrapper.framework;
path = SwiftRater.framework;
remoteRef = 645FF62E1E8A202F001D5563 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
645FF6311E8A202F001D5563 /* SwiftRaterTests.xctest */ = {
isa = PBXReferenceProxy;
fileType = wrapper.cfbundle;
path = SwiftRaterTests.xctest;
remoteRef = 645FF6301E8A202F001D5563 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
/* End PBXReferenceProxy section */

/* Begin PBXResourcesBuildPhase section */
645FF6041E8A1DCE001D5563 /* Resources */ = {
isa = PBXResourcesBuildPhase;
Expand All @@ -308,6 +274,45 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
62FEA4FD55D7F5C481DB5872 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Demo-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
7B71ED379BB285C7E36A3BE0 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/SwiftRater/SwiftRater.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftRater.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
645FF6021E8A1DCE001D5563 /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand All @@ -334,11 +339,6 @@
target = 645FF6051E8A1DCE001D5563 /* Demo */;
targetProxy = 645FF61B1E8A1DCE001D5563 /* PBXContainerItemProxy */;
};
645FF6391E8A20C0001D5563 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = SwiftRater;
targetProxy = 645FF6381E8A20C0001D5563 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
Expand Down Expand Up @@ -492,6 +492,7 @@
};
645FF6241E8A1DCE001D5563 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = D8FDD3233067D0E3EF31CEE3 /* Pods-Demo.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
Expand All @@ -510,6 +511,7 @@
};
645FF6251E8A1DCE001D5563 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 44A4A212099F3E57AD17D1F0 /* Pods-Demo.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
Expand Down
10 changes: 10 additions & 0 deletions Demo/Demo.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Demo/Demo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>BuildSystemType</key>
<string>Latest</string>
</dict>
</plist>
6 changes: 6 additions & 0 deletions Demo/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
platform :ios, '9.0'
use_frameworks!

target 'Demo' do
pod 'SwiftRater', :path => '../'
end

0 comments on commit 3263a36

Please sign in to comment.