Compare commits

..

2 Commits
wd ... master

Author SHA1 Message Date
zher52
edc27c925c Merge branch 'master' of https://github.com/shuto-cn/cordova-plugin-IFlyspeech-master 2020-11-03 17:34:54 +08:00
zher52
9a9a266ae4 处理ios无法编译的问题 2020-11-03 17:29:55 +08:00
3 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@
APP_KEY参数值为您在科大讯飞申请的appid
运行cordova plugin add https://gitee.com/shuto/cordova-plugin-IFlyspeech-master.git#wd --variable APP_KEY=${APP_KEY} --variable IOS_APP_KEY=${APP_KEY}
运行cordova plugin add https://gitee.com/shuto/cordova-plugin-IFlyspeech-master.git --variable APP_KEY=${APP_KEY}
## 调用方法

View File

@ -4,8 +4,7 @@
xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-xunfeiListenSpeaking</name>
<preference name="APP_KEY" />
<preference name="IOS_APP_KEY" />
<preference name="CHANNEL" default="developer-default" />
<preference name="CHANNEL" default="developer-default" />
<engines>
<engine name="cordova" version=">=3.0" />
</engines>
@ -108,7 +107,7 @@
<framework src="Contacts.framework" />
<framework src="src/ios/iflyMSC.framework" custom="true" />
<config-file target="*IFlySpeechConfig.plist" parent="AppKey">
<string>$IOS_APP_KEY</string>
<string>$APP_KEY</string>
</config-file>
</platform>
</plugin>

View File

@ -34,7 +34,7 @@
NSLog(@"error: IFlySpeechConfig.plist not found");
assert(0);
}
NSMutableDictionary *plistData = [[NSMutableDictionary alloc] initWithContentsOfFile:plistPath];
NSMutableDictionary *plistData = [[NSMutableDictionary alloc] initWithContentsOfFile:plistPath];
self.appId = [plistData valueForKey:@"AppKey"];
}
@ -43,6 +43,7 @@
}
#pragma mark -
- (void)startListening:(CDVInvokedUrlCommand*)command
{