Skip to content

Commit 80aeeb3

Browse files
committed
Rewrite using Obj-C
1 parent 0625fa4 commit 80aeeb3

File tree

6 files changed

+1632
-1040
lines changed

6 files changed

+1632
-1040
lines changed
Lines changed: 283 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,283 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 48;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
231CD25B1FD68A17004DD25D /* RNInCallManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 231CD25A1FD68A17004DD25D /* RNInCallManager.m */; };
11+
231CD25C1FD68A17004DD25D /* RNInCallManager.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 231CD2591FD68A17004DD25D /* RNInCallManager.h */; };
12+
/* End PBXBuildFile section */
13+
14+
/* Begin PBXCopyFilesBuildPhase section */
15+
231CD2541FD68A17004DD25D /* CopyFiles */ = {
16+
isa = PBXCopyFilesBuildPhase;
17+
buildActionMask = 2147483647;
18+
dstPath = "include/$(PRODUCT_NAME)";
19+
dstSubfolderSpec = 16;
20+
files = (
21+
231CD25C1FD68A17004DD25D /* RNInCallManager.h in CopyFiles */,
22+
);
23+
runOnlyForDeploymentPostprocessing = 0;
24+
};
25+
/* End PBXCopyFilesBuildPhase section */
26+
27+
/* Begin PBXFileReference section */
28+
231CD2561FD68A17004DD25D /* libRNInCallManager.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNInCallManager.a; sourceTree = BUILT_PRODUCTS_DIR; };
29+
231CD2591FD68A17004DD25D /* RNInCallManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNInCallManager.h; sourceTree = "<group>"; };
30+
231CD25A1FD68A17004DD25D /* RNInCallManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNInCallManager.m; sourceTree = "<group>"; };
31+
/* End PBXFileReference section */
32+
33+
/* Begin PBXFrameworksBuildPhase section */
34+
231CD2531FD68A17004DD25D /* Frameworks */ = {
35+
isa = PBXFrameworksBuildPhase;
36+
buildActionMask = 2147483647;
37+
files = (
38+
);
39+
runOnlyForDeploymentPostprocessing = 0;
40+
};
41+
/* End PBXFrameworksBuildPhase section */
42+
43+
/* Begin PBXGroup section */
44+
231CD24D1FD68A17004DD25D = {
45+
isa = PBXGroup;
46+
children = (
47+
231CD2581FD68A17004DD25D /* RNInCallManager */,
48+
231CD2571FD68A17004DD25D /* Products */,
49+
);
50+
sourceTree = "<group>";
51+
};
52+
231CD2571FD68A17004DD25D /* Products */ = {
53+
isa = PBXGroup;
54+
children = (
55+
231CD2561FD68A17004DD25D /* libRNInCallManager.a */,
56+
);
57+
name = Products;
58+
sourceTree = "<group>";
59+
};
60+
231CD2581FD68A17004DD25D /* RNInCallManager */ = {
61+
isa = PBXGroup;
62+
children = (
63+
231CD2591FD68A17004DD25D /* RNInCallManager.h */,
64+
231CD25A1FD68A17004DD25D /* RNInCallManager.m */,
65+
);
66+
path = RNInCallManager;
67+
sourceTree = "<group>";
68+
};
69+
/* End PBXGroup section */
70+
71+
/* Begin PBXNativeTarget section */
72+
231CD2551FD68A17004DD25D /* RNInCallManager */ = {
73+
isa = PBXNativeTarget;
74+
buildConfigurationList = 231CD25F1FD68A17004DD25D /* Build configuration list for PBXNativeTarget "RNInCallManager" */;
75+
buildPhases = (
76+
231CD2521FD68A17004DD25D /* Sources */,
77+
231CD2531FD68A17004DD25D /* Frameworks */,
78+
231CD2541FD68A17004DD25D /* CopyFiles */,
79+
);
80+
buildRules = (
81+
);
82+
dependencies = (
83+
);
84+
name = RNInCallManager;
85+
productName = RNInCallManager;
86+
productReference = 231CD2561FD68A17004DD25D /* libRNInCallManager.a */;
87+
productType = "com.apple.product-type.library.static";
88+
};
89+
/* End PBXNativeTarget section */
90+
91+
/* Begin PBXProject section */
92+
231CD24E1FD68A17004DD25D /* Project object */ = {
93+
isa = PBXProject;
94+
attributes = {
95+
LastUpgradeCheck = 0910;
96+
ORGANIZATIONNAME = zxcpoiu;
97+
TargetAttributes = {
98+
231CD2551FD68A17004DD25D = {
99+
CreatedOnToolsVersion = 9.1;
100+
ProvisioningStyle = Automatic;
101+
};
102+
};
103+
};
104+
buildConfigurationList = 231CD2511FD68A17004DD25D /* Build configuration list for PBXProject "RNInCallManager" */;
105+
compatibilityVersion = "Xcode 8.0";
106+
developmentRegion = en;
107+
hasScannedForEncodings = 0;
108+
knownRegions = (
109+
en,
110+
);
111+
mainGroup = 231CD24D1FD68A17004DD25D;
112+
productRefGroup = 231CD2571FD68A17004DD25D /* Products */;
113+
projectDirPath = "";
114+
projectRoot = "";
115+
targets = (
116+
231CD2551FD68A17004DD25D /* RNInCallManager */,
117+
);
118+
};
119+
/* End PBXProject section */
120+
121+
/* Begin PBXSourcesBuildPhase section */
122+
231CD2521FD68A17004DD25D /* Sources */ = {
123+
isa = PBXSourcesBuildPhase;
124+
buildActionMask = 2147483647;
125+
files = (
126+
231CD25B1FD68A17004DD25D /* RNInCallManager.m in Sources */,
127+
);
128+
runOnlyForDeploymentPostprocessing = 0;
129+
};
130+
/* End PBXSourcesBuildPhase section */
131+
132+
/* Begin XCBuildConfiguration section */
133+
231CD25D1FD68A17004DD25D /* Debug */ = {
134+
isa = XCBuildConfiguration;
135+
buildSettings = {
136+
ALWAYS_SEARCH_USER_PATHS = NO;
137+
CLANG_ANALYZER_NONNULL = YES;
138+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
139+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
140+
CLANG_CXX_LIBRARY = "libc++";
141+
CLANG_ENABLE_MODULES = YES;
142+
CLANG_ENABLE_OBJC_ARC = YES;
143+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
144+
CLANG_WARN_BOOL_CONVERSION = YES;
145+
CLANG_WARN_COMMA = YES;
146+
CLANG_WARN_CONSTANT_CONVERSION = YES;
147+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
148+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
149+
CLANG_WARN_EMPTY_BODY = YES;
150+
CLANG_WARN_ENUM_CONVERSION = YES;
151+
CLANG_WARN_INFINITE_RECURSION = YES;
152+
CLANG_WARN_INT_CONVERSION = YES;
153+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
154+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
155+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
156+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
157+
CLANG_WARN_STRICT_PROTOTYPES = YES;
158+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
159+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
160+
CLANG_WARN_UNREACHABLE_CODE = YES;
161+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
162+
CODE_SIGN_IDENTITY = "iPhone Developer";
163+
COPY_PHASE_STRIP = NO;
164+
DEBUG_INFORMATION_FORMAT = dwarf;
165+
ENABLE_STRICT_OBJC_MSGSEND = YES;
166+
ENABLE_TESTABILITY = YES;
167+
GCC_C_LANGUAGE_STANDARD = gnu11;
168+
GCC_DYNAMIC_NO_PIC = NO;
169+
GCC_NO_COMMON_BLOCKS = YES;
170+
GCC_OPTIMIZATION_LEVEL = 0;
171+
GCC_PREPROCESSOR_DEFINITIONS = (
172+
"DEBUG=1",
173+
"$(inherited)",
174+
);
175+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
176+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
177+
GCC_WARN_UNDECLARED_SELECTOR = YES;
178+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
179+
GCC_WARN_UNUSED_FUNCTION = YES;
180+
GCC_WARN_UNUSED_VARIABLE = YES;
181+
IPHONEOS_DEPLOYMENT_TARGET = 11.1;
182+
MTL_ENABLE_DEBUG_INFO = YES;
183+
ONLY_ACTIVE_ARCH = YES;
184+
SDKROOT = iphoneos;
185+
};
186+
name = Debug;
187+
};
188+
231CD25E1FD68A17004DD25D /* Release */ = {
189+
isa = XCBuildConfiguration;
190+
buildSettings = {
191+
ALWAYS_SEARCH_USER_PATHS = NO;
192+
CLANG_ANALYZER_NONNULL = YES;
193+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
194+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
195+
CLANG_CXX_LIBRARY = "libc++";
196+
CLANG_ENABLE_MODULES = YES;
197+
CLANG_ENABLE_OBJC_ARC = YES;
198+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
199+
CLANG_WARN_BOOL_CONVERSION = YES;
200+
CLANG_WARN_COMMA = YES;
201+
CLANG_WARN_CONSTANT_CONVERSION = YES;
202+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
203+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
204+
CLANG_WARN_EMPTY_BODY = YES;
205+
CLANG_WARN_ENUM_CONVERSION = YES;
206+
CLANG_WARN_INFINITE_RECURSION = YES;
207+
CLANG_WARN_INT_CONVERSION = YES;
208+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
209+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
210+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
211+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
212+
CLANG_WARN_STRICT_PROTOTYPES = YES;
213+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
214+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
215+
CLANG_WARN_UNREACHABLE_CODE = YES;
216+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
217+
CODE_SIGN_IDENTITY = "iPhone Developer";
218+
COPY_PHASE_STRIP = NO;
219+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
220+
ENABLE_NS_ASSERTIONS = NO;
221+
ENABLE_STRICT_OBJC_MSGSEND = YES;
222+
GCC_C_LANGUAGE_STANDARD = gnu11;
223+
GCC_NO_COMMON_BLOCKS = YES;
224+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
225+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
226+
GCC_WARN_UNDECLARED_SELECTOR = YES;
227+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
228+
GCC_WARN_UNUSED_FUNCTION = YES;
229+
GCC_WARN_UNUSED_VARIABLE = YES;
230+
IPHONEOS_DEPLOYMENT_TARGET = 11.1;
231+
MTL_ENABLE_DEBUG_INFO = NO;
232+
SDKROOT = iphoneos;
233+
VALIDATE_PRODUCT = YES;
234+
};
235+
name = Release;
236+
};
237+
231CD2601FD68A17004DD25D /* Debug */ = {
238+
isa = XCBuildConfiguration;
239+
buildSettings = {
240+
CODE_SIGN_STYLE = Automatic;
241+
OTHER_LDFLAGS = "-ObjC";
242+
PRODUCT_NAME = "$(TARGET_NAME)";
243+
SKIP_INSTALL = YES;
244+
TARGETED_DEVICE_FAMILY = "1,2";
245+
};
246+
name = Debug;
247+
};
248+
231CD2611FD68A17004DD25D /* Release */ = {
249+
isa = XCBuildConfiguration;
250+
buildSettings = {
251+
CODE_SIGN_STYLE = Automatic;
252+
OTHER_LDFLAGS = "-ObjC";
253+
PRODUCT_NAME = "$(TARGET_NAME)";
254+
SKIP_INSTALL = YES;
255+
TARGETED_DEVICE_FAMILY = "1,2";
256+
};
257+
name = Release;
258+
};
259+
/* End XCBuildConfiguration section */
260+
261+
/* Begin XCConfigurationList section */
262+
231CD2511FD68A17004DD25D /* Build configuration list for PBXProject "RNInCallManager" */ = {
263+
isa = XCConfigurationList;
264+
buildConfigurations = (
265+
231CD25D1FD68A17004DD25D /* Debug */,
266+
231CD25E1FD68A17004DD25D /* Release */,
267+
);
268+
defaultConfigurationIsVisible = 0;
269+
defaultConfigurationName = Release;
270+
};
271+
231CD25F1FD68A17004DD25D /* Build configuration list for PBXNativeTarget "RNInCallManager" */ = {
272+
isa = XCConfigurationList;
273+
buildConfigurations = (
274+
231CD2601FD68A17004DD25D /* Debug */,
275+
231CD2611FD68A17004DD25D /* Release */,
276+
);
277+
defaultConfigurationIsVisible = 0;
278+
defaultConfigurationName = Release;
279+
};
280+
/* End XCConfigurationList section */
281+
};
282+
rootObject = 231CD24E1FD68A17004DD25D /* Project object */;
283+
}

ios/RNInCallManager/RNInCallManager-Bridging-Header.h

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// RNInCallManager.h
3+
// RNInCallManager
4+
//
5+
// Created by Ian Yu-Hsun Lin (@ianlin) on 05/12/2017.
6+
// Copyright © 2017 zxcpoiu. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
#import <AVFoundation/AVFoundation.h>
11+
12+
#import <React/RCTBridgeModule.h>
13+
#import <React/RCTEventEmitter.h>
14+
15+
@interface RNInCallManager : RCTEventEmitter <RCTBridgeModule, AVAudioPlayerDelegate>
16+
17+
@end

0 commit comments

Comments
 (0)