matrixbirds před 5 roky
rodič
revize
4b225fb7a3

binární
docs/v2/IOS_INSTALLATION/1.3.3_UPDATE_RCTAgora_AgoraRtcEngineKIt_Framework.png Zobrazit soubor


binární
docs/v2/IOS_INSTALLATION/1.3.4_SELECT_AgoraRtcEngineKit_from_iOS_Pods_folder.png Zobrazit soubor


binární
docs/v2/IOS_INSTALLATION/1.3.5_DRAG_IT_INTO_Link_Binary_With_Libraries.png Zobrazit soubor


binární
docs/v2/IOS_INSTALLATION/1.4.1_SET_LINKED_LIBARIES.png Zobrazit soubor


docs/v2/IOS_INSTALLATION/1.4.2_SET_RCTAgora.a.png → docs/v2/IOS_INSTALLATION/1.4.1_SET_RCTAgora.a.png Zobrazit soubor


binární
docs/v2/IOS_INSTALLATION/1.5.1_Add_Framework_Search_Paths.png Zobrazit soubor


binární
docs/v2/IOS_INSTALLATION/1.5.2_Add_Library_Search_Paths.png Zobrazit soubor


+ 5
- 4
docs/v2/android.md Zobrazit soubor

@@ -6,10 +6,11 @@
6 6
 
7 7
 # Step 1. Add `AndroidManifest.xml`
8 8
 ```xml
9
-<uses-permission android:name="android.permission.RECORD_AUDIO" />
10
-<uses-permission android:name="android.permission.CAMERA" />
11
-<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
12
-<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
9
+  <uses-permission android:name="android.permission.RECORD_AUDIO" />
10
+  <uses-permission android:name="android.permission.CAMERA" />
11
+  <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
12
+  <uses-permission android:name="android.permission.INTERNET" />
13
+  <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
13 14
 ```
14 15
 
15 16
 # Step 2. Add `react-native-agora` to `settings.gradle`

+ 5
- 4
docs/v2/android.zh.md Zobrazit soubor

@@ -6,10 +6,11 @@
6 6
 
7 7
 # Step 1. 新增 `AndroidManifest.xml`
8 8
 ```xml
9
-<uses-permission android:name="android.permission.RECORD_AUDIO" />
10
-<uses-permission android:name="android.permission.CAMERA" />
11
-<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
12
-<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
9
+  <uses-permission android:name="android.permission.RECORD_AUDIO" />
10
+  <uses-permission android:name="android.permission.CAMERA" />
11
+  <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
12
+  <uses-permission android:name="android.permission.INTERNET" />
13
+  <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
13 14
 ```
14 15
 
15 16
 # Step 2. 在android目录里的`settings.gradle`新增`react-native-agora`的依赖管理

+ 10
- 12
docs/v2/ios.md Zobrazit soubor

@@ -12,26 +12,24 @@ gem install cocoapods
12 12
 
13 13
 # Step 1. install pod dependencies
14 14
 ```bash
15
+cd ios
15 16
 pod install
16 17
 ```
18
+pod install success will create `<projectName>`.xcworkspace file in ios folder.
17 19
 
18
-# Step 2. Open Workspace Project in Xcode  
20
+# Step 2. Open the xcworkspace Project in Xcode  
19 21
 Open `ios/projectName.xcworkspace` with XCode
20 22
 ![Step 2](./IOS_INSTALLATION/1.2_OpenProject.png)
21 23
 
22 24
 # Step 3. Add RCTAgora to the Project Libraries folder
23 25
 ![Step 3.1](./IOS_INSTALLATION/1.3_Add_Files_To_Project.png)
24 26
 ![Step 3.2](./IOS_INSTALLATION/1.3.1_RCTAgora.png)
27
+select the AgoraRtcEngineKit and re-added by below steps.
28
+![Step 3.3](./IOS_INSTALLATION/1.3.3_UPDATE_RCTAgora_AgoraRtcEngineKit_Framework.png)
29
+![Step 3.4](./IOS_INSTALLATION/1.3.4_SELECT_AgoraRtcEngineKit_from_iOS_Pods_folder.png)
30
+![Step 3.5](./IOS_INSTALLATION/1.3.5_DRAG_IT_INTO_Link_Binary_With_Libraries.png)
25 31
 
26
-# Step 4. Add Linked Library to the xcode project
27
-![Step 4.1](./IOS_INSTALLATION/1.4.1_SET_LINKED_LIBARIES.png)
28
-![Step 4.2](./IOS_INSTALLATION/1.4.1_SET_LINKED_LIBARIES.png)
29
-![Step 4.3](./IOS_INSTALLATION/1.4.2_SET_RCTAgora.a.png)
30
-
31
-# Step 5. Set Framework and Libraries Search Paths
32
-![Step 5.1](./IOS_INSTALLATION/1.5.1_Add_Framework_Search_Paths.png)
33
-![Step 5.2](./IOS_INSTALLATION/1.5.2_Add_Library_Search_Paths.png)
34
-
35
-
36
-# Step 6. build and run it with xcode
32
+# Step 4. Only Add Linked Library to the xcode project
33
+![Step 4.3](./IOS_INSTALLATION/1.4.1_SET_RCTAgora.a.png)
37 34
 
35
+# Step 5. build and run it with xcode

+ 7
- 10
docs/v2/ios.zh.md Zobrazit soubor

@@ -22,16 +22,13 @@ pod install
22 22
 # Step 3. 在项目里新增RCTAgora项目到Libraries目录里
23 23
 ![Step 3.1](./IOS_INSTALLATION/1.3_Add_Files_To_Project.png)
24 24
 ![Step 3.2](./IOS_INSTALLATION/1.3.1_RCTAgora.png)
25
+根据以下的步骤。重新加载RCTAgora里面的AgoraRtcEngineKit。
26
+![Step 3.3](./IOS_INSTALLATION/1.3.3_UPDATE_RCTAgora_AgoraRtcEngineKit_Framework.png)
27
+![Step 3.4](./IOS_INSTALLATION/1.3.4_SELECT_AgoraRtcEngineKit_from_iOS_Pods_folder.png)
28
+![Step 3.5](./IOS_INSTALLATION/1.3.5_DRAG_IT_INTO_Link_Binary_With_Libraries.png)
25 29
 
26
-# Step 4. 把react-native-agora添加到linked libraries里
27
-![Step 4.1](./IOS_INSTALLATION/1.4.1_SET_LINKED_LIBARIES.png)
28
-![Step 4.2](./IOS_INSTALLATION/1.4.1_SET_LINKED_LIBARIES.png)
29
-![Step 4.3](./IOS_INSTALLATION/1.4.2_SET_RCTAgora.a.png)
30
+# Step 4. 把RCTAgora.a 添加到linked libraries里
31
+![Step 4.3](./IOS_INSTALLATION/1.4.1_SET_RCTAgora.a.png)
30 32
 
31
-# Step 5. 设置 Framework & Libraries Search Paths
32
-![Step 5.1](./IOS_INSTALLATION/1.5.1_Add_Framework_Search_Paths.png)
33
-![Step 5.2](./IOS_INSTALLATION/1.5.2_Add_Library_Search_Paths.png)
34
-
35
-
36
-# Step 6. xcode 编译并运行
33
+# Step 5. xcode 编译并运行
37 34
 

+ 4
- 18
samples/simpleDemo/ios/simpleDemo.xcodeproj/project.pbxproj Zobrazit soubor

@@ -13,14 +13,6 @@
13 13
 		00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
14 14
 		00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
15 15
 		00E356F31AD99517003FC87E /* simpleDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* simpleDemoTests.m */; };
16
-		0842E3912206D315003875AC /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 0842E36A2206D315003875AC /* libc++.tbd */; };
17
-		0842E3932206D31B003875AC /* libresolv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 0842E3922206D31B003875AC /* libresolv.tbd */; };
18
-		0842E3952206D320003875AC /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0842E3942206D320003875AC /* AVFoundation.framework */; };
19
-		0842E3982206D32B003875AC /* VideoToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0842E3962206D32B003875AC /* VideoToolbox.framework */; };
20
-		0842E3992206D32B003875AC /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0842E3972206D32B003875AC /* AudioToolbox.framework */; };
21
-		0842E39C2206D332003875AC /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0842E39A2206D331003875AC /* CoreMedia.framework */; };
22
-		0842E39D2206D332003875AC /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0842E39B2206D332003875AC /* CoreMotion.framework */; };
23
-		0842E39F2206D338003875AC /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0842E39E2206D338003875AC /* CoreTelephony.framework */; };
24 16
 		08CCEBFC221537CD003E31DF /* libRCTAgora.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 08CCEBD7221536C0003E31DF /* libRCTAgora.a */; };
25 17
 		11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
26 18
 		133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
@@ -406,14 +398,6 @@
406 398
 			buildActionMask = 2147483647;
407 399
 			files = (
408 400
 				08CCEBFC221537CD003E31DF /* libRCTAgora.a in Frameworks */,
409
-				0842E39F2206D338003875AC /* CoreTelephony.framework in Frameworks */,
410
-				0842E39C2206D332003875AC /* CoreMedia.framework in Frameworks */,
411
-				0842E39D2206D332003875AC /* CoreMotion.framework in Frameworks */,
412
-				0842E3982206D32B003875AC /* VideoToolbox.framework in Frameworks */,
413
-				0842E3992206D32B003875AC /* AudioToolbox.framework in Frameworks */,
414
-				0842E3952206D320003875AC /* AVFoundation.framework in Frameworks */,
415
-				0842E3932206D31B003875AC /* libresolv.tbd in Frameworks */,
416
-				0842E3912206D315003875AC /* libc++.tbd in Frameworks */,
417 401
 				ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */,
418 402
 				ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */,
419 403
 				11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */,
@@ -1436,6 +1420,7 @@
1436 1420
 			baseConfigurationReference = AF777D8452EEC1290F3E6AE9 /* Pods-simpleDemo.debug.xcconfig */;
1437 1421
 			buildSettings = {
1438 1422
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1423
+				CODE_SIGN_IDENTITY = "iPhone Developer";
1439 1424
 				CODE_SIGN_STYLE = Manual;
1440 1425
 				CURRENT_PROJECT_VERSION = 1;
1441 1426
 				DEAD_CODE_STRIPPING = NO;
@@ -1459,7 +1444,7 @@
1459 1444
 					"-ObjC",
1460 1445
 					"-lc++",
1461 1446
 				);
1462
-				PRODUCT_BUNDLE_IDENTIFIER = io.agora.simpleDemo;
1447
+				PRODUCT_BUNDLE_IDENTIFIER = tori.mobi.agora;
1463 1448
 				PRODUCT_NAME = simpleDemo;
1464 1449
 				PROVISIONING_PROFILE_SPECIFIER = "";
1465 1450
 				VERSIONING_SYSTEM = "apple-generic";
@@ -1471,6 +1456,7 @@
1471 1456
 			baseConfigurationReference = 1CD9D1AEC7C4C297784C698B /* Pods-simpleDemo.release.xcconfig */;
1472 1457
 			buildSettings = {
1473 1458
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1459
+				CODE_SIGN_IDENTITY = "iPhone Developer";
1474 1460
 				CODE_SIGN_STYLE = Manual;
1475 1461
 				CURRENT_PROJECT_VERSION = 1;
1476 1462
 				DEVELOPMENT_TEAM = "";
@@ -1493,7 +1479,7 @@
1493 1479
 					"-ObjC",
1494 1480
 					"-lc++",
1495 1481
 				);
1496
-				PRODUCT_BUNDLE_IDENTIFIER = io.agora.simpleDemo;
1482
+				PRODUCT_BUNDLE_IDENTIFIER = tori.mobi.agora;
1497 1483
 				PRODUCT_NAME = simpleDemo;
1498 1484
 				PROVISIONING_PROFILE_SPECIFIER = "";
1499 1485
 				VERSIONING_SYSTEM = "apple-generic";