Skip to content

Commit 16c7138

Browse files
author
daizi
committed
update: 提交 1.1.0.0 库
1 parent ce3d544 commit 16c7138

File tree

9 files changed

+582
-1
lines changed

9 files changed

+582
-1
lines changed

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.DS_Store
2+
3+
# Xcode
4+
#
5+
build/
6+
*.pbxuser
7+
!default.pbxuser
8+
*.mode1v3
9+
!default.mode1v3
10+
*.mode2v3
11+
!default.mode2v3
12+
*.perspectivev3
13+
!default.perspectivev3
14+
xcuserdata
15+
*.xccheckout
16+
*.moved-aside
17+
DerivedData
18+
*.hmap
19+
*.ipa
20+
*.xcuserstate
21+
22+
# CocoaPods
23+
#
24+
# We recommend against adding the Pods directory to your .gitignore. However
25+
# you should judge for yourself, the pros and cons are mentioned at:
26+
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
27+
#
28+
#Pods/

.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0

GeYanSdk.framework/GeYanSdk

1.9 MB
Binary file not shown.

GeYanSdk.framework/Headers/GeYanSdk.h

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
//
2+
// GySdk.h
3+
// GySdkLib
4+
//
5+
// Created by admin on 2017/4/21.
6+
// Copyright © 2017年 getui. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
/**
11+
* 通用接口回调
12+
*
13+
* @param isSuccess 成功标志位
14+
* @param error 错误信息
15+
*/
16+
typedef void (^GyCallback)(BOOL isSuccess, NSError *error);
17+
/**
18+
* 验证接口回调
19+
*
20+
* @param isCloudVerifySuccess 云验证成功标志位
21+
* @param isSmsSendSuccess 短信发送成功标志位
22+
* @param error 错误信息
23+
*/
24+
typedef void (^GyVerifyCallback)(BOOL isCloudVerifySuccess, BOOL isSmsSendSuccess, NSError *error);
25+
26+
/**
27+
* 验证类型
28+
*/
29+
30+
typedef NS_ENUM(NSUInteger, GyVerifyType) {
31+
/**
32+
* Cloud + Sms 验证
33+
*/
34+
GyVerifyTypeCloudSms,
35+
/**
36+
* Cloud 验证
37+
*/
38+
GyVerifyTypeCloud,
39+
/**
40+
* Sms 验证
41+
*/
42+
GyVerifyTypeSms,
43+
};
44+
45+
@interface GeYanSdk : NSObject
46+
47+
/**
48+
* 初始化个验 SDK
49+
*
50+
* @param aAppId appid
51+
*/
52+
53+
+ (void)startWithAppId:(NSString *)aAppId withCallback:(GyCallback)callback;
54+
55+
+ (void)verifyForType:(GyVerifyType)type withPnMD5:(NSString *)pnMD5 withSmsTemplateId:(NSString *)smsTemplateId withCallback:(GyVerifyCallback)callback;
56+
57+
+ (void)smsVerifyCode:(NSString *)code withPnMD5:(NSString *)pnMD5 withCallback:(GyCallback)callback;
58+
59+
+ (void)destory;
60+
61+
@end

GeYanSdk.framework/Info.plist

705 Bytes
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
framework module GeYanSdk {
2+
umbrella header "GeYanSdk.h"
3+
4+
export *
5+
module * { export * }
6+
}

GeYanSdk.podspec

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
#
2+
# Be sure to run `pod spec lint GeYanSdk.podspec' to ensure this is a
3+
# valid spec and to remove all comments including this before submitting the spec.
4+
#
5+
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
6+
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
7+
#
8+
9+
Pod::Spec.new do |s|
10+
11+
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
12+
#
13+
# These will help people to find your library, and whilst it
14+
# can feel like a chore to fill in it's definitely to your advantage. The
15+
# summary should be tweet-length, and the description more in depth.
16+
#
17+
18+
s.name = "GeYanSdk"
19+
s.version = "1.1.0.0"
20+
s.summary = "个验 iOS SDK CocoaPods 集成库"
21+
22+
# This description is used to generate tags and improve search results.
23+
# * Think: What does it do? Why did you write it? What is the focus?
24+
# * Try to keep it short, snappy and to the point.
25+
# * Write the description between the DESC delimiters below.
26+
# * Finally, don't worry about the indent, CocoaPods strips it!
27+
28+
s.homepage = "https://github.com/GetuiLaboratory/getui-gysdk-ios-cocoapods"
29+
# s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"
30+
31+
32+
# ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
33+
#
34+
# Licensing your code is important. See http://choosealicense.com for more info.
35+
# CocoaPods will detect a license file if there is a named LICENSE*
36+
# Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
37+
#
38+
39+
s.license = "MIT"
40+
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }
41+
42+
43+
# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
44+
#
45+
# Specify the authors of the library, with email addresses. Email addresses
46+
# of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
47+
# accepts just a name if you'd rather not provide an email address.
48+
#
49+
# Specify a social_media_url where others can refer to, for example a twitter
50+
# profile URL.
51+
#
52+
53+
s.author = { "个推" => "support@getui.com" }
54+
# Or just: s.author = "daizi"
55+
# s.authors = { "daizi" => "daizq@getui.com" }
56+
# s.social_media_url = "http://twitter.com/daizi"
57+
58+
# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
59+
#
60+
# If this Pod runs only on iOS or OS X, then specify the platform and
61+
# the deployment target. You can optionally include the target after the platform.
62+
#
63+
64+
s.platform = :ios
65+
s.platform = :ios, "7.0"
66+
67+
# When using multiple platforms
68+
s.ios.deployment_target = "7.0"
69+
# s.osx.deployment_target = "10.7"
70+
# s.watchos.deployment_target = "2.0"
71+
# s.tvos.deployment_target = "9.0"
72+
73+
74+
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
75+
#
76+
# Specify the location from where the source should be retrieved.
77+
# Supports git, hg, bzr, svn and HTTP.
78+
#
79+
80+
s.source = { :git => "https://github.com/GetuiLaboratory/getui-gysdk-ios-cocoapods", :tag => "#{s.version}" }
81+
82+
83+
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
84+
#
85+
# CocoaPods is smart about how it includes source code. For source files
86+
# giving a folder will include any swift, h, m, mm, c & cpp files.
87+
# For header files it will include any header in the folder.
88+
# Not including the public_header_files will make all headers public.
89+
#
90+
91+
# s.source_files = "Classes", "Classes/**/*.{h,m}"
92+
# s.exclude_files = "Classes/Exclude"
93+
94+
# s.public_header_files = "Classes/**/*.h"
95+
96+
97+
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
98+
#
99+
# A list of resources included with the Pod. These are copied into the
100+
# target bundle with a build phase script. Anything else will be cleaned.
101+
# You can preserve files from being cleaned, please don't preserve
102+
# non-essential files like tests, examples and documentation.
103+
#
104+
105+
# s.resource = "icon.png"
106+
# s.resources = "Resources/*.png"
107+
108+
# s.preserve_paths = "FilesToSave", "MoreFilesToSave"
109+
# 使用了第三方静态库
110+
# s.ios.vendored_library = 'libGeTuiSdk-1.6.3.0.a'
111+
#s.ios.vendored_libraries = ''
112+
s.ios.vendored_frameworks = 'GeYanSdk.framework'
113+
114+
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
115+
#
116+
# Link your library with frameworks, or libraries. Libraries do not include
117+
# the lib prefix of their name.
118+
#
119+
120+
# s.framework = "SomeFramework"
121+
s.frameworks = "AdSupportFramework"
122+
123+
# s.library = "iconv"
124+
s.libraries = "z"
125+
126+
127+
# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
128+
#
129+
# If your library depends on compiler flags you can set them in the xcconfig hash
130+
# where they will only apply to your library. If you depend on other Podspecs
131+
# you can include multiple dependencies to ensure it works.
132+
133+
s.requires_arc = true
134+
135+
# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
136+
# s.dependency "JSONKit", "~> 1.4"
137+
138+
end

0 commit comments

Comments
 (0)