Skip to content

Commit d5f87a9

Browse files
KenChoiKenChoi
authored andcommitted
Merge branch 'dev' of github.com:jpush/jmessage-react-plugin into dev
2 parents db8a7bc + 6e1e074 commit d5f87a9

File tree

9 files changed

+59
-16
lines changed

9 files changed

+59
-16
lines changed

ios/RCTJMessageModule.xcodeproj/project.pbxproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/* Begin PBXBuildFile section */
1010
6212EB1A1F3C34BB00BDF51A /* RCTJMessageModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 6212EB191F3C34BB00BDF51A /* RCTJMessageModule.m */; };
1111
6212EB1B1F3C34BB00BDF51A /* RCTJMessageModule.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 6212EB181F3C34BB00BDF51A /* RCTJMessageModule.h */; };
12-
623E44691FE245FA00FB7AD8 /* JMessage.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 623E44681FE245FA00FB7AD8 /* JMessage.framework */; };
12+
626BCF17200888E0006F7C15 /* JMessage.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 626BCF16200888E0006F7C15 /* JMessage.framework */; };
1313
62D683E21F4469820083CDF6 /* JMessageHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 62D683E11F4469820083CDF6 /* JMessageHelper.m */; };
1414
/* End PBXBuildFile section */
1515

@@ -30,7 +30,7 @@
3030
6212EB151F3C34BB00BDF51A /* libRCTJMessageModule.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRCTJMessageModule.a; sourceTree = BUILT_PRODUCTS_DIR; };
3131
6212EB181F3C34BB00BDF51A /* RCTJMessageModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTJMessageModule.h; sourceTree = "<group>"; };
3232
6212EB191F3C34BB00BDF51A /* RCTJMessageModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTJMessageModule.m; sourceTree = "<group>"; };
33-
623E44681FE245FA00FB7AD8 /* JMessage.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = JMessage.framework; sourceTree = "<group>"; };
33+
626BCF16200888E0006F7C15 /* JMessage.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = JMessage.framework; sourceTree = "<group>"; };
3434
62D683E01F4469820083CDF6 /* JMessageHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JMessageHelper.h; sourceTree = "<group>"; };
3535
62D683E11F4469820083CDF6 /* JMessageHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JMessageHelper.m; sourceTree = "<group>"; };
3636
/* End PBXFileReference section */
@@ -40,7 +40,7 @@
4040
isa = PBXFrameworksBuildPhase;
4141
buildActionMask = 2147483647;
4242
files = (
43-
623E44691FE245FA00FB7AD8 /* JMessage.framework in Frameworks */,
43+
626BCF17200888E0006F7C15 /* JMessage.framework in Frameworks */,
4444
);
4545
runOnlyForDeploymentPostprocessing = 0;
4646
};
@@ -66,7 +66,7 @@
6666
6212EB171F3C34BB00BDF51A /* RCTJMessageModule */ = {
6767
isa = PBXGroup;
6868
children = (
69-
623E44681FE245FA00FB7AD8 /* JMessage.framework */,
69+
626BCF16200888E0006F7C15 /* JMessage.framework */,
7070
62D683E01F4469820083CDF6 /* JMessageHelper.h */,
7171
62D683E11F4469820083CDF6 /* JMessageHelper.m */,
7272
6212EB181F3C34BB00BDF51A /* RCTJMessageModule.h */,
@@ -238,6 +238,7 @@
238238
FRAMEWORK_SEARCH_PATHS = (
239239
"$(inherited)",
240240
"$(PROJECT_DIR)/RCTJMessageModule",
241+
"$(PROJECT_DIR)",
241242
);
242243
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../react-native/React/**";
243244
OTHER_LDFLAGS = "-ObjC";
@@ -253,6 +254,7 @@
253254
FRAMEWORK_SEARCH_PATHS = (
254255
"$(inherited)",
255256
"$(PROJECT_DIR)/RCTJMessageModule",
257+
"$(PROJECT_DIR)",
256258
);
257259
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../react-native/React/**";
258260
OTHER_LDFLAGS = "-ObjC";

ios/RCTJMessageModule/JMessage.framework/Headers/JMSGConstants.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,15 @@ typedef NS_ENUM(NSInteger, JMSGContentType) {
143143
kJMSGContentTypePrompt = 8,
144144
};
145145

146-
146+
/*!
147+
* 提示性消息的类型 - 消息撤回提示、后台自定义消息提示等
148+
*/
149+
typedef NS_ENUM(NSInteger, JMSGPromptContentType) {
150+
/// 消息撤回提示
151+
kJMSGPromptContentTypeRetractMessage = 0,
152+
/// 自定义提示
153+
kJMSGPromptContentTypeAPPRbag = 1 << 0,
154+
};
147155

148156
/*!
149157
* 消息状态

ios/RCTJMessageModule/JMessage.framework/Headers/JMSGEventDelegate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
*
7474
* @param event 申请入群事件
7575
*
76-
* @discussion 申请入群事件相关参数请查看 JMSGApplyJoinGroupEvent 类,在群主审批此事件时需要传递事件的相关参数
76+
* @discussion 只有群主和管理员能收到此事件;申请入群事件相关参数请查看 JMSGApplyJoinGroupEvent 类,在群主审批此事件时需要传递事件的相关参数
7777
*
7878
* @since 3.4.0
7979
*/
@@ -85,7 +85,7 @@
8585
*
8686
* @param event 拒绝入群申请事件
8787
*
88-
* @discussion 拒绝的相关描述和原因请查看 JMSGGroupAdminRejectApplicationEvent 类
88+
* @discussion 只有申请方和被申请方会收到此事件;拒绝的相关描述和原因请查看 JMSGGroupAdminRejectApplicationEvent 类
8989
*
9090
* @since 3.4.0
9191
*/

ios/RCTJMessageModule/JMessage.framework/Headers/JMSGGroup.h

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,33 @@
1515
@class JMSGUser,JMSGApplyJoinGroupEvent;
1616

1717
/*!
18-
* 群信息类(用于修改群信息、创建群)
18+
* @abstract 群信息类(此类仅用于修改群信息、创建群、群信息展示)
19+
*
20+
* #### 注意:
21+
*
22+
* 如果想要获取群的相关属性值、调用相关接口,需要通过 gid 获取到 JMSGGroup 对象再使用;
23+
*
24+
* 本类中可读可写属性表示可以用于群信息修改、创建群传值,只读属性说明是不允许客户端修改的,只做展示;
1925
*/
2026
@interface JMSGGroupInfo : NSObject
2127

28+
/** 群 id */
29+
@property(nonatomic, strong, readonly) NSString *JMSG_NONNULL gid;
2230
/** 群名称 */
23-
@property(nonatomic, strong) NSString *JMSG_NONNULL name;
31+
@property(nonatomic, strong, readwrite) NSString *JMSG_NONNULL name;
2432
/** 群描述 */
25-
@property(nonatomic, strong) NSString *JMSG_NONNULL desc;
26-
/** 群头像数据 */
27-
@property(nonatomic, strong) NSData *JMSG_NONNULL avatarData;
33+
@property(nonatomic, strong, readwrite) NSString *JMSG_NONNULL desc;
34+
/** 群头像数据,此属性只用户修改群信息,切勿从此类拿来此属性来展示 */
35+
@property(nonatomic, strong, readwrite) NSData *JMSG_NONNULL avatarData;
36+
/** 群头像的媒体文件ID */
37+
@property(nonatomic, strong, readonly) NSString *JMSG_NONNULL avatar;
2838
/** 群组类型,私有、公开,注意:仅限于创建群组时设置,创建成功之后不允许修改群类型*/
29-
@property(nonatomic, assign) JMSGGroupType groupType;
39+
@property(nonatomic, assign, readwrite) JMSGGroupType groupType;
40+
/** 群组人数上限*/
41+
@property(nonatomic, strong, readonly) NSString *JMSG_NONNULL maxMemberCount;
3042

3143
@end
3244

33-
3445
/*!
3546
* 群组
3647
*
@@ -155,6 +166,21 @@ JMSG_ASSUME_NONNULL_BEGIN
155166
*/
156167
+ (void)shieldList:(JMSGCompletionHandler)handler;
157168

169+
/*!
170+
* @abstract 分页获取 appkey 下所有公开群信息
171+
*
172+
* @param appkey 群组所在的 AppKey,不填则默认为当前应用 AppKey
173+
* @param start 分页获取的下标,第一页从 index = 0 开始
174+
* @param count 每一页的数量,最大值为500
175+
* @param handler 结果回调,NSArray<JMSGGroupInfo>
176+
*
177+
* #### 注意:返回数据中不是 JMSGGroup 类型,而是 JMSGGroupInfo 类型,只能用于展示信息,如果想要调用相关群组 API 接口则需要通过 gid 获取到 JMSGGroup 对象才可以调用
178+
*/
179+
+ (void)getPublicGroupInfoWithAppKey:(NSString *JMSG_NULLABLE)appkey
180+
start:(NSInteger)start
181+
count:(NSInteger)count
182+
completionHandler:(JMSGCompletionHandler)handler;
183+
158184
/*!
159185
* @abstract 申请加入群组
160186
*

ios/RCTJMessageModule/JMessage.framework/Headers/JMSGMessage.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ JMSG_ASSUME_NONNULL_BEGIN
622622
* @param value 待更新的value,不能为null,类型只能为 NSNumber 和 NSString
623623
* @param key 待更新value对应的key,不能为null
624624
*
625+
* @discussion 如果 message 中没有该 key 对应的 extra 值,则会插入该新值
625626
*/
626627
- (BOOL)updateMessageExtraValue:(id)value forKey:(NSString *)key;
627628

ios/RCTJMessageModule/JMessage.framework/Headers/JMSGPromptContent.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ JMSG_ASSUME_NONNULL_BEGIN
2727
*/
2828
@property(nonatomic,strong, readonly) NSString *promptText;
2929

30+
/*!
31+
* @abstract 提示性消息的类型
32+
*
33+
* @discussion 比如:消息撤回提示、后台自定义消息提示等
34+
*/
35+
@property(nonatomic,assign, readonly) JMSGPromptContentType promptType;
3036

3137
// 不支持使用的初始化方法
3238
- (instancetype)init NS_UNAVAILABLE;

ios/RCTJMessageModule/JMessage.framework/Headers/JMessage.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ extern NSString *const kJMSGServiceErrorNotification; // 错误
5454
@interface JMessage : NSObject
5555

5656
/*! JMessage SDK 版本号。用于展示 SDK 的版本信息 */
57-
#define JMESSAGE_VERSION @"3.4.0"
57+
#define JMESSAGE_VERSION @"3.4.1"
5858

5959
/*! JMessage SDK 构建ID. 每次构建都会增加 */
60-
#define JMESSAGE_BUILD 199
60+
#define JMESSAGE_BUILD 205
6161

6262
/*! API Version - int for program logic. SDK API 有变更时会增加 */
6363
extern NSInteger const JMESSAGE_API_VERSION;
0 Bytes
Binary file not shown.
295 KB
Binary file not shown.

0 commit comments

Comments
 (0)