Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

Commit 0bf9ce7

Browse files
committed
Recreate iOS target as a framework
1 parent 2a2a9e6 commit 0bf9ce7

File tree

6 files changed

+426
-49
lines changed

6 files changed

+426
-49
lines changed

ReactiveViewModel.xcodeproj/project.pbxproj

Lines changed: 293 additions & 34 deletions
Large diffs are not rendered by default.

ReactiveViewModel.xcodeproj/xcshareddata/xcschemes/ReactiveViewModel Mac.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4141
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
4242
shouldUseLaunchSchemeArgsEnv = "YES"
43-
buildConfiguration = "Test">
43+
buildConfiguration = "Debug">
4444
<Testables>
4545
<TestableReference
4646
skipped = "NO">
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0610"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "D0C7C3A619FEFB520069B5C0"
18+
BuildableName = "ReactiveViewModel iOS.framework"
19+
BlueprintName = "ReactiveViewModel iOS"
20+
ReferencedContainer = "container:ReactiveViewModel.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "NO"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "D0C7C3B019FEFB520069B5C0"
32+
BuildableName = "ReactiveViewModel iOS Tests.xctest"
33+
BlueprintName = "ReactiveViewModel iOS Tests"
34+
ReferencedContainer = "container:ReactiveViewModel.xcodeproj">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
41+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
42+
shouldUseLaunchSchemeArgsEnv = "YES"
43+
buildConfiguration = "Debug">
44+
<Testables>
45+
<TestableReference
46+
skipped = "NO">
47+
<BuildableReference
48+
BuildableIdentifier = "primary"
49+
BlueprintIdentifier = "D0C7C3B019FEFB520069B5C0"
50+
BuildableName = "ReactiveViewModel iOS Tests.xctest"
51+
BlueprintName = "ReactiveViewModel iOS Tests"
52+
ReferencedContainer = "container:ReactiveViewModel.xcodeproj">
53+
</BuildableReference>
54+
</TestableReference>
55+
</Testables>
56+
<MacroExpansion>
57+
<BuildableReference
58+
BuildableIdentifier = "primary"
59+
BlueprintIdentifier = "D0C7C3A619FEFB520069B5C0"
60+
BuildableName = "ReactiveViewModel iOS.framework"
61+
BlueprintName = "ReactiveViewModel iOS"
62+
ReferencedContainer = "container:ReactiveViewModel.xcodeproj">
63+
</BuildableReference>
64+
</MacroExpansion>
65+
</TestAction>
66+
<LaunchAction
67+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
68+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
69+
launchStyle = "0"
70+
useCustomWorkingDirectory = "NO"
71+
buildConfiguration = "Debug"
72+
ignoresPersistentStateOnLaunch = "NO"
73+
debugDocumentVersioning = "YES"
74+
allowLocationSimulation = "YES">
75+
<MacroExpansion>
76+
<BuildableReference
77+
BuildableIdentifier = "primary"
78+
BlueprintIdentifier = "D0C7C3A619FEFB520069B5C0"
79+
BuildableName = "ReactiveViewModel iOS.framework"
80+
BlueprintName = "ReactiveViewModel iOS"
81+
ReferencedContainer = "container:ReactiveViewModel.xcodeproj">
82+
</BuildableReference>
83+
</MacroExpansion>
84+
<AdditionalOptions>
85+
</AdditionalOptions>
86+
</LaunchAction>
87+
<ProfileAction
88+
shouldUseLaunchSchemeArgsEnv = "YES"
89+
savedToolIdentifier = ""
90+
useCustomWorkingDirectory = "NO"
91+
buildConfiguration = "Profile"
92+
debugDocumentVersioning = "YES">
93+
<MacroExpansion>
94+
<BuildableReference
95+
BuildableIdentifier = "primary"
96+
BlueprintIdentifier = "D0C7C3A619FEFB520069B5C0"
97+
BuildableName = "ReactiveViewModel iOS.framework"
98+
BlueprintName = "ReactiveViewModel iOS"
99+
ReferencedContainer = "container:ReactiveViewModel.xcodeproj">
100+
</BuildableReference>
101+
</MacroExpansion>
102+
</ProfileAction>
103+
<AnalyzeAction
104+
buildConfiguration = "Debug">
105+
</AnalyzeAction>
106+
<ArchiveAction
107+
buildConfiguration = "Release"
108+
revealArchiveInOrganizer = "YES">
109+
</ArchiveAction>
110+
</Scheme>

ReactiveViewModel/ReactiveViewModel-Info.plist renamed to ReactiveViewModel/Info.plist

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,23 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleDevelopmentRegion</key>
6-
<string>English</string>
6+
<string>en</string>
77
<key>CFBundleExecutable</key>
8-
<string>${EXECUTABLE_NAME}</string>
9-
<key>CFBundleIconFile</key>
10-
<string></string>
8+
<string>$(EXECUTABLE_NAME)</string>
119
<key>CFBundleIdentifier</key>
12-
<string>com.github.${PRODUCT_NAME:rfc1034identifier}</string>
10+
<string>org.reactivecocoa.$(PRODUCT_NAME:rfc1034identifier)</string>
1311
<key>CFBundleInfoDictionaryVersion</key>
1412
<string>6.0</string>
1513
<key>CFBundleName</key>
16-
<string>${PRODUCT_NAME}</string>
14+
<string>$(PRODUCT_NAME)</string>
1715
<key>CFBundlePackageType</key>
1816
<string>FMWK</string>
1917
<key>CFBundleShortVersionString</key>
2018
<string>1.0</string>
2119
<key>CFBundleSignature</key>
2220
<string>????</string>
2321
<key>CFBundleVersion</key>
24-
<string>1</string>
25-
<key>NSHumanReadableCopyright</key>
26-
<string>Copyright © 2013 GitHub. All rights reserved.</string>
22+
<string>$(CURRENT_PROJECT_VERSION)</string>
2723
<key>NSPrincipalClass</key>
2824
<string></string>
2925
</dict>

ReactiveViewModel/ReactiveViewModel.h

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,18 @@
22
// ReactiveViewModel.h
33
// ReactiveViewModel
44
//
5-
// Created by Justin Spahr-Summers on 2013-06-30.
6-
// Copyright (c) 2013 GitHub. All rights reserved.
5+
// Created by Justin Spahr-Summers on 2014-10-27.
6+
// Copyright (c) 2014 GitHub. All rights reserved.
77
//
88

9-
#import "RVMViewModel.h"
9+
#import <Foundation/Foundation.h>
10+
11+
//! Project version number for ReactiveViewModel.
12+
FOUNDATION_EXPORT double ReactiveViewModelVersionNumber;
13+
14+
//! Project version string for ReactiveViewModel.
15+
FOUNDATION_EXPORT const unsigned char ReactiveViewModelVersionString[];
16+
17+
// In this header, you should import all the public headers of your framework using statements like #import <ReactiveViewModel/PublicHeader.h>
18+
19+
#import <ReactiveViewModel/RVMViewModel.h>

ReactiveViewModelTests/ReactiveViewModelTests-Info.plist renamed to ReactiveViewModelTests/Info.plist

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
<key>CFBundleDevelopmentRegion</key>
66
<string>en</string>
77
<key>CFBundleExecutable</key>
8-
<string>${EXECUTABLE_NAME}</string>
8+
<string>$(EXECUTABLE_NAME)</string>
99
<key>CFBundleIdentifier</key>
10-
<string>com.github.${PRODUCT_NAME:rfc1034identifier}</string>
10+
<string>org.reactivecocoa.$(PRODUCT_NAME:rfc1034identifier)</string>
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
1315
<key>CFBundlePackageType</key>
1416
<string>BNDL</string>
1517
<key>CFBundleShortVersionString</key>

0 commit comments

Comments
 (0)