Skip to content

Commit

Permalink
Add shared code framework target
Browse files Browse the repository at this point in the history
  • Loading branch information
atomicbird committed Nov 13, 2014
1 parent 2d99aa6 commit 2dc85b5
Show file tree
Hide file tree
Showing 11 changed files with 553 additions and 9 deletions.
294 changes: 292 additions & 2 deletions DemoNotes.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@
ReferencedContainer = "container:DemoNotes.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEDE71F01A156423007CD3D8"
BuildableName = "DemoSharedCodeTests.xctest"
BlueprintName = "DemoSharedCodeTests"
ReferencedContainer = "container:DemoNotes.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
Expand All @@ -52,6 +66,16 @@
ReferencedContainer = "container:DemoNotes.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEDE71F01A156423007CD3D8"
BuildableName = "DemoSharedCodeTests.xctest"
BlueprintName = "DemoSharedCodeTests"
ReferencedContainer = "container:DemoNotes.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0610"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEDE71E61A156423007CD3D8"
BuildableName = "DemoSharedCode.framework"
BlueprintName = "DemoSharedCode"
ReferencedContainer = "container:DemoNotes.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
</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 = "EEDE71E61A156423007CD3D8"
BuildableName = "DemoSharedCode.framework"
BlueprintName = "DemoSharedCode"
ReferencedContainer = "container:DemoNotes.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEDE71E61A156423007CD3D8"
BuildableName = "DemoSharedCode.framework"
BlueprintName = "DemoSharedCode"
ReferencedContainer = "container:DemoNotes.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,20 @@
ReferencedContainer = "container:DemoNotes.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEDE71F01A156423007CD3D8"
BuildableName = "DemoSharedCodeTests.xctest"
BlueprintName = "DemoSharedCodeTests"
ReferencedContainer = "container:DemoNotes.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
Expand All @@ -43,13 +57,23 @@
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEDE71F01A156423007CD3D8"
BuildableName = "DemoSharedCodeTests.xctest"
BlueprintName = "DemoSharedCodeTests"
ReferencedContainer = "container:DemoNotes.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEDE71CE1A1560EC007CD3D8"
BuildableName = "DemoToday.appex"
BlueprintName = "DemoToday"
BlueprintIdentifier = "EEDE719B1A141B9A007CD3D8"
BuildableName = "DemoNotes.app"
BlueprintName = "DemoNotes"
ReferencedContainer = "container:DemoNotes.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand All @@ -64,15 +88,19 @@
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<IDERemoteRunnable
RemotePath = "/Today-View"
BundleIdentifier = "/Today-View">
</IDERemoteRunnable>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEDE719B1A141B9A007CD3D8"
BuildableName = "DemoNotes.app"
BlueprintName = "DemoNotes"
ReferencedContainer = "container:DemoNotes.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>DemoSharedCode.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>2</integer>
</dict>
<key>DemoToday.xcscheme</key>
<dict>
<key>orderHint</key>
Expand All @@ -32,6 +37,16 @@
<key>primary</key>
<true/>
</dict>
<key>EEDE71E61A156423007CD3D8</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>EEDE71F01A156423007CD3D8</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
2 changes: 1 addition & 1 deletion DemoNotes/DetailViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <UIKit/UIKit.h>
#import "DemoNote.h"
#import <DemoSharedCode/DemoSharedCode.h>

@interface DetailViewController : UIViewController

Expand Down
2 changes: 1 addition & 1 deletion DemoNotes/MasterViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import "MasterViewController.h"
#import "DetailViewController.h"
#import "DemoNote.h"
#import <DemoSharedCode/DemoSharedCode.h>

NSString *const kDemoNoteFilename = @"notes.bin";

Expand Down
20 changes: 20 additions & 0 deletions DemoSharedCode/DemoSharedCode.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// DemoSharedCode.h
// DemoSharedCode
//
// Created by Tom Harrington on 11/13/14.
// Copyright (c) 2014 Atomic Bird LLC. All rights reserved.
//

#import <UIKit/UIKit.h>

//! Project version number for DemoSharedCode.
FOUNDATION_EXPORT double DemoSharedCodeVersionNumber;

//! Project version string for DemoSharedCode.
FOUNDATION_EXPORT const unsigned char DemoSharedCodeVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <DemoSharedCode/PublicHeader.h>


#import <DemoSharedCode/DemoNote.h>
26 changes: 26 additions & 0 deletions DemoSharedCode/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>com.atomicbird.$(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>1.0</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 DemoSharedCodeTests/DemoSharedCodeTests.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
//
// DemoSharedCodeTests.m
// DemoSharedCodeTests
//
// Created by Tom Harrington on 11/13/14.
// Copyright (c) 2014 Atomic Bird LLC. All rights reserved.
//

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

@interface DemoSharedCodeTests : XCTestCase

@end

@implementation DemoSharedCodeTests

- (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 DemoSharedCodeTests/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>com.atomicbird.$(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>

0 comments on commit 2dc85b5

Please sign in to comment.