更新iOS sdk到4.6.6

This commit is contained in:
huangshuni 2022-08-10 17:48:46 +08:00
parent 76d6c5ddb1
commit 4300730073
3 changed files with 18 additions and 124 deletions

View File

@ -49,7 +49,7 @@
<source-file src="src/ios/Plugins/AppDelegate+JPush.m" />
<header-file src="src/ios/lib/JPUSHService.h" />
<source-file src="src/ios/lib/jpush-ios-3.7.4.a" framework="true" />
<source-file src="src/ios/lib/jpush-ios-4.6.6.a" framework="true" />
<resource-file src="src/ios/JPushConfig.plist" />
<framework src="CFNetwork.framework" weak="true" />

140
src/ios/lib/JPUSHService.h Executable file → Normal file
View File

@ -9,7 +9,7 @@
* Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved.
*/
#define JPUSH_VERSION_NUMBER 3.7.4
#define JPUSH_VERSION_NUMBER 4.6.6
#import <Foundation/Foundation.h>
@ -23,12 +23,11 @@
@class UIView;
@protocol JPUSHRegisterDelegate;
@protocol JPUSHGeofenceDelegate;
@protocol JPushInMessageDelegate;
@protocol JPUSHNotiInMessageDelegate;
typedef void (^JPUSHTagsOperationCompletion)(NSInteger iResCode, NSSet *iTags, NSInteger seq);
typedef void (^JPUSHTagValidOperationCompletion)(NSInteger iResCode, NSSet *iTags, NSInteger seq, BOOL isBind);
typedef void (^JPUSHAliasOperationCompletion)(NSInteger iResCode, NSString *iAlias, NSInteger seq);
typedef void (^JPUSHInMssageCompletion)(NSInteger iResCode);
extern NSString *const kJPFNetworkIsConnectingNotification; // 正在连接中
extern NSString *const kJPFNetworkDidSetupNotification; // 建立连接
@ -58,17 +57,6 @@ typedef NS_ENUM(NSUInteger, JPAuthorizationStatus) {
JPAuthorizationStatusProvisional NS_AVAILABLE_IOS(12.0), // The application is authorized to post non-interruptive user notifications.
};
typedef NS_ENUM(NSInteger,JPushInMessageContentType){
JPushAdContentType = 1, //广告类型的inMessage
JPushNotiContentType = 2, //通知类型的inMessage
};
typedef NS_OPTIONS(NSUInteger, JPInMessageType) {
JPInMessageTypeBanner = (1 << 0), // 横幅
JPInMessageTypeModal = (1 << 1), // 模态
JPInMessageTypeFloat = (1 << 2), // 小浮窗
};
/*!
*
*/
@ -130,6 +118,11 @@ typedef NS_OPTIONS(NSUInteger, JPInMessageType) {
@property (nonatomic, copy) NSString *summaryArgument NS_AVAILABLE_IOS(12.0); //插入到通知摘要中的部分参数。iOS12以上有效。
@property (nonatomic, assign) NSUInteger summaryArgumentCount NS_AVAILABLE_IOS(12.0); //插入到通知摘要中的项目数。iOS12以上有效。
@property (nonatomic, copy) NSString *targetContentIdentifier NS_AVAILABLE_IOS(13.0); // An identifier for the content of the notification used by the system to customize the scene to be activated when tapping on a notification.
//iOS15以上的新增属性 interruptionLevel为枚举UNNotificationInterruptionLevel
// The interruption level determines the degree of interruption associated with the notification
@property (nonatomic, assign) NSUInteger interruptionLevel NS_AVAILABLE_IOS(15.0);
// Relevance score determines the sorting for the notification across app notifications. The expected range is between 0.0f and 1.0f.
@property (nonatomic, assign) double relevanceScore NS_AVAILABLE_IOS(15.0);
@end
@ -662,94 +655,14 @@ typedef NS_OPTIONS(NSUInteger, JPInMessageType) {
*/
+ (void)setLocationEanable:(BOOL)isEanble;
/*!
* @abstract
*
* @discussion JPushInMessageDelegate的代理对象
*
*/
+ (void)setInMessageDelegate:(id<JPushInMessageDelegate>)inMessageDelegate;
/*!
* @abstract inMessageView的父控件
* @abstract
*
* @discussion windowSDK默认取当前APP顶层的Window
* @discussion JPushNotiInMessageDelegate的代理对象
*
*/
+ (void)setInMessageSuperView:(UIView *)view;
/*!
* @abstract
*
* @discussion
*
*/
+ (void)pullInMessageCompletion:(JPUSHInMssageCompletion)completion __attribute__((deprecated("JPush 3.7.0 版本已过期")));
/*!
* @abstract
*
* @param types
*
* @discussion
*/
+ (void)pullInMessageWithTypes:(NSUInteger)types completion:(JPUSHInMssageCompletion)completion __attribute__((deprecated("JPush 3.7.0 版本已过期")));
/*!
* @abstract
*
* @param adPosition 广
*
* @discussion
*/
+ (void)pullInMessageWithAdPosition:(NSString *)adPosition completion:(JPUSHInMssageCompletion)completion;
/*!
* @abstract
*
* @param params : @"adPosition" -> 广 NSString, @"event" -> NSString
*
* @discussion
*/
+ (void)pullInMessageWithParams:(NSDictionary *)params completion:(JPUSHInMssageCompletion)completion;
/*!
* @abstract
*
* @param event
*
*/
+ (void)triggerInMessageByEvent:(NSString *)event;
/*!
* @abstract sdk当前切换到的页面名称
*
* @param className
*
* @discussion
inapp的功能inapp页面延迟展示功能都依赖于该接口调用
viewDidAppear中调用此方法inapp部分功能不完善viewController的基类中调用使method swizzling方法交换viewController的viewDidAppear方法
*
*/
+ (void)currentViewControllerName:(NSString *)className;
/*!
* @abstract
*
* @param pageName
*
* @discussion viewDidAppear中调用此方法viewController的基类中调用使method swizzling方法交换viewController的viewDidAppear方法
*
*/
+ (void)triggerInMessageByPageChange:(NSString *)pageName __attribute__((deprecated("JPush 3.7.4 版本已过期")));
+ (void)setNotiInMessageDelegate:(id<JPUSHNotiInMessageDelegate>)notiInMessageDelegate;
///----------------------------------------------------
@ -857,44 +770,25 @@ callbackSelector:(SEL)cbSelector
*/
- (void)jpushGeofenceIdentifer:(NSString *)geofenceId didExitRegion:(NSDictionary *)userInfo error:(NSError *)error __attribute__((deprecated("JPush 3.6.0 版本已过期")));
@end
@protocol JPushInMessageDelegate <NSObject>
@optional
/**
*,
*/
- (BOOL)jPushInMessageIsAllowedInMessagePop;
@protocol JPUSHNotiInMessageDelegate <NSObject>
/**
*
*/
- (void)jPushInMessageAlreadyPop __attribute__((deprecated("JPush 3.4.0 版本已过期")));
/**
*
*/
- (void)jPushInMessageAlreadyDisappear;
/**
inMessage展示的回调
@param messageType inMessage
@param content 广
@param content
*/
- (void)jPushInMessageAlreadyPopInMessageType:(JPushInMessageContentType)messageType Content:(NSDictionary *)content;
- (void)jPushNotiInMessageDidShowWithContent:(NSDictionary *)content;
/**
inMessage点击的回
@param messageType inMessage
@param content 广
@param content
*/
- (void)jpushInMessagedidClickInMessageType:(JPushInMessageContentType)messageType Content:(NSDictionary *)content;
- (void)jPushNotiInMessageDidClickWithContent:(NSDictionary *)content;
@end

Binary file not shown.