Latest 0.0.2
Homepage https://github.com/duanruiying/DryAlishare
License MIT
Platforms ios 10.0, requires ARC
Frameworks UIKit, Foundation
Authors

iOS: 简化支付宝分享

官网:

Prerequisites

  • Xcode 10.2.1
  • iOS 10.0 or later
  • ObjC、Swift

Installation

  • pod ‘DryAlishare’
  • URL Types 添加回调scheme(identifier:"alipayShare"、URL Schemes:"ap+AppID")
  • info.plist文件属性LSApplicationQueriesSchemes中增加alipayshare(注意大小写)

Features

  1. 注册SDK,需要在在蚂蚁金服开放平台申请AppID
    [DryAlishare registerSDK:"appID"];
  2. 处理支付宝通过URL启动App时传递的数据
    - (BOOL)application:(UIApplication *)app openURL:(nonnull NSURL *)url options:(nonnull NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
    [DryAlishare handleOpenURL:url];
    return YES;
    }
  3. 分享文本
    
    DryAlishareText *text = [[DryAlishareText alloc] init];
    [DryAlishare shareText:text completion:^(DryAlishareCode code) {

}];

4. 分享图片

DryAlishareImage *image = [[DryAlishareImage alloc] init];
[DryAlishare shareImage:image completion:^(DryAlishareCode code) {

}];

5. 分享web

DryAlishareWeb *web = [[DryAlishareWeb alloc] init];
[DryAlishare shareWeb:web completion:^(DryAlishareCode code) {

}];

Latest podspec

{
    "name": "DryAlishare",
    "version": "0.0.2",
    "summary": "DryAlishare",
    "homepage": "https://github.com/duanruiying/DryAlishare",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "duanruiying": "[email protected]"
    },
    "source": {
        "git": "https://github.com/duanruiying/DryAlishare.git",
        "tag": "0.0.2"
    },
    "description": "TODO: iOSu7b80u5316u652fu4ed8u5b9du5206u4eab.",
    "platforms": {
        "ios": "10.0"
    },
    "requires_arc": true,
    "user_target_xcconfig": {
        "OTHER_LDFLAGS": [
            "-w"
        ]
    },
    "static_framework": true,
    "pod_target_xcconfig": {
        "OTHER_LDFLAGS": [
            "-w",
            "-all_load"
        ],
        "VALID_ARCHS[sdk=iphonesimulator*]": ""
    },
    "source_files": "DryAlishare/Classes/Code/**/*",
    "public_header_files": "DryAlishare/Classes/Code/Public/**/*.h",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "vendored_libraries": "DryAlishare/Classes/lib/*.a"
}

Pin It on Pinterest

Share This