Skip to content

Commit 133ef7f

Browse files
author
lcTerry
committed
Merge remote-tracking branch 'main/master'
# Conflicts: # example/package.json # package.json
2 parents 9f4be94 + 316e442 commit 133ef7f

File tree

10 files changed

+1068
-10
lines changed

10 files changed

+1068
-10
lines changed

JPush.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ Pod::Spec.new do |s|
1818
s.frameworks = 'UIKit','CFNetwork','CoreFoundation','CoreTelephony','SystemConfiguration','CoreGraphics','Foundation','Security'
1919
s.weak_frameworks = 'UserNotifications'
2020
s.libraries = 'z','resolv'
21-
s.vendored_libraries = "ios/RCTJPushModule/*.a"
21+
s.vendored_frameworks = "ios/RCTJPushModule/*.xcframework"
2222
s.dependency 'React'
2323
end

ios/RCTJPushModule.xcodeproj/project.pbxproj

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 46;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
1010
5C103CA7236041E7000AD3DA /* RCTJPushEventQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C103CA6236041E7000AD3DA /* RCTJPushEventQueue.m */; };
11-
6202416F2ABD3DA900D71FBD /* libjpush-ios-5.2.0.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6202416E2ABD3DA900D71FBD /* libjpush-ios-5.2.0.a */; };
11+
623F02B02BDA15F70041AD17 /* jpush-ios-5.3.0.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 623F02AF2BDA15F70041AD17 /* jpush-ios-5.3.0.xcframework */; };
1212
624386D81E096B8800F69E07 /* RCTJPushModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 624386D41E096B8800F69E07 /* RCTJPushModule.m */; };
1313
/* End PBXBuildFile section */
1414

@@ -27,19 +27,18 @@
2727
/* Begin PBXFileReference section */
2828
5C103CA5236041E7000AD3DA /* RCTJPushEventQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTJPushEventQueue.h; sourceTree = "<group>"; };
2929
5C103CA6236041E7000AD3DA /* RCTJPushEventQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTJPushEventQueue.m; sourceTree = "<group>"; };
30-
6202416E2ABD3DA900D71FBD /* libjpush-ios-5.2.0.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libjpush-ios-5.2.0.a"; path = "RCTJPushModule/libjpush-ios-5.2.0.a"; sourceTree = "<group>"; };
30+
623F02AF2BDA15F70041AD17 /* jpush-ios-5.3.0.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = "jpush-ios-5.3.0.xcframework"; path = "RCTJPushModule/jpush-ios-5.3.0.xcframework"; sourceTree = "<group>"; };
3131
624386D31E096B8800F69E07 /* RCTJPushModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTJPushModule.h; sourceTree = "<group>"; };
3232
624386D41E096B8800F69E07 /* RCTJPushModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTJPushModule.m; sourceTree = "<group>"; };
3333
6280980A1CEDC407000D3A81 /* libRCTJPushModule.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRCTJPushModule.a; sourceTree = BUILT_PRODUCTS_DIR; };
34-
62DA93BC21E8679300208462 /* JPUSHService.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JPUSHService.h; sourceTree = "<group>"; };
3534
/* End PBXFileReference section */
3635

3736
/* Begin PBXFrameworksBuildPhase section */
3837
628098071CEDC407000D3A81 /* Frameworks */ = {
3938
isa = PBXFrameworksBuildPhase;
4039
buildActionMask = 2147483647;
4140
files = (
42-
6202416F2ABD3DA900D71FBD /* libjpush-ios-5.2.0.a in Frameworks */,
41+
623F02B02BDA15F70041AD17 /* jpush-ios-5.3.0.xcframework in Frameworks */,
4342
);
4443
runOnlyForDeploymentPostprocessing = 0;
4544
};
@@ -49,7 +48,7 @@
4948
5CF8E647231E3A9200B12200 /* Frameworks */ = {
5049
isa = PBXGroup;
5150
children = (
52-
6202416E2ABD3DA900D71FBD /* libjpush-ios-5.2.0.a */,
51+
623F02AF2BDA15F70041AD17 /* jpush-ios-5.3.0.xcframework */,
5352
);
5453
name = Frameworks;
5554
sourceTree = "<group>";
@@ -76,7 +75,6 @@
7675
children = (
7776
5C103CA5236041E7000AD3DA /* RCTJPushEventQueue.h */,
7877
5C103CA6236041E7000AD3DA /* RCTJPushEventQueue.m */,
79-
62DA93BC21E8679300208462 /* JPUSHService.h */,
8078
624386D31E096B8800F69E07 /* RCTJPushModule.h */,
8179
624386D41E096B8800F69E07 /* RCTJPushModule.m */,
8280
);
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>AvailableLibraries</key>
6+
<array>
7+
<dict>
8+
<key>HeadersPath</key>
9+
<string>Headers</string>
10+
<key>LibraryIdentifier</key>
11+
<string>ios-arm64</string>
12+
<key>LibraryPath</key>
13+
<string>libJPushM.a</string>
14+
<key>SupportedArchitectures</key>
15+
<array>
16+
<string>arm64</string>
17+
</array>
18+
<key>SupportedPlatform</key>
19+
<string>ios</string>
20+
</dict>
21+
<dict>
22+
<key>HeadersPath</key>
23+
<string>Headers</string>
24+
<key>LibraryIdentifier</key>
25+
<string>ios-arm64_x86_64-simulator</string>
26+
<key>LibraryPath</key>
27+
<string>libJPushM.a</string>
28+
<key>SupportedArchitectures</key>
29+
<array>
30+
<string>arm64</string>
31+
<string>x86_64</string>
32+
</array>
33+
<key>SupportedPlatform</key>
34+
<string>ios</string>
35+
<key>SupportedPlatformVariant</key>
36+
<string>simulator</string>
37+
</dict>
38+
</array>
39+
<key>CFBundlePackageType</key>
40+
<string>XFWK</string>
41+
<key>XCFrameworkFormatVersion</key>
42+
<string>1.0</string>
43+
</dict>
44+
</plist>

ios/RCTJPushModule/JPUSHService.h renamed to ios/RCTJPushModule/jpush-ios-5.3.0.xcframework/ios-arm64/Headers/JPUSHService.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved.
1010
*/
1111

12-
#define JPUSH_VERSION_NUMBER 5.2.0
12+
#define JPUSH_VERSION_NUMBER 5.3.0
1313

1414
#import <Foundation/Foundation.h>
1515

@@ -175,6 +175,13 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {
175175

176176
@end
177177

178+
@interface JPushCollectControl : NSObject
179+
180+
/* gps 经纬度信息。设置为NO,不采集经纬度信息。默认为YES。 */
181+
@property (nonatomic, assign) BOOL gps;
182+
183+
@end
184+
178185
/*!
179186
* JPush 核心头文件
180187
*/
@@ -763,6 +770,13 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {
763770
*/
764771
+ (void)setLogOFF;
765772

773+
/*!
774+
数据采集控制
775+
776+
@param control 数据采集配置。
777+
*/
778+
+ (void)setCollectControl:(JPushCollectControl *)control;
779+
766780
/*!
767781
* @abstract 设置SDK地理位置权限开关
768782
*
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrivacyTrackingDomains</key>
6+
<array/>
7+
<key>NSPrivacyCollectedDataTypes</key>
8+
<array/>
9+
<key>NSPrivacyTracking</key>
10+
<false/>
11+
<key>NSPrivacyAccessedAPITypes</key>
12+
<array>
13+
<dict>
14+
<key>NSPrivacyAccessedAPITypeReasons</key>
15+
<array>
16+
<string>CA92.1</string>
17+
</array>
18+
<key>NSPrivacyAccessedAPIType</key>
19+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
20+
</dict>
21+
</array>
22+
</dict>
23+
</plist>

ios/RCTJPushModule/libjpush-ios-5.2.0.a renamed to ios/RCTJPushModule/jpush-ios-5.3.0.xcframework/ios-arm64/libJPushM.a

2.4 MB
Binary file not shown.

0 commit comments

Comments
 (0)