Browse Source

add AgoraRtcCryptoLoader

matrixbirds 5 years ago
parent
commit
8152ced9b1

+ 32
- 6
ios/RCTAgora.xcodeproj/project.pbxproj View File

@@ -7,6 +7,8 @@
7 7
 	objects = {
8 8
 
9 9
 /* Begin PBXBuildFile section */
10
+		085CF7D72204A7B7002075D5 /* AgoraRtcCryptoLoader.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 085CF7D52204A7B7002075D5 /* AgoraRtcCryptoLoader.framework */; };
11
+		085CF7D82204A7B7002075D5 /* libcrypto.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 085CF7D62204A7B7002075D5 /* libcrypto.a */; };
10 12
 		23AF28211EEFECD800D771AB /* RCTAgora.m in Sources */ = {isa = PBXBuildFile; fileRef = 23AF28201EEFECD800D771AB /* RCTAgora.m */; };
11 13
 		23AF28221EEFECD800D771AB /* RCTAgora.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 23AF281F1EEFECD800D771AB /* RCTAgora.h */; };
12 14
 		23C20DD11F0A6ED80095F60C /* AgoraConst.m in Sources */ = {isa = PBXBuildFile; fileRef = 23C20DCC1F0A6ED80095F60C /* AgoraConst.m */; };
@@ -28,7 +30,8 @@
28 30
 /* End PBXCopyFilesBuildPhase section */
29 31
 
30 32
 /* Begin PBXFileReference section */
31
-		23ACF47C1EF0CF9500801BC7 /* libs */ = {isa = PBXFileReference; lastKnownFileType = folder; path = libs; sourceTree = "<group>"; };
33
+		085CF7D52204A7B7002075D5 /* AgoraRtcCryptoLoader.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = AgoraRtcCryptoLoader.framework; sourceTree = "<group>"; };
34
+		085CF7D62204A7B7002075D5 /* libcrypto.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libcrypto.a; sourceTree = "<group>"; };
32 35
 		23AF281C1EEFECD800D771AB /* libRCTAgora.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRCTAgora.a; sourceTree = BUILT_PRODUCTS_DIR; };
33 36
 		23AF281F1EEFECD800D771AB /* RCTAgora.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTAgora.h; sourceTree = "<group>"; };
34 37
 		23AF28201EEFECD800D771AB /* RCTAgora.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTAgora.m; sourceTree = "<group>"; };
@@ -45,12 +48,23 @@
45 48
 			isa = PBXFrameworksBuildPhase;
46 49
 			buildActionMask = 2147483647;
47 50
 			files = (
51
+				085CF7D82204A7B7002075D5 /* libcrypto.a in Frameworks */,
52
+				085CF7D72204A7B7002075D5 /* AgoraRtcCryptoLoader.framework in Frameworks */,
48 53
 			);
49 54
 			runOnlyForDeploymentPostprocessing = 0;
50 55
 		};
51 56
 /* End PBXFrameworksBuildPhase section */
52 57
 
53 58
 /* Begin PBXGroup section */
59
+		085CF7D42204A787002075D5 /* libs */ = {
60
+			isa = PBXGroup;
61
+			children = (
62
+				085CF7D52204A7B7002075D5 /* AgoraRtcCryptoLoader.framework */,
63
+				085CF7D62204A7B7002075D5 /* libcrypto.a */,
64
+			);
65
+			path = libs;
66
+			sourceTree = "<group>";
67
+		};
54 68
 		23AF28131EEFECD800D771AB = {
55 69
 			isa = PBXGroup;
56 70
 			children = (
@@ -70,7 +84,7 @@
70 84
 		23AF281E1EEFECD800D771AB /* RCTAgora */ = {
71 85
 			isa = PBXGroup;
72 86
 			children = (
73
-				23ACF47C1EF0CF9500801BC7 /* libs */,
87
+				085CF7D42204A787002075D5 /* libs */,
74 88
 				23C20DCB1F0A6ED80095F60C /* AgoraConst.h */,
75 89
 				23C20DCC1F0A6ED80095F60C /* AgoraConst.m */,
76 90
 				23C20DCD1F0A6ED80095F60C /* RCTAgoraVideoView.h */,
@@ -248,12 +262,18 @@
248 262
 			buildSettings = {
249 263
 				DEVELOPMENT_TEAM = 342K4Q49RK;
250 264
 				ENABLE_BITCODE = YES;
251
-				FRAMEWORK_SEARCH_PATHS = "\"$(SRCROOT)/RCTAgora/libs\"";
265
+				FRAMEWORK_SEARCH_PATHS = (
266
+					"\"$(SRCROOT)/RCTAgora/libs\"",
267
+					"$(PROJECT_DIR)/RCTAgora/libs",
268
+				);
252 269
 				HEADER_SEARCH_PATHS = (
253 270
 					"\"$(SRCROOT)/../../react-native/React\"/**",
254 271
 					"\"$(SRCROOT)/../../react-native/Libraries\"/**",
255 272
 				);
256
-				LIBRARY_SEARCH_PATHS = "$(inherited)";
273
+				LIBRARY_SEARCH_PATHS = (
274
+					"$(inherited)",
275
+					"$(PROJECT_DIR)/RCTAgora/libs",
276
+				);
257 277
 				OTHER_LDFLAGS = "-ObjC";
258 278
 				PRODUCT_NAME = "$(TARGET_NAME)";
259 279
 				SKIP_INSTALL = YES;
@@ -265,12 +285,18 @@
265 285
 			buildSettings = {
266 286
 				DEVELOPMENT_TEAM = 342K4Q49RK;
267 287
 				ENABLE_BITCODE = YES;
268
-				FRAMEWORK_SEARCH_PATHS = "\"$(SRCROOT)/RCTAgora/libs\"";
288
+				FRAMEWORK_SEARCH_PATHS = (
289
+					"\"$(SRCROOT)/RCTAgora/libs\"",
290
+					"$(PROJECT_DIR)/RCTAgora/libs",
291
+				);
269 292
 				HEADER_SEARCH_PATHS = (
270 293
 					"\"$(SRCROOT)/../../react-native/React\"/**",
271 294
 					"\"$(SRCROOT)/../../react-native/Libraries\"/**",
272 295
 				);
273
-				LIBRARY_SEARCH_PATHS = "$(inherited)";
296
+				LIBRARY_SEARCH_PATHS = (
297
+					"$(inherited)",
298
+					"$(PROJECT_DIR)/RCTAgora/libs",
299
+				);
274 300
 				OTHER_LDFLAGS = "-ObjC";
275 301
 				PRODUCT_NAME = "$(TARGET_NAME)";
276 302
 				SKIP_INSTALL = YES;

BIN
ios/RCTAgora/libs/AgoraRtcCryptoLoader.framework/AgoraRtcCryptoLoader View File


+ 12
- 0
ios/RCTAgora/libs/AgoraRtcCryptoLoader.framework/Headers/AgoraRtcCryptoLoader.h View File

@@ -0,0 +1,12 @@
1
+//
2
+//  AgoraRtcCryptoLoader.h
3
+//  AgoraRtcCryptoLoader
4
+//
5
+//  Copyright © 2018 Agora. All rights reserved.
6
+//
7
+
8
+#import <Foundation/Foundation.h>
9
+
10
+@interface AgoraRtcCryptoLoader : NSObject
11
+
12
+@end

BIN
ios/RCTAgora/libs/libcrypto.a View File