Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Added support for Carthage #122

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 22 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
xcschememanagement.plist
## Build generated
build/
DerivedData

ScanExample.xcscheme
## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata

WorkspaceSettings.xcsettings
## Other
*.xccheckout
*.moved-aside
*.xcuserstate

UserInterfaceState.xcuserstate
## Obj-C/Swift specific
*.hmap
*.ipa

.DS_Store
## Carthage
Carthage/
457 changes: 457 additions & 0 deletions CardIO.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions CardIO.xcodeproj/project.xcworkspace/contents.xcworkspacedata

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>2B1C9F77-99DE-4503-8091-C66F6D979C55</string>
<key>IDESourceControlProjectName</key>
<string>CardIO</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>C0FD0A04D323FE6C5E94E40E35BE35235DE544EB</key>
<string>github.com:Loot-App/card.io-iOS-SDK.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>CardIO.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>C0FD0A04D323FE6C5E94E40E35BE35235DE544EB</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>github.com:Loot-App/card.io-iOS-SDK.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>C0FD0A04D323FE6C5E94E40E35BE35235DE544EB</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>C0FD0A04D323FE6C5E94E40E35BE35235DE544EB</string>
<key>IDESourceControlWCCName</key>
<string>card.io</string>
</dict>
</array>
</dict>
</plist>
110 changes: 110 additions & 0 deletions CardIO.xcodeproj/xcshareddata/xcschemes/CardIO.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0630"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AFED98E71B4EB00C00AD3B28"
BuildableName = "CardIO.framework"
BlueprintName = "CardIO"
ReferencedContainer = "container:CardIO.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AFED98F21B4EB00C00AD3B28"
BuildableName = "CardIOTests.xctest"
BlueprintName = "CardIOTests"
ReferencedContainer = "container:CardIO.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AFED98F21B4EB00C00AD3B28"
BuildableName = "CardIOTests.xctest"
BlueprintName = "CardIOTests"
ReferencedContainer = "container:CardIO.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AFED98E71B4EB00C00AD3B28"
BuildableName = "CardIO.framework"
BlueprintName = "CardIO"
ReferencedContainer = "container:CardIO.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AFED98E71B4EB00C00AD3B28"
BuildableName = "CardIO.framework"
BlueprintName = "CardIO"
ReferencedContainer = "container:CardIO.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AFED98E71B4EB00C00AD3B28"
BuildableName = "CardIO.framework"
BlueprintName = "CardIO"
ReferencedContainer = "container:CardIO.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
26 changes: 26 additions & 0 deletions CardIO/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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>io.lootapp.$(PRODUCT_NAME:rfc1034identifier)</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>5.0.6</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
40 changes: 40 additions & 0 deletions CardIOTests/CardIOTests.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
//
// CardIOTests.m
// CardIOTests
//
// Created by Kyle McAlpine on 09/07/2015.
// Copyright (c) 2015 Kyle McAlpine. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>

@interface CardIOTests : XCTestCase

@end

@implementation CardIOTests

- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}

- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

- (void)testExample {
// This is an example of a functional test case.
XCTAssert(YES, @"Pass");
}

- (void)testPerformanceExample {
// This is an example of a performance test case.
[self measureBlock:^{
// Put the code you want to measure the time of here.
}];
}

@end
24 changes: 24 additions & 0 deletions CardIOTests/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?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>io.lootapp.$(PRODUCT_NAME:rfc1034identifier)</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>
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,21 @@ The card.io iOS SDK includes header files and a single static library. We'll wal
pod 'CardIO'
```

#### If you use [Carthage](https://github.com/Carthage/Carthage), then add this to your Cartfile:

```ruby
github "card-io/card.io-iOS-SDK" >= 5.0
```

Then `carthage bootstrap` do the usual, _drag .framework into `Linked Frameworks and Libraries`_, for the first build. Then you'll also need to add the libCardIO.a static library (only once, like with the .framework):

1. Got to your target's build phases
2. Click the `+` under "Link Binary With Libraries"
3. Navigate to `Carthage/Build/iOS/CardIO.framework/`
4. Add the `libCardIO.a`

After you've done this you'll need to continue from step 3 in the list below.

##### If you don't use CocoaPods, then:

1. Download the latest version of the SDK.
Expand Down