Skip to content
This repository was archived by the owner on Jan 24, 2020. It is now read-only.

Commit 67b0ae5

Browse files
7ynk3rjoeferraro
authored andcommitted
rnpm support for iOS added (#25)
rnpm for both Android and iOS
1 parent 8a76c2d commit 67b0ae5

File tree

6 files changed

+389
-8
lines changed

6 files changed

+389
-8
lines changed

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@ Cookie manager for react native.
44

55
### Installation
66

7-
#### IOS
8-
1. `npm install react-native-cookies`
9-
2. In the XCode's "Project navigator", right click on project name folder ➜ `Add Files to <...>`
10-
- Ensure `Copy items if needed` and `Create groups` are checked
11-
3. Go to `node_modules``react-native-cookies` ➜ add `RNCookieManagerIOS` folder
12-
4. Compile and have some cookies
13-
14-
#### android (only tested on react-native <= 0.18.1)
157
1. `npm install react-native-cookies`
168
2. `rnpm link react-native-cookies` - (run `npm install -g rnpm` if required)
179
3. Om nom nom nom cookies.
Lines changed: 280 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,280 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
1BD726021CF77DD1005DBD79 /* RNCookieManagerIOS.m in Sources */ = {isa = PBXBuildFile; fileRef = 1BD726011CF77DD1005DBD79 /* RNCookieManagerIOS.m */; };
11+
/* End PBXBuildFile section */
12+
13+
/* Begin PBXCopyFilesBuildPhase section */
14+
1BD725D81CF77A8B005DBD79 /* CopyFiles */ = {
15+
isa = PBXCopyFilesBuildPhase;
16+
buildActionMask = 2147483647;
17+
dstPath = "include/$(PRODUCT_NAME)";
18+
dstSubfolderSpec = 16;
19+
files = (
20+
);
21+
runOnlyForDeploymentPostprocessing = 0;
22+
};
23+
/* End PBXCopyFilesBuildPhase section */
24+
25+
/* Begin PBXFileReference section */
26+
1BD725DA1CF77A8B005DBD79 /* libRNCookieManagerIOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNCookieManagerIOS.a; sourceTree = BUILT_PRODUCTS_DIR; };
27+
1BD726001CF77DD1005DBD79 /* RNCookieManagerIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNCookieManagerIOS.h; sourceTree = "<group>"; };
28+
1BD726011CF77DD1005DBD79 /* RNCookieManagerIOS.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNCookieManagerIOS.m; sourceTree = "<group>"; };
29+
/* End PBXFileReference section */
30+
31+
/* Begin PBXFrameworksBuildPhase section */
32+
1BD725D71CF77A8B005DBD79 /* Frameworks */ = {
33+
isa = PBXFrameworksBuildPhase;
34+
buildActionMask = 2147483647;
35+
files = (
36+
);
37+
runOnlyForDeploymentPostprocessing = 0;
38+
};
39+
/* End PBXFrameworksBuildPhase section */
40+
41+
/* Begin PBXGroup section */
42+
1BD725CD1CF7795C005DBD79 = {
43+
isa = PBXGroup;
44+
children = (
45+
1BD725FF1CF77DD1005DBD79 /* RNCookieManagerIOS */,
46+
1BD725DB1CF77A8B005DBD79 /* Products */,
47+
);
48+
sourceTree = "<group>";
49+
};
50+
1BD725DB1CF77A8B005DBD79 /* Products */ = {
51+
isa = PBXGroup;
52+
children = (
53+
1BD725DA1CF77A8B005DBD79 /* libRNCookieManagerIOS.a */,
54+
);
55+
name = Products;
56+
sourceTree = "<group>";
57+
};
58+
1BD725FF1CF77DD1005DBD79 /* RNCookieManagerIOS */ = {
59+
isa = PBXGroup;
60+
children = (
61+
1BD726001CF77DD1005DBD79 /* RNCookieManagerIOS.h */,
62+
1BD726011CF77DD1005DBD79 /* RNCookieManagerIOS.m */,
63+
);
64+
path = RNCookieManagerIOS;
65+
sourceTree = "<group>";
66+
};
67+
/* End PBXGroup section */
68+
69+
/* Begin PBXNativeTarget section */
70+
1BD725D91CF77A8B005DBD79 /* RNCookieManagerIOS */ = {
71+
isa = PBXNativeTarget;
72+
buildConfigurationList = 1BD725E31CF77A8B005DBD79 /* Build configuration list for PBXNativeTarget "RNCookieManagerIOS" */;
73+
buildPhases = (
74+
1BD725D61CF77A8B005DBD79 /* Sources */,
75+
1BD725D71CF77A8B005DBD79 /* Frameworks */,
76+
1BD725D81CF77A8B005DBD79 /* CopyFiles */,
77+
);
78+
buildRules = (
79+
);
80+
dependencies = (
81+
);
82+
name = RNCookieManagerIOS;
83+
productName = RNCookieManagerIOS;
84+
productReference = 1BD725DA1CF77A8B005DBD79 /* libRNCookieManagerIOS.a */;
85+
productType = "com.apple.product-type.library.static";
86+
};
87+
/* End PBXNativeTarget section */
88+
89+
/* Begin PBXProject section */
90+
1BD725CE1CF7795C005DBD79 /* Project object */ = {
91+
isa = PBXProject;
92+
attributes = {
93+
LastUpgradeCheck = 0730;
94+
TargetAttributes = {
95+
1BD725D91CF77A8B005DBD79 = {
96+
CreatedOnToolsVersion = 7.3.1;
97+
};
98+
};
99+
};
100+
buildConfigurationList = 1BD725D11CF7795C005DBD79 /* Build configuration list for PBXProject "RNCookieManagerIOS" */;
101+
compatibilityVersion = "Xcode 3.2";
102+
developmentRegion = English;
103+
hasScannedForEncodings = 0;
104+
knownRegions = (
105+
en,
106+
);
107+
mainGroup = 1BD725CD1CF7795C005DBD79;
108+
productRefGroup = 1BD725DB1CF77A8B005DBD79 /* Products */;
109+
projectDirPath = "";
110+
projectRoot = "";
111+
targets = (
112+
1BD725D91CF77A8B005DBD79 /* RNCookieManagerIOS */,
113+
);
114+
};
115+
/* End PBXProject section */
116+
117+
/* Begin PBXSourcesBuildPhase section */
118+
1BD725D61CF77A8B005DBD79 /* Sources */ = {
119+
isa = PBXSourcesBuildPhase;
120+
buildActionMask = 2147483647;
121+
files = (
122+
1BD726021CF77DD1005DBD79 /* RNCookieManagerIOS.m in Sources */,
123+
);
124+
runOnlyForDeploymentPostprocessing = 0;
125+
};
126+
/* End PBXSourcesBuildPhase section */
127+
128+
/* Begin XCBuildConfiguration section */
129+
1BD725D21CF7795C005DBD79 /* Debug */ = {
130+
isa = XCBuildConfiguration;
131+
buildSettings = {
132+
};
133+
name = Debug;
134+
};
135+
1BD725D31CF7795C005DBD79 /* Release */ = {
136+
isa = XCBuildConfiguration;
137+
buildSettings = {
138+
};
139+
name = Release;
140+
};
141+
1BD725E11CF77A8B005DBD79 /* Debug */ = {
142+
isa = XCBuildConfiguration;
143+
buildSettings = {
144+
ALWAYS_SEARCH_USER_PATHS = NO;
145+
CLANG_ANALYZER_NONNULL = YES;
146+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
147+
CLANG_CXX_LIBRARY = "libc++";
148+
CLANG_ENABLE_MODULES = YES;
149+
CLANG_ENABLE_OBJC_ARC = YES;
150+
CLANG_WARN_BOOL_CONVERSION = YES;
151+
CLANG_WARN_CONSTANT_CONVERSION = YES;
152+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
153+
CLANG_WARN_EMPTY_BODY = YES;
154+
CLANG_WARN_ENUM_CONVERSION = YES;
155+
CLANG_WARN_INT_CONVERSION = YES;
156+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
157+
CLANG_WARN_UNREACHABLE_CODE = YES;
158+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
159+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
160+
COPY_PHASE_STRIP = NO;
161+
DEBUG_INFORMATION_FORMAT = dwarf;
162+
ENABLE_STRICT_OBJC_MSGSEND = YES;
163+
ENABLE_TESTABILITY = YES;
164+
FRAMEWORK_SEARCH_PATHS = (
165+
"$(SRCROOT)/../../React/**",
166+
"$(inherited)",
167+
"$(SRCROOT)/node_modules/react-native/React/**",
168+
"$(SRCROOT)/../react-native/React/**",
169+
"$(SRCROOT)/../../../node_modules/react-native/React/**",
170+
);
171+
GCC_C_LANGUAGE_STANDARD = gnu99;
172+
GCC_DYNAMIC_NO_PIC = NO;
173+
GCC_NO_COMMON_BLOCKS = YES;
174+
GCC_OPTIMIZATION_LEVEL = 0;
175+
GCC_PREPROCESSOR_DEFINITIONS = (
176+
"DEBUG=1",
177+
"$(inherited)",
178+
);
179+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
180+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
181+
GCC_WARN_UNDECLARED_SELECTOR = YES;
182+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
183+
GCC_WARN_UNUSED_FUNCTION = YES;
184+
GCC_WARN_UNUSED_VARIABLE = YES;
185+
HEADER_SEARCH_PATHS = (
186+
"$(SRCROOT)/../../React/**",
187+
"$(inherited)",
188+
"$(SRCROOT)/node_modules/react-native/React/**",
189+
"$(SRCROOT)/../react-native/React/**",
190+
"$(SRCROOT)/../../../node_modules/react-native/React/**",
191+
);
192+
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
193+
MTL_ENABLE_DEBUG_INFO = YES;
194+
ONLY_ACTIVE_ARCH = YES;
195+
OTHER_LDFLAGS = "-ObjC";
196+
PRODUCT_NAME = "$(TARGET_NAME)";
197+
SDKROOT = iphoneos;
198+
SKIP_INSTALL = YES;
199+
};
200+
name = Debug;
201+
};
202+
1BD725E21CF77A8B005DBD79 /* Release */ = {
203+
isa = XCBuildConfiguration;
204+
buildSettings = {
205+
ALWAYS_SEARCH_USER_PATHS = NO;
206+
CLANG_ANALYZER_NONNULL = YES;
207+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
208+
CLANG_CXX_LIBRARY = "libc++";
209+
CLANG_ENABLE_MODULES = YES;
210+
CLANG_ENABLE_OBJC_ARC = YES;
211+
CLANG_WARN_BOOL_CONVERSION = YES;
212+
CLANG_WARN_CONSTANT_CONVERSION = YES;
213+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
214+
CLANG_WARN_EMPTY_BODY = YES;
215+
CLANG_WARN_ENUM_CONVERSION = YES;
216+
CLANG_WARN_INT_CONVERSION = YES;
217+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
218+
CLANG_WARN_UNREACHABLE_CODE = YES;
219+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
220+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
221+
COPY_PHASE_STRIP = NO;
222+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
223+
ENABLE_NS_ASSERTIONS = NO;
224+
ENABLE_STRICT_OBJC_MSGSEND = YES;
225+
FRAMEWORK_SEARCH_PATHS = (
226+
"$(SRCROOT)/../../React/**",
227+
"$(inherited)",
228+
"$(SRCROOT)/node_modules/react-native/React/**",
229+
"$(SRCROOT)/../react-native/React/**",
230+
"$(SRCROOT)/../../../node_modules/react-native/React/**",
231+
);
232+
GCC_C_LANGUAGE_STANDARD = gnu99;
233+
GCC_NO_COMMON_BLOCKS = YES;
234+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
235+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
236+
GCC_WARN_UNDECLARED_SELECTOR = YES;
237+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
238+
GCC_WARN_UNUSED_FUNCTION = YES;
239+
GCC_WARN_UNUSED_VARIABLE = YES;
240+
HEADER_SEARCH_PATHS = (
241+
"$(SRCROOT)/../../React/**",
242+
"$(inherited)",
243+
"$(SRCROOT)/node_modules/react-native/React/**",
244+
"$(SRCROOT)/../react-native/React/**",
245+
"$(SRCROOT)/../../../node_modules/react-native/React/**",
246+
);
247+
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
248+
MTL_ENABLE_DEBUG_INFO = NO;
249+
OTHER_LDFLAGS = "-ObjC";
250+
PRODUCT_NAME = "$(TARGET_NAME)";
251+
SDKROOT = iphoneos;
252+
SKIP_INSTALL = YES;
253+
VALIDATE_PRODUCT = YES;
254+
};
255+
name = Release;
256+
};
257+
/* End XCBuildConfiguration section */
258+
259+
/* Begin XCConfigurationList section */
260+
1BD725D11CF7795C005DBD79 /* Build configuration list for PBXProject "RNCookieManagerIOS" */ = {
261+
isa = XCConfigurationList;
262+
buildConfigurations = (
263+
1BD725D21CF7795C005DBD79 /* Debug */,
264+
1BD725D31CF7795C005DBD79 /* Release */,
265+
);
266+
defaultConfigurationIsVisible = 0;
267+
defaultConfigurationName = Release;
268+
};
269+
1BD725E31CF77A8B005DBD79 /* Build configuration list for PBXNativeTarget "RNCookieManagerIOS" */ = {
270+
isa = XCConfigurationList;
271+
buildConfigurations = (
272+
1BD725E11CF77A8B005DBD79 /* Debug */,
273+
1BD725E21CF77A8B005DBD79 /* Release */,
274+
);
275+
defaultConfigurationIsVisible = 0;
276+
};
277+
/* End XCConfigurationList section */
278+
};
279+
rootObject = 1BD725CE1CF7795C005DBD79 /* Project object */;
280+
}

RNCookieManagerIOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0730"
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 = "1BD725D91CF77A8B005DBD79"
18+
BuildableName = "libRNCookieManagerIOS.a"
19+
BlueprintName = "RNCookieManagerIOS"
20+
ReferencedContainer = "container:RNCookieManagerIOS.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
<AdditionalOptions>
33+
</AdditionalOptions>
34+
</TestAction>
35+
<LaunchAction
36+
buildConfiguration = "Debug"
37+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
38+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
39+
launchStyle = "0"
40+
useCustomWorkingDirectory = "NO"
41+
ignoresPersistentStateOnLaunch = "NO"
42+
debugDocumentVersioning = "YES"
43+
debugServiceExtension = "internal"
44+
allowLocationSimulation = "YES">
45+
<MacroExpansion>
46+
<BuildableReference
47+
BuildableIdentifier = "primary"
48+
BlueprintIdentifier = "1BD725D91CF77A8B005DBD79"
49+
BuildableName = "libRNCookieManagerIOS.a"
50+
BlueprintName = "RNCookieManagerIOS"
51+
ReferencedContainer = "container:RNCookieManagerIOS.xcodeproj">
52+
</BuildableReference>
53+
</MacroExpansion>
54+
<AdditionalOptions>
55+
</AdditionalOptions>
56+
</LaunchAction>
57+
<ProfileAction
58+
buildConfiguration = "Release"
59+
shouldUseLaunchSchemeArgsEnv = "YES"
60+
savedToolIdentifier = ""
61+
useCustomWorkingDirectory = "NO"
62+
debugDocumentVersioning = "YES">
63+
<MacroExpansion>
64+
<BuildableReference
65+
BuildableIdentifier = "primary"
66+
BlueprintIdentifier = "1BD725D91CF77A8B005DBD79"
67+
BuildableName = "libRNCookieManagerIOS.a"
68+
BlueprintName = "RNCookieManagerIOS"
69+
ReferencedContainer = "container:RNCookieManagerIOS.xcodeproj">
70+
</BuildableReference>
71+
</MacroExpansion>
72+
</ProfileAction>
73+
<AnalyzeAction
74+
buildConfiguration = "Debug">
75+
</AnalyzeAction>
76+
<ArchiveAction
77+
buildConfiguration = "Release"
78+
revealArchiveInOrganizer = "YES">
79+
</ArchiveAction>
80+
</Scheme>

0 commit comments

Comments
 (0)