Skip to content

Commit

Permalink
Add ==> 新增 Alfred 快捷发送消息 & 打开聊天窗口
Browse files Browse the repository at this point in the history
  • Loading branch information
TKkk-iOSer committed Mar 18, 2018
1 parent 58459c5 commit c26e34b
Show file tree
Hide file tree
Showing 19 changed files with 411 additions and 21 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 更新日志

### [v1.6 (2018-03-18)](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS/releases/tag/v1.6)

* 新增 Alfred 快捷发送消息 & 打开聊天窗口

### [v1.5.1 (2018-03-03)](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS/releases/tag/v1.5.1)

* 新增语音远程控制 mac
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ FOUNDATION_EXPORT const unsigned char WeChatPluginVersionString[];
@property(nonatomic) MMChatsViewController *chatsViewController;
@property(retain, nonatomic) MMMainWindowController *mainWindowController;
@property(nonatomic) BOOL isAppTerminating;
- (void)startANewChatWithContact:(id)arg1;
- (void)onAuthOK:(BOOL)arg1;
@end

@interface ContactStorage : NSObject
Expand All @@ -88,8 +90,12 @@ FOUNDATION_EXPORT const unsigned char WeChatPluginVersionString[];
@interface WCContactData : NSObject
@property(retain, nonatomic) NSString *m_nsUsrName; // @synthesize m_nsUsrName;
@property(nonatomic) unsigned int m_uiFriendScene; // @synthesize m_uiFriendScene;
@property(retain, nonatomic) NSString *m_nsNickName; // 用户昵称
@property(retain, nonatomic) NSString *m_nsRemark; // 备注
@property(retain, nonatomic) NSString *m_nsHeadImgUrl; // 头像
- (BOOL)isBrandContact;
- (BOOL)isSelf;
- (id)getGroupDisplayName;
@end

@interface MessageData : NSObject
Expand All @@ -103,7 +109,7 @@ FOUNDATION_EXPORT const unsigned char WeChatPluginVersionString[];
@property(nonatomic) int msgCreateTime;
@property(nonatomic) int mesLocalID;
@property(nonatomic) long long mesSvrID;
@property(retain, nonatomic) NSString *msgVoiceText;
@property(retain, nonatomic) NSString *msgVoiceText;
@property(copy, nonatomic) NSString *m_nsEmoticonMD5;
- (BOOL)isChatRoomMessage;
- (id)groupChatSenderDisplayName;
Expand Down Expand Up @@ -153,6 +159,7 @@ FOUNDATION_EXPORT const unsigned char WeChatPluginVersionString[];
- (void)UntopSessionByUserName:(id)arg1;
- (void)deleteSessionWithoutSyncToServerWithUserName:(id)arg1;
- (void)sortSessions;
- (id)getContact:(id)arg1;
@end

@interface LogoutCGI : NSTableCellView
Expand Down Expand Up @@ -184,4 +191,31 @@ FOUNDATION_EXPORT const unsigned char WeChatPluginVersionString[];
- (id)getEmotionDataWithMD5:(id)arg1;
@end

@interface MMComplexContactSearchTaskMgr : NSObject
+ (id)sharedInstance;
- (void)doComplexContactSearch:(id)arg1 searchScene:(unsigned long long)arg2 complete:(void (^)(NSArray *, NSArray *, NSArray *))arg3 cancelable:(BOOL)arg4;
@end

@interface MMComplexContactSearchResult : NSObject
@property(retain, nonatomic) NSString *fieldValue;
@property(retain, nonatomic) WCContactData *contact;
@property(nonatomic) unsigned long long fieldType; // 1:备注 3:昵称 4:微信号 8:省份 7:市 9:国家
@end

@interface MMComplexGroupContactMembersSearchResult : NSObject
@property(retain, nonatomic) NSMutableArray<MMComplexContactSearchResult *> *membersSearchReults;
@end

@interface MMComplexGroupContactSearchResult : NSObject
@property(nonatomic) unsigned long long searchType; // 1 名称 2 群成员名称
@property(retain) WCContactData *groupContact;
@property(retain, nonatomic) MMComplexGroupContactMembersSearchResult *groupMembersResult;
@end

@interface MMAvatarService : NSObject
- (NSString *)avatarCachePath;
@end

@interface NSString (MD5)
- (id)md5String;
@end
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.5.1</string>
<string>1.6</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
Expand All @@ -41,6 +41,7 @@
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2017年 tk. All rights reserved.</string>
<key>versionInfo</key>
<string>👉 v1.5.1 (2018-03-03):\n新增语音远程控制 mac\n修复快捷回复后消息未读数未更新的问题\n优化防撤回提醒 (显示撤回人昵称 &amp; 消息类型) \n\n上版本更新内容(v1.5.0):\n👉🏻 新增自动登录开关 \n👉🏼 新增小助手检测更新 \n👉🏽 新增通知中心快捷回复 \n👉🏾 新增表情包复制 &amp; 存储 \n👉🏿 自动回复 &amp; 远程控制设置存储到本地 \n\n</string>
<string>👉 v1.6 (2018-03-18):\n新增 Alfred 快捷发消息 &amp; 打开聊天窗口\n\n之前版本更新内容:\n👉 (v1.5.1) :\n👉🏻 新增语音远程控制 mac\n👉🏼 修复快捷回复后消息未读数未更新的问题\n👉🏽 优化防撤回提醒 (显示撤回人昵称 &amp; 消息类型) \n\n👉 (v1.5.0):\n👉🏻 新增自动登录开关 \n👉🏼 新增小助手检测更新 \n👉🏽 新增通知中心快捷回复 \n👉🏾 新增表情包复制 &amp; 存储 \n👉🏿 自动回复 &amp; 远程控制设置存储到本地 \n\n👉🏻 优化防撤回提醒。 \n👉🏼 新增自动登录开关。 \n👉🏽 新增表情复制 &amp; 存储。 \n👉🏾 新增通知中心快捷回复。\n👉🏿 自动回复 &amp; 远程控制设置存储到本地。\n\n
</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ FOUNDATION_EXPORT const unsigned char WeChatPluginVersionString[];
@property(nonatomic) MMChatsViewController *chatsViewController;
@property(retain, nonatomic) MMMainWindowController *mainWindowController;
@property(nonatomic) BOOL isAppTerminating;
- (void)startANewChatWithContact:(id)arg1;
- (void)onAuthOK:(BOOL)arg1;
@end

@interface ContactStorage : NSObject
Expand All @@ -88,8 +90,12 @@ FOUNDATION_EXPORT const unsigned char WeChatPluginVersionString[];
@interface WCContactData : NSObject
@property(retain, nonatomic) NSString *m_nsUsrName; // @synthesize m_nsUsrName;
@property(nonatomic) unsigned int m_uiFriendScene; // @synthesize m_uiFriendScene;
@property(retain, nonatomic) NSString *m_nsNickName; // 用户昵称
@property(retain, nonatomic) NSString *m_nsRemark; // 备注
@property(retain, nonatomic) NSString *m_nsHeadImgUrl; // 头像
- (BOOL)isBrandContact;
- (BOOL)isSelf;
- (id)getGroupDisplayName;
@end

@interface MessageData : NSObject
Expand All @@ -103,7 +109,7 @@ FOUNDATION_EXPORT const unsigned char WeChatPluginVersionString[];
@property(nonatomic) int msgCreateTime;
@property(nonatomic) int mesLocalID;
@property(nonatomic) long long mesSvrID;
@property(retain, nonatomic) NSString *msgVoiceText;
@property(retain, nonatomic) NSString *msgVoiceText;
@property(copy, nonatomic) NSString *m_nsEmoticonMD5;
- (BOOL)isChatRoomMessage;
- (id)groupChatSenderDisplayName;
Expand Down Expand Up @@ -153,6 +159,7 @@ FOUNDATION_EXPORT const unsigned char WeChatPluginVersionString[];
- (void)UntopSessionByUserName:(id)arg1;
- (void)deleteSessionWithoutSyncToServerWithUserName:(id)arg1;
- (void)sortSessions;
- (id)getContact:(id)arg1;
@end

@interface LogoutCGI : NSTableCellView
Expand Down Expand Up @@ -184,4 +191,31 @@ FOUNDATION_EXPORT const unsigned char WeChatPluginVersionString[];
- (id)getEmotionDataWithMD5:(id)arg1;
@end

@interface MMComplexContactSearchTaskMgr : NSObject
+ (id)sharedInstance;
- (void)doComplexContactSearch:(id)arg1 searchScene:(unsigned long long)arg2 complete:(void (^)(NSArray *, NSArray *, NSArray *))arg3 cancelable:(BOOL)arg4;
@end

@interface MMComplexContactSearchResult : NSObject
@property(retain, nonatomic) NSString *fieldValue;
@property(retain, nonatomic) WCContactData *contact;
@property(nonatomic) unsigned long long fieldType; // 1:备注 3:昵称 4:微信号 8:省份 7:市 9:国家
@end

@interface MMComplexGroupContactMembersSearchResult : NSObject
@property(retain, nonatomic) NSMutableArray<MMComplexContactSearchResult *> *membersSearchReults;
@end

@interface MMComplexGroupContactSearchResult : NSObject
@property(nonatomic) unsigned long long searchType; // 1 名称 2 群成员名称
@property(retain) WCContactData *groupContact;
@property(retain, nonatomic) MMComplexGroupContactMembersSearchResult *groupMembersResult;
@end

@interface MMAvatarService : NSObject
- (NSString *)avatarCachePath;
@end

@interface NSString (MD5)
- (id)md5String;
@end
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.5.1</string>
<string>1.6</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
Expand All @@ -41,6 +41,7 @@
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2017年 tk. All rights reserved.</string>
<key>versionInfo</key>
<string>👉 v1.5.1 (2018-03-03):\n新增语音远程控制 mac\n修复快捷回复后消息未读数未更新的问题\n优化防撤回提醒 (显示撤回人昵称 &amp; 消息类型) \n\n上版本更新内容(v1.5.0):\n👉🏻 新增自动登录开关 \n👉🏼 新增小助手检测更新 \n👉🏽 新增通知中心快捷回复 \n👉🏾 新增表情包复制 &amp; 存储 \n👉🏿 自动回复 &amp; 远程控制设置存储到本地 \n\n</string>
<string>👉 v1.6 (2018-03-18):\n新增 Alfred 快捷发消息 &amp; 打开聊天窗口\n\n之前版本更新内容:\n👉 (v1.5.1) :\n👉🏻 新增语音远程控制 mac\n👉🏼 修复快捷回复后消息未读数未更新的问题\n👉🏽 优化防撤回提醒 (显示撤回人昵称 &amp; 消息类型) \n\n👉 (v1.5.0):\n👉🏻 新增自动登录开关 \n👉🏼 新增小助手检测更新 \n👉🏽 新增通知中心快捷回复 \n👉🏾 新增表情包复制 &amp; 存储 \n👉🏿 自动回复 &amp; 远程控制设置存储到本地 \n\n👉🏻 优化防撤回提醒。 \n👉🏼 新增自动登录开关。 \n👉🏽 新增表情复制 &amp; 存储。 \n👉🏾 新增通知中心快捷回复。\n👉🏿 自动回复 &amp; 远程控制设置存储到本地。\n\n
</string>
</dict>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ FOUNDATION_EXPORT const unsigned char WeChatPluginVersionString[];
@property(nonatomic) MMChatsViewController *chatsViewController;
@property(retain, nonatomic) MMMainWindowController *mainWindowController;
@property(nonatomic) BOOL isAppTerminating;
- (void)startANewChatWithContact:(id)arg1;
- (void)onAuthOK:(BOOL)arg1;
@end

@interface ContactStorage : NSObject
Expand All @@ -88,8 +90,12 @@ FOUNDATION_EXPORT const unsigned char WeChatPluginVersionString[];
@interface WCContactData : NSObject
@property(retain, nonatomic) NSString *m_nsUsrName; // @synthesize m_nsUsrName;
@property(nonatomic) unsigned int m_uiFriendScene; // @synthesize m_uiFriendScene;
@property(retain, nonatomic) NSString *m_nsNickName; // 用户昵称
@property(retain, nonatomic) NSString *m_nsRemark; // 备注
@property(retain, nonatomic) NSString *m_nsHeadImgUrl; // 头像
- (BOOL)isBrandContact;
- (BOOL)isSelf;
- (id)getGroupDisplayName;
@end

@interface MessageData : NSObject
Expand All @@ -103,7 +109,7 @@ FOUNDATION_EXPORT const unsigned char WeChatPluginVersionString[];
@property(nonatomic) int msgCreateTime;
@property(nonatomic) int mesLocalID;
@property(nonatomic) long long mesSvrID;
@property(retain, nonatomic) NSString *msgVoiceText;
@property(retain, nonatomic) NSString *msgVoiceText;
@property(copy, nonatomic) NSString *m_nsEmoticonMD5;
- (BOOL)isChatRoomMessage;
- (id)groupChatSenderDisplayName;
Expand Down Expand Up @@ -153,6 +159,7 @@ FOUNDATION_EXPORT const unsigned char WeChatPluginVersionString[];
- (void)UntopSessionByUserName:(id)arg1;
- (void)deleteSessionWithoutSyncToServerWithUserName:(id)arg1;
- (void)sortSessions;
- (id)getContact:(id)arg1;
@end

@interface LogoutCGI : NSTableCellView
Expand Down Expand Up @@ -184,4 +191,31 @@ FOUNDATION_EXPORT const unsigned char WeChatPluginVersionString[];
- (id)getEmotionDataWithMD5:(id)arg1;
@end

@interface MMComplexContactSearchTaskMgr : NSObject
+ (id)sharedInstance;
- (void)doComplexContactSearch:(id)arg1 searchScene:(unsigned long long)arg2 complete:(void (^)(NSArray *, NSArray *, NSArray *))arg3 cancelable:(BOOL)arg4;
@end

@interface MMComplexContactSearchResult : NSObject
@property(retain, nonatomic) NSString *fieldValue;
@property(retain, nonatomic) WCContactData *contact;
@property(nonatomic) unsigned long long fieldType; // 1:备注 3:昵称 4:微信号 8:省份 7:市 9:国家
@end

@interface MMComplexGroupContactMembersSearchResult : NSObject
@property(retain, nonatomic) NSMutableArray<MMComplexContactSearchResult *> *membersSearchReults;
@end

@interface MMComplexGroupContactSearchResult : NSObject
@property(nonatomic) unsigned long long searchType; // 1 名称 2 群成员名称
@property(retain) WCContactData *groupContact;
@property(retain, nonatomic) MMComplexGroupContactMembersSearchResult *groupMembersResult;
@end

@interface MMAvatarService : NSObject
- (NSString *)avatarCachePath;
@end

@interface NSString (MD5)
- (id)md5String;
@end
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.5.1</string>
<string>1.6</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
Expand All @@ -41,6 +41,7 @@
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2017年 tk. All rights reserved.</string>
<key>versionInfo</key>
<string>👉 v1.5.1 (2018-03-03):\n新增语音远程控制 mac\n修复快捷回复后消息未读数未更新的问题\n优化防撤回提醒 (显示撤回人昵称 &amp; 消息类型) \n\n上版本更新内容(v1.5.0):\n👉🏻 新增自动登录开关 \n👉🏼 新增小助手检测更新 \n👉🏽 新增通知中心快捷回复 \n👉🏾 新增表情包复制 &amp; 存储 \n👉🏿 自动回复 &amp; 远程控制设置存储到本地 \n\n</string>
<string>👉 v1.6 (2018-03-18):\n新增 Alfred 快捷发消息 &amp; 打开聊天窗口\n\n之前版本更新内容:\n👉 (v1.5.1) :\n👉🏻 新增语音远程控制 mac\n👉🏼 修复快捷回复后消息未读数未更新的问题\n👉🏽 优化防撤回提醒 (显示撤回人昵称 &amp; 消息类型) \n\n👉 (v1.5.0):\n👉🏻 新增自动登录开关 \n👉🏼 新增小助手检测更新 \n👉🏽 新增通知中心快捷回复 \n👉🏾 新增表情包复制 &amp; 存储 \n👉🏿 自动回复 &amp; 远程控制设置存储到本地 \n\n👉🏻 优化防撤回提醒。 \n👉🏼 新增自动登录开关。 \n👉🏽 新增表情复制 &amp; 存储。 \n👉🏾 新增通知中心快捷回复。\n👉🏿 自动回复 &amp; 远程控制设置存储到本地。\n\n
</string>
</dict>
</plist>
Binary file not shown.
Binary file modified Other/Products/Debug/WeChatPlugin.framework/WeChatPlugin
Binary file not shown.
Binary file added Other/ScreenShots/alfred_search.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
platform :osx, '10.10'
platform :osx, '10.12'
inhibit_all_warnings!

target 'WeChatPlugin' do
pod 'GCDWebServer', '~> 3.4.2'
Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

## WeChatPlugin-MacOS

![platform](https://img.shields.io/badge/platform-macos-lightgrey.svg) [![release](https://img.shields.io/badge/release-v1.5.1-brightgreen.svg)](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS/releases) ![support](https://img.shields.io/badge/support-wechat%202.3.10-blue.svg) [![GitHub license](https://img.shields.io/github/license/TKkk-iOSer/WeChatPlugin-MacOS.svg)](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS/blob/master/LICENSE)
![platform](https://img.shields.io/badge/platform-macos-lightgrey.svg) [![release](https://img.shields.io/badge/release-v1.6-brightgreen.svg)](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS/releases) ![support](https://img.shields.io/badge/support-wechat%202.3.10-blue.svg) [![GitHub license](https://img.shields.io/github/license/TKkk-iOSer/WeChatPlugin-MacOS.svg)](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS/blob/master/LICENSE)


微信小助手 v1.5.1
微信小助手 v1.6

![微信小助手.png](./Other/ScreenShots/wechatplugin.png)

Expand All @@ -15,6 +14,8 @@
---

### 更新日志
* [新增 Alfred 快捷发送消息 & 打开聊天窗口(2018-03-18)](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS/releases/tag/v1.6)

* [新增语音远程控制mac & 优化撤回消息、快捷回复(2018-03-03)](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS/releases/tag/v1.5.1)

* [新增小助手检测更新&表情包复制存储等等 (2018-02-24)](https://github.com/TKkk-iOSer/WeChatPlugin-MacOS/releases/tag/v1.5.0)
Expand Down Expand Up @@ -44,6 +45,7 @@
* 通知中心快捷回复
* 聊天窗口表情包复制 & 存储
* 小助手检测更新提醒
* alfred 快捷发送消息 & 打开窗口

远程控制:

Expand All @@ -60,7 +62,7 @@
---

### TODO
- [ ] 增加`Alfred`搜索
- [x] 增加`Alfred`搜索
- [ ] 查看单向好友
- [ ] 语音(视频转发)
- [ ] 增加 brew 安装方式
Expand Down Expand Up @@ -99,6 +101,8 @@
* 语音远程控制 mac
![语音远程控制](./Other/ScreenShots/voice_remote_control.gif)

* Alfred 快速搜索
![alfred](./Other/ScreenShots/alfred_search.gif)

---

Expand All @@ -124,7 +128,7 @@

![Permission denied.png](http://upload-images.jianshu.io/upload_images/965383-11e4480553ba086e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

* 下载 WeChatPlugin, 用Xcode打开,先进行 Build (`command + B`),之后 Run (`command + R`)即可启动微信,此时插件注入完成。
* 下载 WeChatPlugin, 进行`Pod install`用Xcode打开,先进行 Build (`command + B`),之后 Run (`command + R`)即可启动微信,此时插件注入完成。

* 若 Error,提示找不到 Framework,先进行 Build。
* 若Error, 需要配置环境,请参考[我的博客](http://www.tkkk.fun/2017/04/21/macOS%E9%80%86%E5%90%91-%E5%BE%AE%E4%BF%A1%E5%B0%8F%E5%8A%A9%E6%89%8B/)
Expand Down
Loading

0 comments on commit c26e34b

Please sign in to comment.