Skip to content

Commit

Permalink
update Podfile, podspec, .travis.yml, project
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiar committed Jan 9, 2019
1 parent bc99bc2 commit 0bf1945
Show file tree
Hide file tree
Showing 10 changed files with 486 additions and 9 deletions.
26 changes: 26 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
codecov:
notify:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "70...100"
ignore:
- Example/*
- ExampleTests/*
- Pods/*
status:
project: yes
patch: yes
changes: no

parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

comment: false
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: objective-c
osx_image: xcode10
language: swift
os: osx
osx_image: xcode10.1
env: SWIFT_SNAPSHOT=4.2

cache: cocoapods
Expand All @@ -12,6 +13,7 @@ env:
- XCODE_WORKSPACE=./Example.xcworkspace
matrix:
- SCHEME="Example"
- SCHEMETest="ExampleTests"

before_install:
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
Expand All @@ -21,9 +23,10 @@ before_install:

script:
- set -o pipefail
- xcodebuild -workspace "$XCODE_WORKSPACE" -scheme "$SCHEME" -configuration Debug clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c
- xcodebuild -workspace "$XCODE_WORKSPACE" -scheme "$SCHEME" -configuration Release clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c
- xcodebuild clean test -workspace "$XCODE_WORKSPACE" -scheme "$SCHEME" -destination 'platform=iOS Simulator,name=iPhone 7,OS=12.1' -configuration Release ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES | xcpretty -c;
- xcodebuild clean test -workspace "$XCODE_WORKSPACE" -scheme "$SCHEMETest" -destination 'platform=iOS Simulator,name=iPhone 7,OS=12.1' -configuration Release ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES | xcpretty -c;
- pod lib lint --allow-warnings

after_success:
- sleep 3
- sleep 3
- bash <(curl -s https://codecov.io/bash)
181 changes: 181 additions & 0 deletions Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
807A36EE21C3B6D1004675BC /* bg_working.png in Resources */ = {isa = PBXBuildFile; fileRef = 807A36ED21C3B6D0004675BC /* bg_working.png */; };
807A36F021C3B7E3004675BC /* bg_programming.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 807A36EF21C3B7E3004675BC /* bg_programming.jpg */; };
807A36F221C3B8D0004675BC /* bg_thinking.png in Resources */ = {isa = PBXBuildFile; fileRef = 807A36F121C3B8D0004675BC /* bg_thinking.png */; };
80A8697721E4EA5200A773CB /* ExampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80A8697621E4EA5200A773CB /* ExampleTests.swift */; };
80B6C3ED21C1FAB5007C958F /* ContentViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80B6C3EC21C1FAB5007C958F /* ContentViewController.swift */; };
80B6C3F021C20052007C958F /* ContentViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80B6C3EE21C20052007C958F /* ContentViewCell.swift */; };
80B6C3F121C20052007C958F /* ContentViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 80B6C3EF21C20052007C958F /* ContentViewCell.xib */; };
Expand All @@ -30,9 +31,21 @@
80B6C3FE21C29EEA007C958F /* DataManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80B6C3FD21C29EEA007C958F /* DataManager.swift */; };
80B6C40521C2A600007C958F /* bg_computer.png in Resources */ = {isa = PBXBuildFile; fileRef = 80B6C40421C2A600007C958F /* bg_computer.png */; };
80F3D6B821D789D6005D649A /* BadgeType+Random.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80F3D6B721D789D6005D649A /* BadgeType+Random.swift */; };
D64AC4F1E62901A0FFBEDEB2 /* Pods_ExampleTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8347D796F78F8EF653440011 /* Pods_ExampleTests.framework */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
80A8697921E4EA5200A773CB /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 804CC4BC21C14AC4007EEBF8 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 804CC4C321C14AC4007EEBF8;
remoteInfo = Example;
};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
5956D0197ACA18E5B7068DF9 /* Pods-ExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ExampleTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ExampleTests/Pods-ExampleTests.debug.xcconfig"; sourceTree = "<group>"; };
7251EE6B9777E71A49CA5C4A /* Pods_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
804CC4C421C14AC4007EEBF8 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
804CC4C721C14AC4007EEBF8 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
Expand All @@ -50,6 +63,9 @@
807A36ED21C3B6D0004675BC /* bg_working.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = bg_working.png; sourceTree = "<group>"; };
807A36EF21C3B7E3004675BC /* bg_programming.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = bg_programming.jpg; sourceTree = "<group>"; };
807A36F121C3B8D0004675BC /* bg_thinking.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = bg_thinking.png; sourceTree = "<group>"; };
80A8697421E4EA5100A773CB /* ExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
80A8697621E4EA5200A773CB /* ExampleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExampleTests.swift; sourceTree = "<group>"; };
80A8697821E4EA5200A773CB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
80B6C3EC21C1FAB5007C958F /* ContentViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentViewController.swift; sourceTree = "<group>"; };
80B6C3EE21C20052007C958F /* ContentViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentViewCell.swift; sourceTree = "<group>"; };
80B6C3EF21C20052007C958F /* ContentViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ContentViewCell.xib; sourceTree = "<group>"; };
Expand All @@ -58,8 +74,10 @@
80B6C3FD21C29EEA007C958F /* DataManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataManager.swift; sourceTree = "<group>"; };
80B6C40421C2A600007C958F /* bg_computer.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = bg_computer.png; sourceTree = "<group>"; };
80F3D6B721D789D6005D649A /* BadgeType+Random.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "BadgeType+Random.swift"; sourceTree = "<group>"; };
8347D796F78F8EF653440011 /* Pods_ExampleTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ExampleTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
9BFDF05ED108B36DDF0BD851 /* Pods-Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.release.xcconfig"; sourceTree = "<group>"; };
DFC82FD65CC44CDF1D54158C /* Pods-Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.debug.xcconfig"; sourceTree = "<group>"; };
EE8FDCEB76AF4FD09D2868F3 /* Pods-ExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ExampleTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-ExampleTests/Pods-ExampleTests.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -71,13 +89,22 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
80A8697121E4EA5100A773CB /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
D64AC4F1E62901A0FFBEDEB2 /* Pods_ExampleTests.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
4CC2A0032078530097AFEEDC /* Frameworks */ = {
isa = PBXGroup;
children = (
7251EE6B9777E71A49CA5C4A /* Pods_Example.framework */,
8347D796F78F8EF653440011 /* Pods_ExampleTests.framework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand All @@ -86,6 +113,7 @@
isa = PBXGroup;
children = (
804CC4C621C14AC4007EEBF8 /* Example */,
80A8697521E4EA5200A773CB /* ExampleTests */,
804CC4C521C14AC4007EEBF8 /* Products */,
87BAC7BA82E5BF6BD03B70AF /* Pods */,
4CC2A0032078530097AFEEDC /* Frameworks */,
Expand All @@ -96,6 +124,7 @@
isa = PBXGroup;
children = (
804CC4C421C14AC4007EEBF8 /* Example.app */,
80A8697421E4EA5100A773CB /* ExampleTests.xctest */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -133,6 +162,15 @@
path = LanguageCenter;
sourceTree = "<group>";
};
80A8697521E4EA5200A773CB /* ExampleTests */ = {
isa = PBXGroup;
children = (
80A8697621E4EA5200A773CB /* ExampleTests.swift */,
80A8697821E4EA5200A773CB /* Info.plist */,
);
path = ExampleTests;
sourceTree = "<group>";
};
80B6C3E821C1FA16007C958F /* Home */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -215,6 +253,8 @@
children = (
DFC82FD65CC44CDF1D54158C /* Pods-Example.debug.xcconfig */,
9BFDF05ED108B36DDF0BD851 /* Pods-Example.release.xcconfig */,
5956D0197ACA18E5B7068DF9 /* Pods-ExampleTests.debug.xcconfig */,
EE8FDCEB76AF4FD09D2868F3 /* Pods-ExampleTests.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
Expand All @@ -241,6 +281,26 @@
productReference = 804CC4C421C14AC4007EEBF8 /* Example.app */;
productType = "com.apple.product-type.application";
};
80A8697321E4EA5100A773CB /* ExampleTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 80A8697D21E4EA5200A773CB /* Build configuration list for PBXNativeTarget "ExampleTests" */;
buildPhases = (
506337A7873748BA334D9880 /* [CP] Check Pods Manifest.lock */,
80A8697021E4EA5100A773CB /* Sources */,
80A8697121E4EA5100A773CB /* Frameworks */,
80A8697221E4EA5100A773CB /* Resources */,
810352EEBDF400F57B203C11 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
dependencies = (
80A8697A21E4EA5200A773CB /* PBXTargetDependency */,
);
name = ExampleTests;
productName = ExampleTests;
productReference = 80A8697421E4EA5100A773CB /* ExampleTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
Expand All @@ -254,6 +314,10 @@
804CC4C321C14AC4007EEBF8 = {
CreatedOnToolsVersion = 10.1;
};
80A8697321E4EA5100A773CB = {
CreatedOnToolsVersion = 10.1;
TestTargetID = 804CC4C321C14AC4007EEBF8;
};
};
};
buildConfigurationList = 804CC4BF21C14AC4007EEBF8 /* Build configuration list for PBXProject "Example" */;
Expand All @@ -270,6 +334,7 @@
projectRoot = "";
targets = (
804CC4C321C14AC4007EEBF8 /* Example */,
80A8697321E4EA5100A773CB /* ExampleTests */,
);
};
/* End PBXProject section */
Expand All @@ -290,6 +355,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
80A8697221E4EA5100A773CB /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
Expand All @@ -311,6 +383,50 @@
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;
};
506337A7873748BA334D9880 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-ExampleTests-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;
};
810352EEBDF400F57B203C11 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-ExampleTests/Pods-ExampleTests-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/SnapKit/SnapKit.framework",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
);
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SnapKit.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ExampleTests/Pods-ExampleTests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
895F0F4E8FAE731E88DDD527 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -357,8 +473,24 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
80A8697021E4EA5100A773CB /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
80A8697721E4EA5200A773CB /* ExampleTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
80A8697A21E4EA5200A773CB /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 804CC4C321C14AC4007EEBF8 /* Example */;
targetProxy = 80A8697921E4EA5200A773CB /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
804CC4D021C14AC6007EEBF8 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
Expand Down Expand Up @@ -527,6 +659,46 @@
};
name = Release;
};
80A8697B21E4EA5200A773CB /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 5956D0197ACA18E5B7068DF9 /* Pods-ExampleTests.debug.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = ExampleTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = me.jiar.ExampleTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example.app/Example";
};
name = Debug;
};
80A8697C21E4EA5200A773CB /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = EE8FDCEB76AF4FD09D2868F3 /* Pods-ExampleTests.release.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = ExampleTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = me.jiar.ExampleTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example.app/Example";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand All @@ -548,6 +720,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
80A8697D21E4EA5200A773CB /* Build configuration list for PBXNativeTarget "ExampleTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
80A8697B21E4EA5200A773CB /* Debug */,
80A8697C21E4EA5200A773CB /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 804CC4BC21C14AC4007EEBF8 /* Project object */;
Expand Down
Loading

0 comments on commit 0bf1945

Please sign in to comment.