matrixbirds 5 年 前
コミット
1dbcacad9d
共有28 個のファイルを変更した333 個の追加152 個の削除を含む
  1. 2
    16
      docs/ANDROID_INSTALLATION.md
  2. 2
    16
      docs/ANDROID_INSTALLATION.zh.md
  3. 2
    62
      docs/IOS_INSTALLATION.md
  4. 2
    58
      docs/IOS_INSTALLATION.zh.md
  5. 0
    0
      docs/v1/IOS_INSTALLATION/1.1_Open_iOS_ProjectFile.png
  6. 0
    0
      docs/v1/IOS_INSTALLATION/1.2_LinkBinaryWithLibraries.png
  7. 0
    0
      docs/v1/IOS_INSTALLATION/1.3_Add_Other_Libraries.png
  8. 0
    0
      docs/v1/IOS_INSTALLATION/1.4_Add_Framework_Search_Paths.png
  9. 0
    0
      docs/v1/IOS_INSTALLATION/1.5_Add_Library_Search_Paths.png
  10. 0
    0
      docs/v1/IOS_INSTALLATION/1.6_Set_Build_Settings_Enable_Bitcode_No.png
  11. 0
    0
      docs/v1/IOS_INSTALLATION/1.7_Set_Capabilities_Background_Modes.png
  12. 0
    0
      docs/v1/IOS_INSTALLATION/1.8.1_Set_info_plist.png
  13. 0
    0
      docs/v1/IOS_INSTALLATION/1.8.2_Set_camera_and_microphone.png
  14. 18
    0
      docs/v1/android.md
  15. 18
    0
      docs/v1/android.zh.md
  16. 64
    0
      docs/v1/ios.md
  17. 60
    0
      docs/v1/ios.zh.md
  18. バイナリ
      docs/v2/IOS_INSTALLATION/1.2_OpenProject.png
  19. バイナリ
      docs/v2/IOS_INSTALLATION/1.3.1_RCTAgora.png
  20. バイナリ
      docs/v2/IOS_INSTALLATION/1.3_Add_Files_To_Project.png
  21. バイナリ
      docs/v2/IOS_INSTALLATION/1.4.1_SET_LINKED_LIBARIES.png
  22. バイナリ
      docs/v2/IOS_INSTALLATION/1.4.2_SET_RCTAgora.a.png
  23. バイナリ
      docs/v2/IOS_INSTALLATION/1.5.1_Add_Framework_Search_Paths.png
  24. バイナリ
      docs/v2/IOS_INSTALLATION/1.5.2_Add_Library_Search_Paths.png
  25. 46
    0
      docs/v2/android.md
  26. 45
    0
      docs/v2/android.zh.md
  27. 37
    0
      docs/v2/ios.md
  28. 37
    0
      docs/v2/ios.zh.md

+ 2
- 16
docs/ANDROID_INSTALLATION.md ファイルの表示

@@ -1,18 +1,4 @@
1
-# Android Installation
1
+# [Android old setup for v 1.x](./v1/android.md)
2 2
 
3
-# Prerequisites
4
-* Android SDK
5
-* Android Studio
6 3
 
7
-# Step 1. Add `AndroidManifest.xml`
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" />
13
-```
14
-
15
-# Obfuscation Code Edit `android/proguard-rules.pro`
16
-```java
17
--keep class io.agora.**{*;}
18
-```
4
+# [Android latest version setup](./v2/android.md)

+ 2
- 16
docs/ANDROID_INSTALLATION.zh.md ファイルの表示

@@ -1,18 +1,4 @@
1
-# Android 开发搭建指南
1
+# [Android 1.x 版本构建步骤](./v1/android.zh.md)
2 2
 
3
-# 环境准备
4
-* Android SDK
5
-* Android Studio
6 3
 
7
-# Step 1. 新增 `AndroidManifest.xml`
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" />
13
-```
14
-
15
-# 当您在写混淆代码时,请在``添加以下代码:
16
-```script
17
-    -keep class io.agora.**{*;}
18
-```
4
+# [Android 最新版本构建步骤](./v2/android.zh.md)

+ 2
- 62
docs/IOS_INSTALLATION.md ファイルの表示

@@ -1,64 +1,4 @@
1
-# iOS Installation
1
+# [iOS old setup for v 1.x](./v1/ios.md)
2 2
 
3
-# Prerequisites
4
-* You should installed and linked `react-native-agora`
5
-* Xcode 10.0+
6 3
 
7
-# Step 1. Open Project in Xcode
8
-Open `ios/projectName.xcodeproj` with XCode
9
-![Step 1](./IOS_INSTALLATION/1.1_Open_iOS_ProjectFile.png)
10
-# Step 2. Add Link Binary With Libraries 
11
-Build Phases -> Link Binary With Libraries -> +
12
-![Step 2](./IOS_INSTALLATION/1.2_LinkBinaryWithLibraries.png)
13
-
14
-    libresolv.tbd
15
-    libc++.tbd
16
-    AVFoundation.framework
17
-    AudioToolbox.framework
18
-    VideoToolbox.framework
19
-    CoreMotion.framework
20
-    CoreMedia.framework
21
-    CoreTelephony.framework
22
-
23
-
24
-# Step 3. Add Other Link Binary With Libraries From `node_modules`
25
-Build Phases -> Link Binary With Libraries -> + -> Add Other
26
-![Step 3](./IOS_INSTALLATION/1.3_Add_Other_Libraries.png)
27
-
28
-    node_modules/react-native-agora/ios/RCTAgora/libs/libcrypto.a
29
-    node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcCryptoLoader.framework
30
-    node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcEngineKit.framework
31
-
32
-
33
-# Step 4. Add Framework Search Paths
34
-Build Settings -> Framework Search Paths -> + 
35
-![Step 4](./IOS_INSTALLATION/1.4_Add_Framework_Search_Paths.png)
36
-"$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
37
-
38
-
39
-# Step 5. Add Library Search Paths
40
-Build Settings -> Library Search Paths -> + 
41
-![Step 5](./IOS_INSTALLATION/1.5_Add_Library_Search_Paths.png)
42
-
43
-"$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
44
-
45
-
46
-# Step 6. Set Build Settings Enable Bitcode No
47
-Build Settings -> Enable Bitcode -> ...
48
-![Step 6](./IOS_INSTALLATION/1.6_Set_Build_Settings_Enable_Bitcode_No.png)
49
-
50
-# Step 7. Set Capabilities Background Modes
51
-Capabilities -> Background Modes -> Audio, Airplay, and Picture in Picture
52
-![Step 7](./IOS_INSTALLATION/1.7_Set_Capabilities_Background_Modes.png)
53
-
54
-# Step 8.1 Set info.plist
55
-Change info.plist  
56
-"Privacy - Camera Usage Description":"use camera to start video call"  
57
-"Privacy - Microphone Usage Description":"use microphone to start video call"  
58
-
59
-![Step 8.1](./IOS_INSTALLATION/1.8.1_Set_info_plist.png)
60
-
61
-![Step 8.2](./IOS_INSTALLATION/1.8.2_Set_camera_and_microphone.png)
62
-
63
-# Step 9 build
64
-`react-native run-ios`
4
+# [iOS latest version setup](./v2/ios.md)

+ 2
- 58
docs/IOS_INSTALLATION.zh.md ファイルの表示

@@ -1,60 +1,4 @@
1
-# iOS 开发搭建指南
1
+# [iOS 1.x 版本构建步骤](./v1/ios.zh.md)
2 2
 
3
-# 环境
4
-* 请先在项目里安装 `react-native-agora` & `react-native link react-native-agora`
5
-* Xcode 10.0+
6 3
 
7
-# Step 1. 使用Xcode打开ios项目
8
-用Xcode打开RN项目里的`ios/RN项目.xcodeproj`文件
9
-![Step 1](./IOS_INSTALLATION/1.1_Open_iOS_ProjectFile.png)
10
-# Step 2. 添加如下的链接库到Xcode工程
11
-选择 Build Phases -> Link Binary With Libraries -> +
12
-![Step 2](./IOS_INSTALLATION/1.2_LinkBinaryWithLibraries.png)
13
-
14
-    libresolv.tbd
15
-    libc++.tbd
16
-    AVFoundation.framework
17
-    AudioToolbox.framework
18
-    VideoToolbox.framework
19
-    CoreMotion.framework
20
-    CoreMedia.framework
21
-    CoreTelephony.framework
22
-# Step 3. 添加node_modules库到Xcode工程
23
-选择 Build Phases-> Link Binary With Libaries中点击“+”按钮,在弹出的窗口中点击“Add Other”按钮,选择
24
-![Step 3](./IOS_INSTALLATION/1.3_Add_Other_Libraries.png)
25
-
26
-    node_modules/react-native-agora/ios/RCTAgora/libs/libcrypto.a
27
-    node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcCryptoLoader.framework
28
-    node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcEngineKit.framework
29
-
30
-# Step 4. 添加Framework Search Paths
31
-选择 Build Settings->Search Paths->Framework Search Paths添加
32
-"$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
33
-![Step 4](./IOS_INSTALLATION/1.4_Add_Framework_Search_Paths.png)
34
-
35
-# Step 5. 添加Library Search Paths
36
-选择 Build Settings->Search Paths->Library Search Paths添加
37
-"$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
38
-![Step 5](./IOS_INSTALLATION/1.5_Add_Library_Search_Paths.png)
39
-
40
-
41
-# Step 6. 设置Build Settings Enable Bitcode No
42
-选择 Build Settings->Enable Bitcode设置为No
43
-![Step 6](./IOS_INSTALLATION/1.6_Set_Build_Settings_Enable_Bitcode_No.png)
44
-
45
-# Step 7. 设置Capabilities Background Modes
46
-选择 Capabilities->Background Modes->Modes勾选Audio,AirPlay,and Picture In Picture
47
-![Step 7](./IOS_INSTALLATION/1.7_Set_Capabilities_Background_Modes.png)
48
-
49
-# Step 8.1 设置info.plist
50
-修改info.plist
51
-新增2项:  
52
-"Privacy - Camera Usage Description":"use camera to start video call"  
53
-"Privacy - Microphone Usage Description":"use microphone to start video call"
54
-
55
-![Step 8.1](./IOS_INSTALLATION/1.8.1_Set_info_plist.png)
56
-
57
-![Step 8.2](./IOS_INSTALLATION/1.8.2_Set_camera_and_microphone.png)
58
-
59
-# Step 9 编译
60
-`react-native run-ios`
4
+# [iOS 最新版本构建步骤](./v2/ios.zh.md)

docs/IOS_INSTALLATION/1.1_Open_iOS_ProjectFile.png → docs/v1/IOS_INSTALLATION/1.1_Open_iOS_ProjectFile.png ファイルの表示


docs/IOS_INSTALLATION/1.2_LinkBinaryWithLibraries.png → docs/v1/IOS_INSTALLATION/1.2_LinkBinaryWithLibraries.png ファイルの表示


docs/IOS_INSTALLATION/1.3_Add_Other_Libraries.png → docs/v1/IOS_INSTALLATION/1.3_Add_Other_Libraries.png ファイルの表示


docs/IOS_INSTALLATION/1.4_Add_Framework_Search_Paths.png → docs/v1/IOS_INSTALLATION/1.4_Add_Framework_Search_Paths.png ファイルの表示


docs/IOS_INSTALLATION/1.5_Add_Library_Search_Paths.png → docs/v1/IOS_INSTALLATION/1.5_Add_Library_Search_Paths.png ファイルの表示


docs/IOS_INSTALLATION/1.6_Set_Build_Settings_Enable_Bitcode_No.png → docs/v1/IOS_INSTALLATION/1.6_Set_Build_Settings_Enable_Bitcode_No.png ファイルの表示


docs/IOS_INSTALLATION/1.7_Set_Capabilities_Background_Modes.png → docs/v1/IOS_INSTALLATION/1.7_Set_Capabilities_Background_Modes.png ファイルの表示


docs/IOS_INSTALLATION/1.8.1_Set_info_plist.png → docs/v1/IOS_INSTALLATION/1.8.1_Set_info_plist.png ファイルの表示


docs/IOS_INSTALLATION/1.8.2_Set_camera_and_microphone.png → docs/v1/IOS_INSTALLATION/1.8.2_Set_camera_and_microphone.png ファイルの表示


+ 18
- 0
docs/v1/android.md ファイルの表示

@@ -0,0 +1,18 @@
1
+# Android Installation
2
+
3
+# Prerequisites
4
+* Android SDK
5
+* Android Studio
6
+
7
+# Step 1. Add `AndroidManifest.xml`
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" />
13
+```
14
+
15
+# Obfuscation Code Edit `android/proguard-rules.pro`
16
+```java
17
+-keep class io.agora.**{*;}
18
+```

+ 18
- 0
docs/v1/android.zh.md ファイルの表示

@@ -0,0 +1,18 @@
1
+# Android 开发搭建指南
2
+
3
+# 环境准备
4
+* Android SDK
5
+* Android Studio
6
+
7
+# Step 1. 新增 `AndroidManifest.xml`
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" />
13
+```
14
+
15
+# 当您在写混淆代码时,请在``添加以下代码:
16
+```script
17
+    -keep class io.agora.**{*;}
18
+```

+ 64
- 0
docs/v1/ios.md ファイルの表示

@@ -0,0 +1,64 @@
1
+# iOS Installation
2
+
3
+# Prerequisites
4
+* You should installed and linked `react-native-agora`
5
+* Xcode 10.0+
6
+
7
+# Step 1. Open Project in Xcode
8
+Open `ios/projectName.xcodeproj` with XCode
9
+![Step 1](./IOS_INSTALLATION/1.1_Open_iOS_ProjectFile.png)
10
+# Step 2. Add Link Binary With Libraries 
11
+Build Phases -> Link Binary With Libraries -> +
12
+![Step 2](./IOS_INSTALLATION/1.2_LinkBinaryWithLibraries.png)
13
+
14
+    libresolv.tbd
15
+    libc++.tbd
16
+    AVFoundation.framework
17
+    AudioToolbox.framework
18
+    VideoToolbox.framework
19
+    CoreMotion.framework
20
+    CoreMedia.framework
21
+    CoreTelephony.framework
22
+
23
+
24
+# Step 3. Add Other Link Binary With Libraries From `node_modules`
25
+Build Phases -> Link Binary With Libraries -> + -> Add Other
26
+![Step 3](./IOS_INSTALLATION/1.3_Add_Other_Libraries.png)
27
+
28
+    node_modules/react-native-agora/ios/RCTAgora/libs/libcrypto.a
29
+    node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcCryptoLoader.framework
30
+    node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcEngineKit.framework
31
+
32
+
33
+# Step 4. Add Framework Search Paths
34
+Build Settings -> Framework Search Paths -> + 
35
+![Step 4](./IOS_INSTALLATION/1.4_Add_Framework_Search_Paths.png)
36
+"$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
37
+
38
+
39
+# Step 5. Add Library Search Paths
40
+Build Settings -> Library Search Paths -> + 
41
+![Step 5](./IOS_INSTALLATION/1.5_Add_Library_Search_Paths.png)
42
+
43
+"$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
44
+
45
+
46
+# Step 6. Set Build Settings Enable Bitcode No
47
+Build Settings -> Enable Bitcode -> ...
48
+![Step 6](./IOS_INSTALLATION/1.6_Set_Build_Settings_Enable_Bitcode_No.png)
49
+
50
+# Step 7. Set Capabilities Background Modes
51
+Capabilities -> Background Modes -> Audio, Airplay, and Picture in Picture
52
+![Step 7](./IOS_INSTALLATION/1.7_Set_Capabilities_Background_Modes.png)
53
+
54
+# Step 8.1 Set info.plist
55
+Change info.plist  
56
+"Privacy - Camera Usage Description":"use camera to start video call"  
57
+"Privacy - Microphone Usage Description":"use microphone to start video call"  
58
+
59
+![Step 8.1](./IOS_INSTALLATION/1.8.1_Set_info_plist.png)
60
+
61
+![Step 8.2](./IOS_INSTALLATION/1.8.2_Set_camera_and_microphone.png)
62
+
63
+# Step 9 build
64
+`react-native run-ios`

+ 60
- 0
docs/v1/ios.zh.md ファイルの表示

@@ -0,0 +1,60 @@
1
+# iOS 开发搭建指南
2
+
3
+# 环境
4
+* 请先在项目里安装 `react-native-agora` & `react-native link react-native-agora`
5
+* Xcode 10.0+
6
+
7
+# Step 1. 使用Xcode打开ios项目
8
+用Xcode打开RN项目里的`ios/RN项目.xcodeproj`文件
9
+![Step 1](./IOS_INSTALLATION/1.1_Open_iOS_ProjectFile.png)
10
+# Step 2. 添加如下的链接库到Xcode工程
11
+选择 Build Phases -> Link Binary With Libraries -> +
12
+![Step 2](./IOS_INSTALLATION/1.2_LinkBinaryWithLibraries.png)
13
+
14
+    libresolv.tbd
15
+    libc++.tbd
16
+    AVFoundation.framework
17
+    AudioToolbox.framework
18
+    VideoToolbox.framework
19
+    CoreMotion.framework
20
+    CoreMedia.framework
21
+    CoreTelephony.framework
22
+# Step 3. 添加node_modules库到Xcode工程
23
+选择 Build Phases-> Link Binary With Libaries中点击“+”按钮,在弹出的窗口中点击“Add Other”按钮,选择
24
+![Step 3](./IOS_INSTALLATION/1.3_Add_Other_Libraries.png)
25
+
26
+    node_modules/react-native-agora/ios/RCTAgora/libs/libcrypto.a
27
+    node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcCryptoLoader.framework
28
+    node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcEngineKit.framework
29
+
30
+# Step 4. 添加Framework Search Paths
31
+选择 Build Settings->Search Paths->Framework Search Paths添加
32
+"$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
33
+![Step 4](./IOS_INSTALLATION/1.4_Add_Framework_Search_Paths.png)
34
+
35
+# Step 5. 添加Library Search Paths
36
+选择 Build Settings->Search Paths->Library Search Paths添加
37
+"$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
38
+![Step 5](./IOS_INSTALLATION/1.5_Add_Library_Search_Paths.png)
39
+
40
+
41
+# Step 6. 设置Build Settings Enable Bitcode No
42
+选择 Build Settings->Enable Bitcode设置为No
43
+![Step 6](./IOS_INSTALLATION/1.6_Set_Build_Settings_Enable_Bitcode_No.png)
44
+
45
+# Step 7. 设置Capabilities Background Modes
46
+选择 Capabilities->Background Modes->Modes勾选Audio,AirPlay,and Picture In Picture
47
+![Step 7](./IOS_INSTALLATION/1.7_Set_Capabilities_Background_Modes.png)
48
+
49
+# Step 8.1 设置info.plist
50
+修改info.plist
51
+新增2项:  
52
+"Privacy - Camera Usage Description":"use camera to start video call"  
53
+"Privacy - Microphone Usage Description":"use microphone to start video call"
54
+
55
+![Step 8.1](./IOS_INSTALLATION/1.8.1_Set_info_plist.png)
56
+
57
+![Step 8.2](./IOS_INSTALLATION/1.8.2_Set_camera_and_microphone.png)
58
+
59
+# Step 9 编译
60
+`react-native run-ios`

バイナリ
docs/v2/IOS_INSTALLATION/1.2_OpenProject.png ファイルの表示


バイナリ
docs/v2/IOS_INSTALLATION/1.3.1_RCTAgora.png ファイルの表示


バイナリ
docs/v2/IOS_INSTALLATION/1.3_Add_Files_To_Project.png ファイルの表示


バイナリ
docs/v2/IOS_INSTALLATION/1.4.1_SET_LINKED_LIBARIES.png ファイルの表示


バイナリ
docs/v2/IOS_INSTALLATION/1.4.2_SET_RCTAgora.a.png ファイルの表示


バイナリ
docs/v2/IOS_INSTALLATION/1.5.1_Add_Framework_Search_Paths.png ファイルの表示


バイナリ
docs/v2/IOS_INSTALLATION/1.5.2_Add_Library_Search_Paths.png ファイルの表示


+ 46
- 0
docs/v2/android.md ファイルの表示

@@ -0,0 +1,46 @@
1
+# Android Installation
2
+
3
+# Prerequisites
4
+* Android SDK
5
+* Android Studio
6
+
7
+# Step 1. Add `AndroidManifest.xml`
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" />
13
+```
14
+
15
+# Step 2. Add `react-native-agora` to `settings.gradle`
16
+```groovy
17
+...
18
+include ':react-native-agora'
19
+project(':react-native-agora').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-agora/android')
20
+```
21
+
22
+# To set android sdk version Create `local.properties` in android root directory
23
+```bash
24
+cd android
25
+echo "sdk.dir = <Your Local Android Path>" > local.properties
26
+```
27
+
28
+# For Obfuscation Code Edit `android/proguard-rules.pro`
29
+```java
30
+-keep class io.agora.**{*;}
31
+```
32
+
33
+# build for development
34
+```bash
35
+react-native run-android
36
+react-native log-android
37
+```
38
+
39
+# build for Release
40
+```bash
41
+mkdir -p android/app/src/main/assets
42
+curl "localhost:8081/index.bundle?platform=android&dev=false&minify=true" -o "android/app/src/main/assets/index.android.bundle"
43
+cd android
44
+./gradlew assembleRelease
45
+
46
+```

+ 45
- 0
docs/v2/android.zh.md ファイルの表示

@@ -0,0 +1,45 @@
1
+# Android 开发搭建指南
2
+
3
+# Prerequisites
4
+* Android SDK
5
+* Android Studio
6
+
7
+# Step 1. 新增 `AndroidManifest.xml`
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" />
13
+```
14
+
15
+# Step 2. 在android目录里的`settings.gradle`新增`react-native-agora`的依赖管理
16
+```groovy
17
+include ':react-native-agora'
18
+project(':react-native-agora').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-agora/android')
19
+```
20
+
21
+# 可以创建`local.properties`设置android sdk
22
+```bash
23
+cd android
24
+echo "sdk.dir = <你的android目录>" > local.properties
25
+```
26
+
27
+# 当您在写混淆代码时,请在``添加以下代码 到 `android/proguard-rules.pro`
28
+```java
29
+-keep class io.agora.**{*;}
30
+```
31
+
32
+# 构建开发环境
33
+```bash
34
+react-native run-android
35
+react-native log-android
36
+```
37
+
38
+# 开发环境打包
39
+```bash
40
+mkdir -p android/app/src/main/assets
41
+curl "localhost:8081/index.bundle?platform=android&dev=false&minify=true" -o "android/app/src/main/assets/index.android.bundle"
42
+cd android
43
+./gradlew assembleRelease
44
+
45
+```

+ 37
- 0
docs/v2/ios.md ファイルの表示

@@ -0,0 +1,37 @@
1
+# iOS Installation
2
+
3
+# Prerequisites
4
+* You should installed and linked `react-native-agora`
5
+* Xcode 10.0+
6
+* cocoapods
7
+
8
+```bash
9
+# installed ruby first then run it
10
+gem install cocoapods
11
+```
12
+
13
+# Step 1. install pod dependencies
14
+```bash
15
+pod install
16
+```
17
+
18
+# Step 2. Open Workspace Project in Xcode  
19
+Open `ios/projectName.xcworkspace` with XCode
20
+![Step 2](./IOS_INSTALLATION/1.2_OpenProject.png)
21
+
22
+# Step 3. Add RCTAgora to the Project Libraries folder
23
+![Step 3.1](./IOS_INSTALLATION/1.3_Add_Files_To_Project.png)
24
+![Step 3.2](./IOS_INSTALLATION/1.3.1_RCTAgora.png)
25
+
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
37
+

+ 37
- 0
docs/v2/ios.zh.md ファイルの表示

@@ -0,0 +1,37 @@
1
+# iOS 开发搭建指南
2
+
3
+# 环境
4
+* 请先在项目里安装 `react-native-agora` & `react-native link react-native-agora`
5
+* Xcode 10.0+
6
+* 安装cocoapods
7
+
8
+```bash
9
+# 需要首先安装好ruby
10
+gem install cocoapods
11
+```
12
+
13
+# Step 1. 首先安装
14
+```bash
15
+pod install
16
+```
17
+
18
+# Step 2. 使用xcode开启项目  
19
+打开 `ios/projectName.xcworkspace`
20
+![Step 2](./IOS_INSTALLATION/1.2_OpenProject.png)
21
+
22
+# Step 3. 在项目里新增RCTAgora项目到Libraries目录里
23
+![Step 3.1](./IOS_INSTALLATION/1.3_Add_Files_To_Project.png)
24
+![Step 3.2](./IOS_INSTALLATION/1.3.1_RCTAgora.png)
25
+
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
+
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 编译并运行
37
+