Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit a86e03d

Browse files
author
Will Anderson
committed
Add React Native library stub
1 parent c721671 commit a86e03d

File tree

7 files changed

+321
-0
lines changed

7 files changed

+321
-0
lines changed

HybridMobileDeploy.android.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Stub of HybridMobileDeploy for Android.
3+
*
4+
* @providesModule HybridMobileDeploy
5+
* @flow
6+
*/
7+
'use strict';
8+
9+
var warning = require('warning');
10+
11+
var HybridMobileDeploy = {
12+
test: function() {
13+
warning("Not yet implemented for Android.");
14+
}
15+
};
16+
17+
module.exports = HybridMobileDeploy;

HybridMobileDeploy.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#import "RCTBridgeModule.h"
2+
3+
@interface HybridMobileDeploy : NSObject <RCTBridgeModule>
4+
5+
@end

HybridMobileDeploy.ios.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* @providesModule HybridMobileDeploy
3+
* @flow
4+
*/
5+
'use strict';
6+
7+
var NativeHybridMobileDeploy = require('NativeModules').HybridMobileDeploy;
8+
var invariant = require('invariant');
9+
10+
/**
11+
* High-level docs for the HybridMobileDeploy iOS API can be written here.
12+
*/
13+
14+
var HybridMobileDeploy = {
15+
test: function() {
16+
NativeHybridMobileDeploy.test();
17+
}
18+
};
19+
20+
module.exports = HybridMobileDeploy;

HybridMobileDeploy.m

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#import "HybridMobileDeploy.h"
2+
3+
@implementation HybridMobileDeploy
4+
5+
RCT_EXPORT_MODULE()
6+
7+
RCT_EXPORT_METHOD(test)
8+
{
9+
// Your implementation here
10+
}
11+
12+
@end
Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
13BE3DEE1AC21097009241FE /* HybridMobileDeploy.m in Sources */ = {isa = PBXBuildFile; fileRef = 13BE3DED1AC21097009241FE /* HybridMobileDeploy.m */; };
11+
/* End PBXBuildFile section */
12+
13+
/* Begin PBXCopyFilesBuildPhase section */
14+
58B511D91A9E6C8500147676 /* 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+
134814201AA4EA6300B7C361 /* libHybridMobileDeploy.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libHybridMobileDeploy.a; sourceTree = BUILT_PRODUCTS_DIR; };
27+
13BE3DEC1AC21097009241FE /* HybridMobileDeploy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HybridMobileDeploy.h; sourceTree = "<group>"; };
28+
13BE3DED1AC21097009241FE /* HybridMobileDeploy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HybridMobileDeploy.m; sourceTree = "<group>"; };
29+
/* End PBXFileReference section */
30+
31+
/* Begin PBXFrameworksBuildPhase section */
32+
58B511D81A9E6C8500147676 /* Frameworks */ = {
33+
isa = PBXFrameworksBuildPhase;
34+
buildActionMask = 2147483647;
35+
files = (
36+
);
37+
runOnlyForDeploymentPostprocessing = 0;
38+
};
39+
/* End PBXFrameworksBuildPhase section */
40+
41+
/* Begin PBXGroup section */
42+
134814211AA4EA7D00B7C361 /* Products */ = {
43+
isa = PBXGroup;
44+
children = (
45+
134814201AA4EA6300B7C361 /* libHybridMobileDeploy.a */,
46+
);
47+
name = Products;
48+
sourceTree = "<group>";
49+
};
50+
58B511D21A9E6C8500147676 = {
51+
isa = PBXGroup;
52+
children = (
53+
13BE3DEC1AC21097009241FE /* HybridMobileDeploy.h */,
54+
13BE3DED1AC21097009241FE /* HybridMobileDeploy.m */,
55+
134814211AA4EA7D00B7C361 /* Products */,
56+
);
57+
sourceTree = "<group>";
58+
};
59+
/* End PBXGroup section */
60+
61+
/* Begin PBXNativeTarget section */
62+
58B511DA1A9E6C8500147676 /* HybridMobileDeploy */ = {
63+
isa = PBXNativeTarget;
64+
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "HybridMobileDeploy" */;
65+
buildPhases = (
66+
58B511D71A9E6C8500147676 /* Sources */,
67+
58B511D81A9E6C8500147676 /* Frameworks */,
68+
58B511D91A9E6C8500147676 /* CopyFiles */,
69+
);
70+
buildRules = (
71+
);
72+
dependencies = (
73+
);
74+
name = HybridMobileDeploy;
75+
productName = RCTDataManager;
76+
productReference = 134814201AA4EA6300B7C361 /* libHybridMobileDeploy.a */;
77+
productType = "com.apple.product-type.library.static";
78+
};
79+
/* End PBXNativeTarget section */
80+
81+
/* Begin PBXProject section */
82+
58B511D31A9E6C8500147676 /* Project object */ = {
83+
isa = PBXProject;
84+
attributes = {
85+
LastUpgradeCheck = 0610;
86+
ORGANIZATIONNAME = Facebook;
87+
TargetAttributes = {
88+
58B511DA1A9E6C8500147676 = {
89+
CreatedOnToolsVersion = 6.1.1;
90+
};
91+
};
92+
};
93+
buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "HybridMobileDeploy" */;
94+
compatibilityVersion = "Xcode 3.2";
95+
developmentRegion = English;
96+
hasScannedForEncodings = 0;
97+
knownRegions = (
98+
en,
99+
);
100+
mainGroup = 58B511D21A9E6C8500147676;
101+
productRefGroup = 58B511D21A9E6C8500147676;
102+
projectDirPath = "";
103+
projectRoot = "";
104+
targets = (
105+
58B511DA1A9E6C8500147676 /* HybridMobileDeploy */,
106+
);
107+
};
108+
/* End PBXProject section */
109+
110+
/* Begin PBXSourcesBuildPhase section */
111+
58B511D71A9E6C8500147676 /* Sources */ = {
112+
isa = PBXSourcesBuildPhase;
113+
buildActionMask = 2147483647;
114+
files = (
115+
13BE3DEE1AC21097009241FE /* HybridMobileDeploy.m in Sources */,
116+
);
117+
runOnlyForDeploymentPostprocessing = 0;
118+
};
119+
/* End PBXSourcesBuildPhase section */
120+
121+
/* Begin XCBuildConfiguration section */
122+
58B511ED1A9E6C8500147676 /* Debug */ = {
123+
isa = XCBuildConfiguration;
124+
buildSettings = {
125+
ALWAYS_SEARCH_USER_PATHS = NO;
126+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
127+
CLANG_CXX_LIBRARY = "libc++";
128+
CLANG_ENABLE_MODULES = YES;
129+
CLANG_ENABLE_OBJC_ARC = YES;
130+
CLANG_WARN_BOOL_CONVERSION = YES;
131+
CLANG_WARN_CONSTANT_CONVERSION = YES;
132+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
133+
CLANG_WARN_EMPTY_BODY = YES;
134+
CLANG_WARN_ENUM_CONVERSION = YES;
135+
CLANG_WARN_INT_CONVERSION = YES;
136+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
137+
CLANG_WARN_UNREACHABLE_CODE = YES;
138+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
139+
COPY_PHASE_STRIP = NO;
140+
ENABLE_STRICT_OBJC_MSGSEND = YES;
141+
GCC_C_LANGUAGE_STANDARD = gnu99;
142+
GCC_DYNAMIC_NO_PIC = NO;
143+
GCC_OPTIMIZATION_LEVEL = 0;
144+
GCC_PREPROCESSOR_DEFINITIONS = (
145+
"DEBUG=1",
146+
"$(inherited)",
147+
);
148+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
149+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
150+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
151+
GCC_WARN_UNDECLARED_SELECTOR = YES;
152+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
153+
GCC_WARN_UNUSED_FUNCTION = YES;
154+
GCC_WARN_UNUSED_VARIABLE = YES;
155+
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
156+
MTL_ENABLE_DEBUG_INFO = YES;
157+
ONLY_ACTIVE_ARCH = YES;
158+
SDKROOT = iphoneos;
159+
};
160+
name = Debug;
161+
};
162+
58B511EE1A9E6C8500147676 /* Release */ = {
163+
isa = XCBuildConfiguration;
164+
buildSettings = {
165+
ALWAYS_SEARCH_USER_PATHS = NO;
166+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
167+
CLANG_CXX_LIBRARY = "libc++";
168+
CLANG_ENABLE_MODULES = YES;
169+
CLANG_ENABLE_OBJC_ARC = YES;
170+
CLANG_WARN_BOOL_CONVERSION = YES;
171+
CLANG_WARN_CONSTANT_CONVERSION = YES;
172+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
173+
CLANG_WARN_EMPTY_BODY = YES;
174+
CLANG_WARN_ENUM_CONVERSION = YES;
175+
CLANG_WARN_INT_CONVERSION = YES;
176+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
177+
CLANG_WARN_UNREACHABLE_CODE = YES;
178+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
179+
COPY_PHASE_STRIP = YES;
180+
ENABLE_NS_ASSERTIONS = NO;
181+
ENABLE_STRICT_OBJC_MSGSEND = YES;
182+
GCC_C_LANGUAGE_STANDARD = gnu99;
183+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
184+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
185+
GCC_WARN_UNDECLARED_SELECTOR = YES;
186+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
187+
GCC_WARN_UNUSED_FUNCTION = YES;
188+
GCC_WARN_UNUSED_VARIABLE = YES;
189+
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
190+
MTL_ENABLE_DEBUG_INFO = NO;
191+
SDKROOT = iphoneos;
192+
VALIDATE_PRODUCT = YES;
193+
};
194+
name = Release;
195+
};
196+
58B511F01A9E6C8500147676 /* Debug */ = {
197+
isa = XCBuildConfiguration;
198+
buildSettings = {
199+
HEADER_SEARCH_PATHS = (
200+
"$(inherited)",
201+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
202+
"$(SRCROOT)/../../React/**",
203+
"$(SRCROOT)/../../node_modules/react-native/React/**",
204+
"$(SRCROOT)/node_modules/react-native/React/**",
205+
);
206+
LIBRARY_SEARCH_PATHS = "$(inherited)";
207+
OTHER_LDFLAGS = "-ObjC";
208+
PRODUCT_NAME = HybridMobileDeploy;
209+
SKIP_INSTALL = YES;
210+
};
211+
name = Debug;
212+
};
213+
58B511F11A9E6C8500147676 /* Release */ = {
214+
isa = XCBuildConfiguration;
215+
buildSettings = {
216+
HEADER_SEARCH_PATHS = (
217+
"$(inherited)",
218+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
219+
"$(SRCROOT)/../../React/**",
220+
);
221+
LIBRARY_SEARCH_PATHS = "$(inherited)";
222+
OTHER_LDFLAGS = "-ObjC";
223+
PRODUCT_NAME = HybridMobileDeploy;
224+
SKIP_INSTALL = YES;
225+
};
226+
name = Release;
227+
};
228+
/* End XCBuildConfiguration section */
229+
230+
/* Begin XCConfigurationList section */
231+
58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "HybridMobileDeploy" */ = {
232+
isa = XCConfigurationList;
233+
buildConfigurations = (
234+
58B511ED1A9E6C8500147676 /* Debug */,
235+
58B511EE1A9E6C8500147676 /* Release */,
236+
);
237+
defaultConfigurationIsVisible = 0;
238+
defaultConfigurationName = Release;
239+
};
240+
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "HybridMobileDeploy" */ = {
241+
isa = XCConfigurationList;
242+
buildConfigurations = (
243+
58B511F01A9E6C8500147676 /* Debug */,
244+
58B511F11A9E6C8500147676 /* Release */,
245+
);
246+
defaultConfigurationIsVisible = 0;
247+
defaultConfigurationName = Release;
248+
};
249+
/* End XCConfigurationList section */
250+
};
251+
rootObject = 58B511D31A9E6C8500147676 /* Project object */;
252+
}

HybridMobileDeploy.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.

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "HybridMobileDeploy",
3+
"version": "0.0.1",
4+
"keywords": "react-native",
5+
"dependencies": {
6+
"react-native": "^0.5.0"
7+
}
8+
}

0 commit comments

Comments
 (0)