Skip to content

Commit bb713c3

Browse files
authored
Merge pull request #390 from jpush/dev
Dev
2 parents 74cee4b + 49b1a79 commit bb713c3

File tree

11 files changed

+389
-9
lines changed

11 files changed

+389
-9
lines changed
-198 KB
Binary file not shown.
174 KB
Binary file not shown.

example/android/app/src/main/assets/index.android.bundle

Lines changed: 366 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
�iԨ���\�]w�[�� �a�d

example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"start": "node node_modules/react-native/local-cli/cli.js start"
88
},
99
"dependencies": {
10-
"jcore-react-native": "^1.1.7",
11-
"jpush-react-native": "^2.1.1",
10+
"jcore-react-native": "^1.2.0",
11+
"jpush-react-native": "^2.1.2",
1212
"react": "^16.0.0-alpha.12",
1313
"react-native": "^0.47.1",
1414
"react-native-onesignal": "^3.0.4",

example/react-native-android/push_activity.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,18 @@ export default class PushActivity extends React.Component {
115115
JPushModule.addGetRegistrationIdListener((registrationId) => {
116116
console.log("Device register succeed, registrationId " + registrationId);
117117
});
118+
// var notification = {
119+
// buildId: 1,
120+
// id: 5,
121+
// title: 'jpush',
122+
// content: 'This is a test!!!!',
123+
// extra: {
124+
// key1: 'value1',
125+
// key2: 'value2'
126+
// },
127+
// fireTime: 2000,
128+
// }
129+
// JPushModule.sendLocalNotification(notification);
118130
}
119131

120132
componentWillUnmount() {

ios/RCTJPushModule.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/* Begin PBXBuildFile section */
1010
624386D71E096B8800F69E07 /* RCTJPushActionQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = 624386D21E096B8800F69E07 /* RCTJPushActionQueue.m */; };
1111
624386D81E096B8800F69E07 /* RCTJPushModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 624386D41E096B8800F69E07 /* RCTJPushModule.m */; };
12-
626F957A1F2EF8CC009C6BB5 /* jpush-ios-3.0.6.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 626F95791F2EF8CC009C6BB5 /* jpush-ios-3.0.6.a */; };
12+
626A78821FA336AA0074D518 /* jpush-ios-3.0.7.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 626A78811FA336AA0074D518 /* jpush-ios-3.0.7.a */; };
1313
/* End PBXBuildFile section */
1414

1515
/* Begin PBXCopyFilesBuildPhase section */
@@ -30,7 +30,7 @@
3030
624386D21E096B8800F69E07 /* RCTJPushActionQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTJPushActionQueue.m; 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>"; };
33-
626F95791F2EF8CC009C6BB5 /* jpush-ios-3.0.6.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "jpush-ios-3.0.6.a"; sourceTree = "<group>"; };
33+
626A78811FA336AA0074D518 /* jpush-ios-3.0.7.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "jpush-ios-3.0.7.a"; sourceTree = "<group>"; };
3434
6280980A1CEDC407000D3A81 /* libRCTJPushModule.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRCTJPushModule.a; sourceTree = BUILT_PRODUCTS_DIR; };
3535
/* End PBXFileReference section */
3636

@@ -39,7 +39,7 @@
3939
isa = PBXFrameworksBuildPhase;
4040
buildActionMask = 2147483647;
4141
files = (
42-
626F957A1F2EF8CC009C6BB5 /* jpush-ios-3.0.6.a in Frameworks */,
42+
626A78821FA336AA0074D518 /* jpush-ios-3.0.7.a in Frameworks */,
4343
);
4444
runOnlyForDeploymentPostprocessing = 0;
4545
};
@@ -65,7 +65,7 @@
6565
6280980C1CEDC407000D3A81 /* RCTJPushModule */ = {
6666
isa = PBXGroup;
6767
children = (
68-
626F95791F2EF8CC009C6BB5 /* jpush-ios-3.0.6.a */,
68+
626A78811FA336AA0074D518 /* jpush-ios-3.0.7.a */,
6969
623D05801EA4D29100F31FBE /* JPUSHService.h */,
7070
624386D11E096B8800F69E07 /* RCTJPushActionQueue.h */,
7171
624386D21E096B8800F69E07 /* RCTJPushActionQueue.m */,

ios/RCTJPushModule/JPUSHService.h

Lines changed: 2 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 3.0.6
12+
#define JPUSH_VERSION_NUMBER 3.0.7
1313

1414
#import <Foundation/Foundation.h>
1515

@@ -222,6 +222,7 @@ typedef NS_OPTIONS(NSUInteger, JPAuthorizationOptions) {
222222

223223
/**
224224
删除指定tags
225+
225226
@param tags 需要删除的tags集合
226227
@param completion 响应回调
227228
@param seq 请求序列号

0 commit comments

Comments
 (0)