瀏覽代碼

release. 2.9.0-alpha.3

matrixbirds 4 年之前
父節點
當前提交
3bd0b66161
共有 3 個檔案被更改,包括 11 行新增8 行删除
  1. 3
    0
      CHANGELOG
  2. 7
    7
      ios/RCTAgora/RCTAgora.m
  3. 1
    1
      package.json

+ 3
- 0
CHANGELOG 查看文件

@@ -1,5 +1,8 @@
1 1
 ## THE CHANGELOG
2 2
 
3
+#### 2.9.0-alpha.3
4
+  - hotfix ios compile error
5
+
3 6
 #### 2.9.0-alpha.2
4 7
   - fix ios dictionary stringValue type cast
5 8
 

+ 7
- 7
ios/RCTAgora/RCTAgora.m 查看文件

@@ -228,9 +228,9 @@ RCT_EXPORT_METHOD(init:(NSDictionary *)options) {
228 228
     }
229 229
   }
230 230
   if (options[@"secret"] != nil) {
231
-    [self.rtcEngine setEncryptionSecret:[options[@"secret"]]];
231
+    [self.rtcEngine setEncryptionSecret:options[@"secret"]];
232 232
     if (options[@"secretMode"] != nil) {
233
-      [self.rtcEngine setEncryptionMode:[options[@"secretMode"]]];
233
+      [self.rtcEngine setEncryptionMode:options[@"secretMode"]];
234 234
     }
235 235
   }
236 236
   
@@ -851,7 +851,7 @@ RCT_EXPORT_METHOD(setLocalVoiceReverb:(NSInteger)reverb value:(NSInteger)value
851 851
 RCT_EXPORT_METHOD(startAudioMixing:(NSDictionary *) options
852 852
                   resolve:(RCTPromiseResolveBlock)resolve
853 853
                   reject:(RCTPromiseRejectBlock)reject) {
854
-  NSInteger res = [self.rtcEngine startAudioMixing:[options[@"filepath"]]
854
+  NSInteger res = [self.rtcEngine startAudioMixing:options[@"filepath"]
855 855
                                           loopback:[options[@"loopback"] boolValue]
856 856
                                            replace:[options[@"replace"] boolValue]
857 857
                                              cycle:[options[@"cycle"] integerValue]];
@@ -1038,7 +1038,7 @@ RCT_EXPORT_METHOD(playEffect
1038 1038
                   resolve:(RCTPromiseResolveBlock)resolve
1039 1039
                   reject:(RCTPromiseRejectBlock)reject) {
1040 1040
   NSInteger res = [self.rtcEngine playEffect:(int)[options[@"soundid"] integerValue]
1041
-                                    filePath:[options[@"filepath"]]
1041
+                                    filePath:options[@"filepath"]
1042 1042
                                    loopCount:(int)[options[@"loopcount"] integerValue]
1043 1043
                                        pitch:[options[@"pitch"] doubleValue]
1044 1044
                                          pan:[options[@"pan"] doubleValue]
@@ -1157,7 +1157,7 @@ RCT_EXPORT_METHOD(startAudioRecording:(NSDictionary *)options
1157 1157
                   resolve:(RCTPromiseResolveBlock)resolve
1158 1158
                   reject:(RCTPromiseRejectBlock)reject) {
1159 1159
   AgoraAudioRecordingQuality qualityType = (AgoraAudioRecordingQuality)[options[@"quality"] integerValue];
1160
-  NSInteger res = [self.rtcEngine startAudioRecording:[options[@"filepath"]] quality:qualityType];
1160
+  NSInteger res = [self.rtcEngine startAudioRecording:options[@"filepath"] quality:qualityType];
1161 1161
   if (res == 0) {
1162 1162
     resolve(nil);
1163 1163
   } else {
@@ -1374,7 +1374,7 @@ RCT_EXPORT_METHOD(addInjectStreamUrl
1374 1374
   config.audioBitrate = [options[@"config"][@"audioBitrate"] integerValue];
1375 1375
   config.audioChannels = [options[@"config"][@"audioChannels"] integerValue];
1376 1376
   
1377
-  NSInteger res = [self.rtcEngine addInjectStreamUrl:[options[@"url"]]
1377
+  NSInteger res = [self.rtcEngine addInjectStreamUrl:options[@"url"]
1378 1378
                                               config:config];
1379 1379
   if (res == 0) {
1380 1380
     resolve(nil);
@@ -1630,7 +1630,7 @@ RCT_EXPORT_METHOD(setLiveTranscoding:(NSDictionary *)options
1630 1630
     transcoding.transcodingUsers = transcodingUsers;
1631 1631
   }
1632 1632
   if ([options objectForKey:@"transcodingExtraInfo"]) {
1633
-    transcoding.transcodingExtraInfo = [options[@"transcodingExtraInfo"]];
1633
+    transcoding.transcodingExtraInfo = options[@"transcodingExtraInfo"];
1634 1634
   }
1635 1635
   
1636 1636
   NSInteger res = [self.rtcEngine setLiveTranscoding:transcoding];

+ 1
- 1
package.json 查看文件

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "react-native-agora",
3
-  "version": "2.9.0-alpha.2",
3
+  "version": "2.9.0-alpha.3",
4 4
   "description": "React Native around the Agora RTC SDKs for Android and iOS agora",
5 5
   "summary": "agora native sdk for react-native",
6 6
   "main": "lib/index.js",