diff --git a/plugin.xml b/plugin.xml index 0698585..b90b363 100644 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="5.8.0"> JPush JPush for cordova plugin @@ -48,7 +48,7 @@ - + @@ -244,7 +244,7 @@ android:writePermission="${applicationId}.permission.JPUSH_MESSAGE" /> - + diff --git a/src/android/libs/jpush-android-5.7.0.jar b/src/android/libs/jpush-android-5.7.0.jar deleted file mode 100644 index da3eec0..0000000 Binary files a/src/android/libs/jpush-android-5.7.0.jar and /dev/null differ diff --git a/src/android/libs/jpush-android-5.8.0.jar b/src/android/libs/jpush-android-5.8.0.jar new file mode 100644 index 0000000..40b21cf Binary files /dev/null and b/src/android/libs/jpush-android-5.8.0.jar differ diff --git a/src/ios/lib/jpush-ios-5.6.0.xcframework/Info.plist b/src/ios/lib/jpush-ios-5.7.0.xcframework/Info.plist similarity index 100% rename from src/ios/lib/jpush-ios-5.6.0.xcframework/Info.plist rename to src/ios/lib/jpush-ios-5.7.0.xcframework/Info.plist diff --git a/src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64/Headers/JPUSHService.h b/src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64/Headers/JPUSHService.h similarity index 98% rename from src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64/Headers/JPUSHService.h rename to src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64/Headers/JPUSHService.h index 62d58d7..1624d45 100644 --- a/src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64/Headers/JPUSHService.h +++ b/src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64/Headers/JPUSHService.h @@ -9,7 +9,7 @@ * Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved. */ -#define JPUSH_VERSION_NUMBER 5.6.0 +#define JPUSH_VERSION_NUMBER 5.7.0 #import @@ -796,6 +796,16 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) { */ + (void)setCollectControl:(JPushCollectControl *)control; +/*! + * @abstract 设置心跳时间间隔 + * + * @param interval 心跳时间间隔 单位为秒, 取值范围为[30,290] + * + * @discussion 请在初始化函数之前调用该接口。 + * + */ ++ (void)setHeartBeatTimeInterval:(NSInteger)interval; + /*! * @abstract 设置SDK地理位置权限开关 * @@ -820,6 +830,15 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) { */ + (void)setSmartPushEnable:(BOOL)isEnable; +/*! + * @abstract 设置应用数据洞察扩展功能开关 + * + * @param isEnable YES:开启,NO:关闭,默认是开启。 + * + */ ++ (void)setDataInsightsEnable:(BOOL)isEnable; + + /*! * @abstract 设置应用内提醒消息的代理 * diff --git a/src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64/PrivacyInfo.xcprivacy b/src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64/PrivacyInfo.xcprivacy similarity index 100% rename from src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64/PrivacyInfo.xcprivacy rename to src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64/PrivacyInfo.xcprivacy diff --git a/src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64/libJPush.a b/src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64/libJPush.a similarity index 86% rename from src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64/libJPush.a rename to src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64/libJPush.a index e908c9c..1e6e073 100644 Binary files a/src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64/libJPush.a and b/src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64/libJPush.a differ diff --git a/src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64_x86_64-simulator/Headers/JPUSHService.h b/src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64_x86_64-simulator/Headers/JPUSHService.h similarity index 98% rename from src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64_x86_64-simulator/Headers/JPUSHService.h rename to src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64_x86_64-simulator/Headers/JPUSHService.h index 62d58d7..1624d45 100644 --- a/src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64_x86_64-simulator/Headers/JPUSHService.h +++ b/src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64_x86_64-simulator/Headers/JPUSHService.h @@ -9,7 +9,7 @@ * Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved. */ -#define JPUSH_VERSION_NUMBER 5.6.0 +#define JPUSH_VERSION_NUMBER 5.7.0 #import @@ -796,6 +796,16 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) { */ + (void)setCollectControl:(JPushCollectControl *)control; +/*! + * @abstract 设置心跳时间间隔 + * + * @param interval 心跳时间间隔 单位为秒, 取值范围为[30,290] + * + * @discussion 请在初始化函数之前调用该接口。 + * + */ ++ (void)setHeartBeatTimeInterval:(NSInteger)interval; + /*! * @abstract 设置SDK地理位置权限开关 * @@ -820,6 +830,15 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) { */ + (void)setSmartPushEnable:(BOOL)isEnable; +/*! + * @abstract 设置应用数据洞察扩展功能开关 + * + * @param isEnable YES:开启,NO:关闭,默认是开启。 + * + */ ++ (void)setDataInsightsEnable:(BOOL)isEnable; + + /*! * @abstract 设置应用内提醒消息的代理 * diff --git a/src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64_x86_64-simulator/PrivacyInfo.xcprivacy b/src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64_x86_64-simulator/PrivacyInfo.xcprivacy similarity index 100% rename from src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64_x86_64-simulator/PrivacyInfo.xcprivacy rename to src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64_x86_64-simulator/PrivacyInfo.xcprivacy diff --git a/src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64_x86_64-simulator/libJPush.a b/src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64_x86_64-simulator/libJPush.a similarity index 72% rename from src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64_x86_64-simulator/libJPush.a rename to src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64_x86_64-simulator/libJPush.a index c6da05e..d81a0c4 100644 Binary files a/src/ios/lib/jpush-ios-5.6.0.xcframework/ios-arm64_x86_64-simulator/libJPush.a and b/src/ios/lib/jpush-ios-5.7.0.xcframework/ios-arm64_x86_64-simulator/libJPush.a differ