WechatSDK for RubyMotion
- RubyMotion wrapper for WechatSDK
- Improving ...
Setup
Add WechatMotion to your Gemfile, and run bundle install
:
gem 'motion-cocoapods'
gem 'wechat-motion'
Edit the Rakefile of your RubyMotion project and add the following require line:
# After the line that require Rubymotion
require 'bundler'
Bundler.require
Then add WeChatSDK to your pods list and setup configuration in your Rakefile:
app.pods do
pod 'WeChatSDK'
end
MotionWechat::Config.setup(app, 'app_key', 'app_secret')
Initialize in app_delegate.rb
MotionWechat::API.instance.register
Usage
Basic:
MotionWechat::API.instance.send_webpage "http://www.rubymotion.com", \
title: "Ruby Motion", description: "Awesome way to write ios/osx app"
TODO
- delegete helpers, i.e.
WXApi.handleOpenURL(url, delegate:self)
Contributions
Fork, please!