Skip to content

Commit ad9296c

Browse files
author
spoeck
committed
feat: ios lib is now in NativeModules
1 parent 2ce3c5f commit ad9296c

23 files changed

Lines changed: 1396 additions & 9215 deletions

File tree

ApiAi.xcodeproj/project.pbxproj

Lines changed: 372 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,372 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
CDD7BF841B2D5126006FDA75 /* libApiAi.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CDD7BF781B2D5125006FDA75 /* libApiAi.a */; };
11+
DBCB5CDE1B46E62D005CB38B /* ApiAi.m in Sources */ = {isa = PBXBuildFile; fileRef = DBCB5CDD1B46E62D005CB38B /* ApiAi.m */; };
12+
/* End PBXBuildFile section */
13+
14+
/* Begin PBXContainerItemProxy section */
15+
CDD7BF851B2D5126006FDA75 /* PBXContainerItemProxy */ = {
16+
isa = PBXContainerItemProxy;
17+
containerPortal = CDD7BF701B2D5125006FDA75 /* Project object */;
18+
proxyType = 1;
19+
remoteGlobalIDString = CDD7BF771B2D5125006FDA75;
20+
remoteInfo = RNI18n;
21+
};
22+
/* End PBXContainerItemProxy section */
23+
24+
/* Begin PBXCopyFilesBuildPhase section */
25+
CDD7BF761B2D5125006FDA75 /* CopyFiles */ = {
26+
isa = PBXCopyFilesBuildPhase;
27+
buildActionMask = 2147483647;
28+
dstPath = "include/$(PRODUCT_NAME)";
29+
dstSubfolderSpec = 16;
30+
files = (
31+
);
32+
runOnlyForDeploymentPostprocessing = 0;
33+
};
34+
/* End PBXCopyFilesBuildPhase section */
35+
36+
/* Begin PBXFileReference section */
37+
CDD7BF781B2D5125006FDA75 /* libApiAi.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libApiAi.a; sourceTree = BUILT_PRODUCTS_DIR; };
38+
CDD7BF831B2D5126006FDA75 /* ApiAiTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ApiAiTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
39+
DBCB5CDC1B46E62D005CB38B /* ApiAi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ApiAi.h; sourceTree = "<group>"; };
40+
DBCB5CDD1B46E62D005CB38B /* ApiAi.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ApiAi.m; sourceTree = "<group>"; };
41+
/* End PBXFileReference section */
42+
43+
/* Begin PBXFrameworksBuildPhase section */
44+
CDD7BF751B2D5125006FDA75 /* Frameworks */ = {
45+
isa = PBXFrameworksBuildPhase;
46+
buildActionMask = 2147483647;
47+
files = (
48+
);
49+
runOnlyForDeploymentPostprocessing = 0;
50+
};
51+
CDD7BF801B2D5126006FDA75 /* Frameworks */ = {
52+
isa = PBXFrameworksBuildPhase;
53+
buildActionMask = 2147483647;
54+
files = (
55+
CDD7BF841B2D5126006FDA75 /* libApiAi.a in Frameworks */,
56+
);
57+
runOnlyForDeploymentPostprocessing = 0;
58+
};
59+
/* End PBXFrameworksBuildPhase section */
60+
61+
/* Begin PBXGroup section */
62+
CDD7BF6F1B2D5125006FDA75 = {
63+
isa = PBXGroup;
64+
children = (
65+
DBCB5CDB1B46E62D005CB38B /* ApiAi */,
66+
CDD7BF791B2D5125006FDA75 /* Products */,
67+
);
68+
sourceTree = "<group>";
69+
};
70+
CDD7BF791B2D5125006FDA75 /* Products */ = {
71+
isa = PBXGroup;
72+
children = (
73+
CDD7BF781B2D5125006FDA75 /* libApiAi.a */,
74+
CDD7BF831B2D5126006FDA75 /* ApiAiTests.xctest */,
75+
);
76+
name = Products;
77+
sourceTree = "<group>";
78+
};
79+
DBCB5CDB1B46E62D005CB38B /* ApiAi */ = {
80+
isa = PBXGroup;
81+
children = (
82+
DBCB5CDC1B46E62D005CB38B /* ApiAi.h */,
83+
DBCB5CDD1B46E62D005CB38B /* ApiAi.m */,
84+
);
85+
name = ApiAi;
86+
path = ApiAi;
87+
sourceTree = "<group>";
88+
};
89+
/* End PBXGroup section */
90+
91+
/* Begin PBXNativeTarget section */
92+
CDD7BF771B2D5125006FDA75 /* ApiAi */ = {
93+
isa = PBXNativeTarget;
94+
buildConfigurationList = CDD7BF8C1B2D5126006FDA75 /* Build configuration list for PBXNativeTarget "ApiAi" */;
95+
buildPhases = (
96+
CDD7BF741B2D5125006FDA75 /* Sources */,
97+
CDD7BF751B2D5125006FDA75 /* Frameworks */,
98+
CDD7BF761B2D5125006FDA75 /* CopyFiles */,
99+
);
100+
buildRules = (
101+
);
102+
dependencies = (
103+
);
104+
name = ApiAi;
105+
productName = RNI18n;
106+
productReference = CDD7BF781B2D5125006FDA75 /* libApiAi.a */;
107+
productType = "com.apple.product-type.library.static";
108+
};
109+
CDD7BF821B2D5126006FDA75 /* ApiAiTests */ = {
110+
isa = PBXNativeTarget;
111+
buildConfigurationList = CDD7BF8F1B2D5126006FDA75 /* Build configuration list for PBXNativeTarget "ApiAiTests" */;
112+
buildPhases = (
113+
CDD7BF7F1B2D5126006FDA75 /* Sources */,
114+
CDD7BF801B2D5126006FDA75 /* Frameworks */,
115+
CDD7BF811B2D5126006FDA75 /* Resources */,
116+
);
117+
buildRules = (
118+
);
119+
dependencies = (
120+
CDD7BF861B2D5126006FDA75 /* PBXTargetDependency */,
121+
);
122+
name = ApiAiTests;
123+
productName = RNI18nTests;
124+
productReference = CDD7BF831B2D5126006FDA75 /* ApiAiTests.xctest */;
125+
productType = "com.apple.product-type.bundle.unit-test";
126+
};
127+
/* End PBXNativeTarget section */
128+
129+
/* Begin PBXProject section */
130+
CDD7BF701B2D5125006FDA75 /* Project object */ = {
131+
isa = PBXProject;
132+
attributes = {
133+
LastUpgradeCheck = 0630;
134+
ORGANIZATIONNAME = innFactory;
135+
TargetAttributes = {
136+
CDD7BF771B2D5125006FDA75 = {
137+
CreatedOnToolsVersion = 6.3.2;
138+
};
139+
CDD7BF821B2D5126006FDA75 = {
140+
CreatedOnToolsVersion = 6.3.2;
141+
};
142+
};
143+
};
144+
buildConfigurationList = CDD7BF731B2D5125006FDA75 /* Build configuration list for PBXProject "ApiAi" */;
145+
compatibilityVersion = "Xcode 3.2";
146+
developmentRegion = English;
147+
hasScannedForEncodings = 0;
148+
knownRegions = (
149+
en,
150+
);
151+
mainGroup = CDD7BF6F1B2D5125006FDA75;
152+
productRefGroup = CDD7BF791B2D5125006FDA75 /* Products */;
153+
projectDirPath = "";
154+
projectRoot = "";
155+
targets = (
156+
CDD7BF771B2D5125006FDA75 /* ApiAi */,
157+
CDD7BF821B2D5126006FDA75 /* ApiAiTests */,
158+
);
159+
};
160+
/* End PBXProject section */
161+
162+
/* Begin PBXResourcesBuildPhase section */
163+
CDD7BF811B2D5126006FDA75 /* Resources */ = {
164+
isa = PBXResourcesBuildPhase;
165+
buildActionMask = 2147483647;
166+
files = (
167+
);
168+
runOnlyForDeploymentPostprocessing = 0;
169+
};
170+
/* End PBXResourcesBuildPhase section */
171+
172+
/* Begin PBXSourcesBuildPhase section */
173+
CDD7BF741B2D5125006FDA75 /* Sources */ = {
174+
isa = PBXSourcesBuildPhase;
175+
buildActionMask = 2147483647;
176+
files = (
177+
DBCB5CDE1B46E62D005CB38B /* ApiAi.m in Sources */,
178+
);
179+
runOnlyForDeploymentPostprocessing = 0;
180+
};
181+
CDD7BF7F1B2D5126006FDA75 /* Sources */ = {
182+
isa = PBXSourcesBuildPhase;
183+
buildActionMask = 2147483647;
184+
files = (
185+
);
186+
runOnlyForDeploymentPostprocessing = 0;
187+
};
188+
/* End PBXSourcesBuildPhase section */
189+
190+
/* Begin PBXTargetDependency section */
191+
CDD7BF861B2D5126006FDA75 /* PBXTargetDependency */ = {
192+
isa = PBXTargetDependency;
193+
target = CDD7BF771B2D5125006FDA75 /* ApiAi */;
194+
targetProxy = CDD7BF851B2D5126006FDA75 /* PBXContainerItemProxy */;
195+
};
196+
/* End PBXTargetDependency section */
197+
198+
/* Begin XCBuildConfiguration section */
199+
CDD7BF8A1B2D5126006FDA75 /* Debug */ = {
200+
isa = XCBuildConfiguration;
201+
buildSettings = {
202+
ALWAYS_SEARCH_USER_PATHS = NO;
203+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
204+
CLANG_CXX_LIBRARY = "libc++";
205+
CLANG_ENABLE_MODULES = YES;
206+
CLANG_ENABLE_OBJC_ARC = YES;
207+
CLANG_WARN_BOOL_CONVERSION = YES;
208+
CLANG_WARN_CONSTANT_CONVERSION = YES;
209+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
210+
CLANG_WARN_EMPTY_BODY = YES;
211+
CLANG_WARN_ENUM_CONVERSION = YES;
212+
CLANG_WARN_INT_CONVERSION = YES;
213+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
214+
CLANG_WARN_UNREACHABLE_CODE = YES;
215+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
216+
COPY_PHASE_STRIP = NO;
217+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
218+
ENABLE_STRICT_OBJC_MSGSEND = YES;
219+
GCC_C_LANGUAGE_STANDARD = gnu99;
220+
GCC_DYNAMIC_NO_PIC = NO;
221+
GCC_NO_COMMON_BLOCKS = YES;
222+
GCC_OPTIMIZATION_LEVEL = 0;
223+
GCC_PREPROCESSOR_DEFINITIONS = (
224+
"DEBUG=1",
225+
"$(inherited)",
226+
);
227+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
228+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
229+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
230+
GCC_WARN_UNDECLARED_SELECTOR = YES;
231+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
232+
GCC_WARN_UNUSED_FUNCTION = YES;
233+
GCC_WARN_UNUSED_VARIABLE = YES;
234+
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
235+
MTL_ENABLE_DEBUG_INFO = YES;
236+
ONLY_ACTIVE_ARCH = YES;
237+
SDKROOT = iphoneos;
238+
};
239+
name = Debug;
240+
};
241+
CDD7BF8B1B2D5126006FDA75 /* Release */ = {
242+
isa = XCBuildConfiguration;
243+
buildSettings = {
244+
ALWAYS_SEARCH_USER_PATHS = NO;
245+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
246+
CLANG_CXX_LIBRARY = "libc++";
247+
CLANG_ENABLE_MODULES = YES;
248+
CLANG_ENABLE_OBJC_ARC = YES;
249+
CLANG_WARN_BOOL_CONVERSION = YES;
250+
CLANG_WARN_CONSTANT_CONVERSION = YES;
251+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
252+
CLANG_WARN_EMPTY_BODY = YES;
253+
CLANG_WARN_ENUM_CONVERSION = YES;
254+
CLANG_WARN_INT_CONVERSION = YES;
255+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
256+
CLANG_WARN_UNREACHABLE_CODE = YES;
257+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
258+
COPY_PHASE_STRIP = NO;
259+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
260+
ENABLE_NS_ASSERTIONS = NO;
261+
ENABLE_STRICT_OBJC_MSGSEND = YES;
262+
GCC_C_LANGUAGE_STANDARD = gnu99;
263+
GCC_NO_COMMON_BLOCKS = YES;
264+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
265+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
266+
GCC_WARN_UNDECLARED_SELECTOR = YES;
267+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
268+
GCC_WARN_UNUSED_FUNCTION = YES;
269+
GCC_WARN_UNUSED_VARIABLE = YES;
270+
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
271+
MTL_ENABLE_DEBUG_INFO = NO;
272+
SDKROOT = iphoneos;
273+
VALIDATE_PRODUCT = YES;
274+
};
275+
name = Release;
276+
};
277+
CDD7BF8D1B2D5126006FDA75 /* Debug */ = {
278+
isa = XCBuildConfiguration;
279+
buildSettings = {
280+
HEADER_SEARCH_PATHS = (
281+
"$(inherited)",
282+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
283+
"$(SRCROOT)/node_modules/react-native/React/**",
284+
"$(SRCROOT)/../react-native/React/**",
285+
);
286+
OTHER_LDFLAGS = "-ObjC";
287+
PRODUCT_NAME = ApiAi;
288+
SKIP_INSTALL = YES;
289+
};
290+
name = Debug;
291+
};
292+
CDD7BF8E1B2D5126006FDA75 /* Release */ = {
293+
isa = XCBuildConfiguration;
294+
buildSettings = {
295+
HEADER_SEARCH_PATHS = (
296+
"$(inherited)",
297+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
298+
"$(SRCROOT)/node_modules/react-native/React/**",
299+
"$(SRCROOT)/../react-native/React/**",
300+
);
301+
OTHER_LDFLAGS = "-ObjC";
302+
PRODUCT_NAME = ApiAi;
303+
SKIP_INSTALL = YES;
304+
};
305+
name = Release;
306+
};
307+
CDD7BF901B2D5126006FDA75 /* Debug */ = {
308+
isa = XCBuildConfiguration;
309+
buildSettings = {
310+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
311+
FRAMEWORK_SEARCH_PATHS = (
312+
"$(SDKROOT)/Developer/Library/Frameworks",
313+
"$(inherited)",
314+
);
315+
GCC_PREPROCESSOR_DEFINITIONS = (
316+
"DEBUG=1",
317+
"$(inherited)",
318+
);
319+
INFOPLIST_FILE = RNI18nTests/Info.plist;
320+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
321+
PRODUCT_NAME = ApiAiTests;
322+
};
323+
name = Debug;
324+
};
325+
CDD7BF911B2D5126006FDA75 /* Release */ = {
326+
isa = XCBuildConfiguration;
327+
buildSettings = {
328+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
329+
FRAMEWORK_SEARCH_PATHS = (
330+
"$(SDKROOT)/Developer/Library/Frameworks",
331+
"$(inherited)",
332+
);
333+
INFOPLIST_FILE = RNI18nTests/Info.plist;
334+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
335+
PRODUCT_NAME = ApiAiTests;
336+
};
337+
name = Release;
338+
};
339+
/* End XCBuildConfiguration section */
340+
341+
/* Begin XCConfigurationList section */
342+
CDD7BF731B2D5125006FDA75 /* Build configuration list for PBXProject "ApiAi" */ = {
343+
isa = XCConfigurationList;
344+
buildConfigurations = (
345+
CDD7BF8A1B2D5126006FDA75 /* Debug */,
346+
CDD7BF8B1B2D5126006FDA75 /* Release */,
347+
);
348+
defaultConfigurationIsVisible = 0;
349+
defaultConfigurationName = Release;
350+
};
351+
CDD7BF8C1B2D5126006FDA75 /* Build configuration list for PBXNativeTarget "ApiAi" */ = {
352+
isa = XCConfigurationList;
353+
buildConfigurations = (
354+
CDD7BF8D1B2D5126006FDA75 /* Debug */,
355+
CDD7BF8E1B2D5126006FDA75 /* Release */,
356+
);
357+
defaultConfigurationIsVisible = 0;
358+
defaultConfigurationName = Release;
359+
};
360+
CDD7BF8F1B2D5126006FDA75 /* Build configuration list for PBXNativeTarget "ApiAiTests" */ = {
361+
isa = XCConfigurationList;
362+
buildConfigurations = (
363+
CDD7BF901B2D5126006FDA75 /* Debug */,
364+
CDD7BF911B2D5126006FDA75 /* Release */,
365+
);
366+
defaultConfigurationIsVisible = 0;
367+
defaultConfigurationName = Release;
368+
};
369+
/* End XCConfigurationList section */
370+
};
371+
rootObject = CDD7BF701B2D5125006FDA75 /* Project object */;
372+
}

ApiAi/ApiAi.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
3+
#import <Foundation/Foundation.h>
4+
#if __has_include("RCTBridgeModule.h")
5+
#import "RCTBridgeModule.h"
6+
#else
7+
#import <React/RCTBridgeModule.h>
8+
#endif
9+
#if __has_include("RCTLog.h")
10+
#import "RCTLog.h"
11+
#else
12+
#import <React/RCTLog.h>
13+
#endif
14+
15+
@interface ApiAi: NSObject <RCTBridgeModule>
16+
@end

0 commit comments

Comments
 (0)