Skip to content

MF-dosear/FlutterGamesKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlutterGamesKit

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

FlutterGamesKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'FlutterGamesKit'

Author

罗小黑不吹, dosear@qq.com, http://www.dosear.cn

Flutter 游戏 SDK iOS、Android双端

Flutter插件编写,支持iOS 和 Android,该工程是iOS参考demo

主要功能:

// 头文件导入
#import <FlutterGamesKit/FlutterGamesKit-umbrella.h>

/// AppDelegate方法
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    [FKSDK sdkApplication:application didFinishLaunchingWithOptions:launchOptions];
    
    return YES;
}

/// 初始化
+ (void)sdkInitWithParams:(NSDictionary *)params result:(Result)result;

/// 登录
+ (void)sdkLoginWithAuto:(BOOL)flag result:(Result)result;

/// 上传角色
+ (void)sdkSubmitRoleWithParams:(NSDictionary *)params result:(Result)result;

/// 支付
+ (void)sdkPsyWithParams:(NSDictionary *)params result:(Result)result;

/// 登出
+ (void)sdkLogoutWithResult:(Result)result;

/// 分享
+ (void)sdkShareWithTitle:(NSString *)title image:(NSString *)image url:(NSString *)url  result:(Result)result;

/// 打开链接
+ (void)sdkOpenUrlWithUrl:(NSString *)url;

/// 绑定手机号
+ (void)sdkBindPhone;

/// 检查网络
+ (void)sdkCheckNetBlock:(AFNetBlock)block;

License

FlutterGamesKit is available under the MIT license. See the LICENSE file for more info.

About

Flutter 游戏 SDK iOS、Android双端

Resources

License

Stars

Watchers

Forks

Packages

No packages published