Skip to content

Commit 864d940

Browse files
committed
chore: iOS SDK using cocoapods.
1 parent 8bbbbaa commit 864d940

File tree

8 files changed

+105
-1432
lines changed

8 files changed

+105
-1432
lines changed

example/ios/Podfile.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ PODS:
6767
- DoubleConversion
6868
- glog
6969
- glog (0.3.5)
70-
- libWeChatSDK (1.7.5)
7170
- OpenSSL-Universal (1.0.2.19):
7271
- OpenSSL-Universal/Static (= 1.0.2.19)
7372
- OpenSSL-Universal/Static (1.0.2.19)
@@ -298,8 +297,9 @@ PODS:
298297
- React-cxxreact (= 0.63.2)
299298
- React-jsi (= 0.63.2)
300299
- RNWechat (1.0.0):
301-
- libWeChatSDK
302300
- React
301+
- WechatOpenSDK (= 1.8.7.1)
302+
- WechatOpenSDK (1.8.7.1)
303303
- Yoga (1.14.0)
304304
- YogaKit (1.18.1):
305305
- Yoga (~> 1.14)
@@ -366,8 +366,8 @@ SPEC REPOS:
366366
- Flipper-PeerTalk
367367
- Flipper-RSocket
368368
- FlipperKit
369-
- libWeChatSDK
370369
- OpenSSL-Universal
370+
- WechatOpenSDK
371371
- YogaKit
372372

373373
EXTERNAL SOURCES:
@@ -442,7 +442,6 @@ SPEC CHECKSUMS:
442442
FlipperKit: bc68102cd4952a258a23c9c1b316c7bec1fecf83
443443
Folly: b73c3869541e86821df3c387eb0af5f65addfab4
444444
glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3
445-
libWeChatSDK: e34a813bccc704856a33943bde8279be4e4c82a0
446445
OpenSSL-Universal: 8b48cc0d10c1b2923617dfe5c178aa9ed2689355
447446
RCTRequired: f13f25e7b12f925f1f6a6a8c69d929a03c0129fe
448447
RCTTypeSafety: 44982c5c8e43ff4141eb519a8ddc88059acd1f3a
@@ -464,7 +463,8 @@ SPEC CHECKSUMS:
464463
React-RCTText: 1b6773e776e4b33f90468c20fe3b16ca3e224bb8
465464
React-RCTVibration: 4d2e726957f4087449739b595f107c0d4b6c2d2d
466465
ReactCommon: a0a1edbebcac5e91338371b72ffc66aa822792ce
467-
RNWechat: 13905ec89041c708f753131d23edb6543de8d5ed
466+
RNWechat: aed62070c33e207d8dbd8476b0be608d44cb7291
467+
WechatOpenSDK: 6a4d1436c15b3b5fe2a0bd383f3046010186da44
468468
Yoga: 7740b94929bbacbddda59bf115b5317e9a161598
469469
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
470470

example/ios/example.xcodeproj/project.pbxproj

+83-83
Large diffs are not rendered by default.

ios/RNWechat.podspec

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ Pod::Spec.new do |s|
2424
# s.static_framework = true
2525

2626
s.dependency "React"
27-
s.dependency "libWeChatSDK"
27+
# 通过 CocoaPods 集成
28+
# https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/iOS.html#_4-1-%E9%80%9A%E8%BF%87-CocoaPods-%E9%9B%86%E6%88%90
29+
# https://cocoapods.org/pods/WechatOpenSDK
30+
s.dependency "WechatOpenSDK", "1.8.7.1"
31+
# s.dependency "libWeChatSDK"
2832
# s.vendored_library "libWeChatSDK"
2933
# s.library = "c++", "z"
3034
# ...

ios/RNWechat.xcodeproj/project.pbxproj

+12-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
B9CCD3AF24D41B010084C62F /* libWeChatSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B9CCD3AE24D41B000084C62F /* libWeChatSDK.a */; };
10+
B917B27D24D91110002ED880 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B917B27C24D91110002ED880 /* Security.framework */; };
11+
B917B27F24D91119002ED880 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B917B27E24D91119002ED880 /* CoreGraphics.framework */; };
12+
B917B28124D91122002ED880 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B917B28024D91121002ED880 /* WebKit.framework */; };
1113
/* End PBXBuildFile section */
1214

1315
/* Begin PBXCopyFilesBuildPhase section */
@@ -24,6 +26,9 @@
2426

2527
/* Begin PBXFileReference section */
2628
134814201AA4EA6300B7C361 /* libRNWechat.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNWechat.a; sourceTree = BUILT_PRODUCTS_DIR; };
29+
B917B27C24D91110002ED880 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework; sourceTree = DEVELOPER_DIR; };
30+
B917B27E24D91119002ED880 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework; sourceTree = DEVELOPER_DIR; };
31+
B917B28024D91121002ED880 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/WebKit.framework; sourceTree = DEVELOPER_DIR; };
2732
B9CCD3AE24D41B000084C62F /* libWeChatSDK.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libWeChatSDK.a; sourceTree = "<group>"; };
2833
/* End PBXFileReference section */
2934

@@ -32,7 +37,9 @@
3237
isa = PBXFrameworksBuildPhase;
3338
buildActionMask = 2147483647;
3439
files = (
35-
B9CCD3AF24D41B010084C62F /* libWeChatSDK.a in Frameworks */,
40+
B917B28124D91122002ED880 /* WebKit.framework in Frameworks */,
41+
B917B27F24D91119002ED880 /* CoreGraphics.framework in Frameworks */,
42+
B917B27D24D91110002ED880 /* Security.framework in Frameworks */,
3643
);
3744
runOnlyForDeploymentPostprocessing = 0;
3845
};
@@ -58,6 +65,9 @@
5865
B9CCD3AD24D41B000084C62F /* Frameworks */ = {
5966
isa = PBXGroup;
6067
children = (
68+
B917B28024D91121002ED880 /* WebKit.framework */,
69+
B917B27E24D91119002ED880 /* CoreGraphics.framework */,
70+
B917B27C24D91110002ED880 /* Security.framework */,
6171
B9CCD3AE24D41B000084C62F /* libWeChatSDK.a */,
6272
);
6373
name = Frameworks;

ios/WXApi.h

-198
This file was deleted.

0 commit comments

Comments
 (0)