Commit c718e3dc authored by Drew's avatar Drew

iOS port; see #1

parent e0c979a0
Pipeline #595 failed with stages
...@@ -16,3 +16,4 @@ DerivedData ...@@ -16,3 +16,4 @@ DerivedData
*.xcuserstate *.xcuserstate
Carthage/Build Carthage/Build
Carthage/Checkouts Carthage/Checkouts
*xcuserdata*
...@@ -21,13 +21,13 @@ xcs: ...@@ -21,13 +21,13 @@ xcs:
tags: tags:
- xc7 - xc7
archive: archive-mac:
type: package type: package
script: script:
- "CJ=/Applications/CaveJohnson.app/Contents/MacOS/CaveJohnsonCLI" - "CJ=/Applications/CaveJohnson.app/Contents/MacOS/CaveJohnsonCLI"
- "CARTHAGE=/usr/local/bin/carthage" - "CARTHAGE=/usr/local/bin/carthage"
- "$CJ setVersion --infoPlistPath $FRAMEWORK_NAME/Info.plist --version ${CI_BUILD_ID}" - "$CJ setVersion --infoPlistPath $FRAMEWORK_NAME/Info.plist --version ${CI_BUILD_ID}"
- "$CARTHAGE build --no-skip-current" - "$CARTHAGE build --no-skip-current --platform osx"
- "$CARTHAGE archive $FRAMEWORK_NAME" - "$CARTHAGE archive $FRAMEWORK_NAME"
- "ZIPFILE=$($CJ getNameVersionString --infoPlistPath $FRAMEWORK_NAME/Info.plist --productName $FRAMEWORK_NAME)-dev-${CI_BUILD_ID}.zip" - "ZIPFILE=$($CJ getNameVersionString --infoPlistPath $FRAMEWORK_NAME/Info.plist --productName $FRAMEWORK_NAME)-dev-${CI_BUILD_ID}.zip"
...@@ -39,4 +39,25 @@ archive: ...@@ -39,4 +39,25 @@ archive:
artifacts: artifacts:
paths: paths:
- /tmp/SynchronousRequestKit/ - /tmp/SynchronousRequestKit/
\ No newline at end of file
archive-ios:
type: package
script:
- "CJ=/Applications/CaveJohnson.app/Contents/MacOS/CaveJohnsonCLI"
- "CARTHAGE=/usr/local/bin/carthage"
- "$CJ setVersion --infoPlistPath $FRAMEWORK_NAME/Info.plist --version ${CI_BUILD_ID}"
- "$CARTHAGE build --no-skip-current --platform ios"
- "$CARTHAGE archive $FRAMEWORK_NAME"
- "ZIPFILE=$($CJ getNameVersionString --infoPlistPath $FRAMEWORK_NAME/Info.plist --productName $FRAMEWORK_NAME)-dev-${CI_BUILD_ID}.zip"
- "rm -rf /tmp/$FRAMEWORK_NAME/"
- "mkdir -p /tmp/$FRAMEWORK_NAME"
- "mv $FRAMEWORK_NAME.framework.zip /tmp/$FRAMEWORK_NAME/$ZIPFILE"
only:
- master
artifacts:
paths:
- /tmp/SynchronousRequestKit/
<?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>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
//
// SynchronousRequestKit-iOS.h
// SynchronousRequestKit-iOS
//
// Created by Drew Crawford on 12/16/15.
// Copyright © 2015 DrewCrawfordApps. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for SynchronousRequestKit-iOS.
FOUNDATION_EXPORT double SynchronousRequestKit_iOSVersionNumber;
//! Project version string for SynchronousRequestKit-iOS.
FOUNDATION_EXPORT const unsigned char SynchronousRequestKit_iOSVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <SynchronousRequestKit_iOS/PublicHeader.h>
<?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>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
//
// SynchronousRequestKit_iOSTests.swift
// SynchronousRequestKit-iOSTests
//
// Created by Drew Crawford on 12/16/15.
// Copyright © 2015 DrewCrawfordApps. All rights reserved.
//
import XCTest
@testable import SynchronousRequestKit
class SynchronousRequestKit_iOSTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
func testPerformanceExample() {
// This is an example of a performance test case.
self.measureBlock {
// Put the code you want to measure the time of here.
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0720"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3A9E705B1C21540E00C9430F"
BuildableName = "SynchronousRequestKit-iOS.framework"
BlueprintName = "SynchronousRequestKit-iOS"
ReferencedContainer = "container:SynchronousRequestKit.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3A9E70641C21540F00C9430F"
BuildableName = "SynchronousRequestKit-iOSTests.xctest"
BlueprintName = "SynchronousRequestKit-iOSTests"
ReferencedContainer = "container:SynchronousRequestKit.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3A9E705B1C21540E00C9430F"
BuildableName = "SynchronousRequestKit-iOS.framework"
BlueprintName = "SynchronousRequestKit-iOS"
ReferencedContainer = "container:SynchronousRequestKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3A9E705B1C21540E00C9430F"
BuildableName = "SynchronousRequestKit-iOS.framework"
BlueprintName = "SynchronousRequestKit-iOS"
ReferencedContainer = "container:SynchronousRequestKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3A9E705B1C21540E00C9430F"
BuildableName = "SynchronousRequestKit-iOS.framework"
BlueprintName = "SynchronousRequestKit-iOS"
ReferencedContainer = "container:SynchronousRequestKit.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
<?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>SchemeUserState</key>
<dict>
<key>SynchronousRequestKit.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>3A0D8F7F1BB1299100A8ED0C</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>3A0D8F891BB1299100A8ED0C</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment