ios 更新到jpush5.4.0

This commit is contained in:
huangshuni 2024-09-30 15:54:37 +08:00
parent 71b4bbe93f
commit 679f68c7fd
8 changed files with 103 additions and 3 deletions

View File

@ -48,7 +48,7 @@
<header-file src="src/ios/Plugins/AppDelegate+JPush.h" /> <header-file src="src/ios/Plugins/AppDelegate+JPush.h" />
<source-file src="src/ios/Plugins/AppDelegate+JPush.m" /> <source-file src="src/ios/Plugins/AppDelegate+JPush.m" />
<source-file src="src/ios/lib/jpush-ios-5.2.0.xcframework" framework="true" /> <source-file src="src/ios/lib/jpush-ios-5.4.0.xcframework" framework="true" />
<resource-file src="src/ios/JPushConfig.plist" /> <resource-file src="src/ios/JPushConfig.plist" />
<framework src="CFNetwork.framework" weak="true" /> <framework src="CFNetwork.framework" weak="true" />

View File

@ -9,7 +9,7 @@
* Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved. * Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved.
*/ */
#define JPUSH_VERSION_NUMBER 5.2.0 #define JPUSH_VERSION_NUMBER 5.4.0
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
@ -175,6 +175,19 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {
@end @end
@interface JPushCollectControl : NSObject
/* ssid SSID信息。设置为NO,不采集SSID信息。默认为YES。 */
@property (nonatomic, assign) BOOL ssid;
/* bssid BSSID信息。设置为NO,不采集BSSID信息。默认为YES。 */
@property (nonatomic, assign) BOOL bssid;
/* cell 基站信息。设置为NO,不采集基站信息。默认为YES。*/
@property (nonatomic, assign) BOOL cell;
/* gps 经纬度信息。设置为NO,不采集经纬度信息。默认为YES。 */
@property (nonatomic, assign) BOOL gps;
@end
/*! /*!
* JPush * JPush
*/ */
@ -763,6 +776,13 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {
*/ */
+ (void)setLogOFF; + (void)setLogOFF;
/*!
@param control
*/
+ (void)setCollectControl:(JPushCollectControl *)control;
/*! /*!
* @abstract SDK地理位置权限开关 * @abstract SDK地理位置权限开关
* *
@ -779,6 +799,13 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {
*/ */
+ (void)setPushEnable:(BOOL)isEnable completion:(nullable void (^)(NSInteger iResCode))completion; + (void)setPushEnable:(BOOL)isEnable completion:(nullable void (^)(NSInteger iResCode))completion;
/*!
* @abstract
*
* @param isEnable YES:NO:
*
*/
+ (void)setSmartPushEnable:(BOOL)isEnable;
/*! /*!
* @abstract * @abstract

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
</dict>
</array>
</dict>
</plist>

View File

@ -9,7 +9,7 @@
* Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved. * Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved.
*/ */
#define JPUSH_VERSION_NUMBER 5.2.0 #define JPUSH_VERSION_NUMBER 5.4.0
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
@ -175,6 +175,19 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {
@end @end
@interface JPushCollectControl : NSObject
/* ssid SSID信息。设置为NO,不采集SSID信息。默认为YES。 */
@property (nonatomic, assign) BOOL ssid;
/* bssid BSSID信息。设置为NO,不采集BSSID信息。默认为YES。 */
@property (nonatomic, assign) BOOL bssid;
/* cell 基站信息。设置为NO,不采集基站信息。默认为YES。*/
@property (nonatomic, assign) BOOL cell;
/* gps 经纬度信息。设置为NO,不采集经纬度信息。默认为YES。 */
@property (nonatomic, assign) BOOL gps;
@end
/*! /*!
* JPush * JPush
*/ */
@ -763,6 +776,13 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {
*/ */
+ (void)setLogOFF; + (void)setLogOFF;
/*!
@param control
*/
+ (void)setCollectControl:(JPushCollectControl *)control;
/*! /*!
* @abstract SDK地理位置权限开关 * @abstract SDK地理位置权限开关
* *
@ -779,6 +799,13 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {
*/ */
+ (void)setPushEnable:(BOOL)isEnable completion:(nullable void (^)(NSInteger iResCode))completion; + (void)setPushEnable:(BOOL)isEnable completion:(nullable void (^)(NSInteger iResCode))completion;
/*!
* @abstract
*
* @param isEnable YES:NO:
*
*/
+ (void)setSmartPushEnable:(BOOL)isEnable;
/*! /*!
* @abstract * @abstract

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
</dict>
</array>
</dict>
</plist>