Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
pikacode committed Jan 17, 2017
2 parents b1a7766 + 7b65a1f commit 7d868be
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
<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.0.0.a" framework="true" />
<source-file src="src/ios/lib/jcore-ios-1.0.0.a" framework="true" />
<source-file src="src/ios/lib/jpush-ios-3.0.1.a" framework="true" />
<source-file src="src/ios/lib/jcore-ios-1.1.0.a" framework="true" />
<resource-file src="src/ios/JPushConfig.plist" />

<framework src="CFNetwork.framework" weak="true" />
Expand Down
4 changes: 3 additions & 1 deletion src/ios/Plugins/JPushPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ -(void)initPlugin{
}

+(void)fireDocumentEvent:(NSString*)eventName jsString:(NSString*)jsString{
[SharedJPushPlugin.commandDelegate evalJs:[NSString stringWithFormat:@"cordova.fireDocumentEvent('jpush.%@',%@)", eventName, jsString]];
dispatch_async(dispatch_get_main_queue(), ^{
[SharedJPushPlugin.commandDelegate evalJs:[NSString stringWithFormat:@"cordova.fireDocumentEvent('jpush.%@',%@)", eventName, jsString]];
});
}

-(void)setTagsWithAlias:(CDVInvokedUrlCommand*)command{
Expand Down
4 changes: 2 additions & 2 deletions src/ios/lib/JPUSHService.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* | | | | / /\ \ | | | | \ \______| |
* | | | | /_/ \_\ | | | | \_________|
*
* Copyright (c) 2011 ~ 2015 Shenzhen HXHG. All rights reserved.
* Copyright (c) 2011 ~ 2017 Shenzhen HXHG. All rights reserved.
*/

#define JPUSH_VERSION_NUMBER 3.0.0
#define JPUSH_VERSION_NUMBER 3.0.1

#import <Foundation/Foundation.h>

Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 7d868be

Please sign in to comment.