Skip to content

Commit bb1fa5d

Browse files
committed
support ios
1 parent 7d9b43f commit bb1fa5d

37 files changed

+3953
-1
lines changed

.gitignore

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

ios/RNSpeechIFlytek.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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>RNSpeechIFlytek.xcscheme</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>3</integer>
11+
</dict>
12+
</dict>
13+
</dict>
14+
</plist>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// SpeechConstantModule.h
3+
// RNSpeechIFlytek
4+
//
5+
// Created by 张棚贺 on 2018/1/5.
6+
// Copyright © 2018年 张棚贺. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
#import <React/RCTBridgeModule.h>
11+
12+
@interface SpeechConstantModule : NSObject <RCTBridgeModule>
13+
@end

0 commit comments

Comments
 (0)