Skip to content

Commit 0ed34c1

Browse files
committed
update jverification iOS sdk to 1.1.2 and add cocoapods integration
1 parent 20efbfe commit 0ed34c1

File tree

18 files changed

+49
-213
lines changed

18 files changed

+49
-213
lines changed

JVerificationRN.podspec

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
require 'json'
2+
pjson = JSON.parse(File.read('package.json'))
3+
4+
Pod::Spec.new do |s|
5+
6+
s.name = "JVerificationRN"
7+
s.version = pjson["version"]
8+
s.homepage = "https://github.com/jpush/jverification-react-native"
9+
s.summary = pjson["description"]
10+
s.license = pjson["license"]
11+
s.author = { "huminios" => "[email protected]" }
12+
13+
s.ios.deployment_target = '7.0'
14+
15+
s.source = { :git => "https://github.com/jpush/jpush-react-native.git", :tag => "#{s.version}" }
16+
s.source_files = 'ios/RCTJVerificationModule/*.{h,m}'
17+
s.preserve_paths = "*.js"
18+
s.frameworks = 'UIKit','CFNetwork','CoreFoundation','CoreTelephony','SystemConfiguration','CoreGraphics','Foundation','Security', 'AdSupport', 'CoreLocation', 'MobileCoreServices'
19+
s.weak_frameworks = 'UserNotifications'
20+
s.libraries = 'z','resolv', 'sqlite3'
21+
s.vendored_libraries = "ios/RCTJVerificationModule/*.a"
22+
s.vendored_frameworks = "ios/RCTJVerificationModule/*.framework"
23+
s.dependency 'React'
24+
end

ios/RCTJVerificationModule.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
624A30E1219B018B00B72BAF /* jverification-ios-1.1.0.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 624A30DE219B018A00B72BAF /* jverification-ios-1.1.0.a */; };
10+
622F1F6322310684006D205E /* libjverification-ios-1.1.2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 622F1F6222310684006D205E /* libjverification-ios-1.1.2.a */; };
1111
624A30E2219B018B00B72BAF /* account_verify_sdk_core.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 624A30DF219B018A00B72BAF /* account_verify_sdk_core.framework */; };
1212
624A30E3219B018B00B72BAF /* TYRZNoUISDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 624A30E0219B018B00B72BAF /* TYRZNoUISDK.framework */; };
1313
62890E552190232500803A2B /* RCTJVerificationModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 62890E542190232500803A2B /* RCTJVerificationModule.m */; };
@@ -40,8 +40,8 @@
4040
/* End PBXCopyFilesBuildPhase section */
4141

4242
/* Begin PBXFileReference section */
43+
622F1F6222310684006D205E /* libjverification-ios-1.1.2.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "libjverification-ios-1.1.2.a"; sourceTree = "<group>"; };
4344
624A30DD219B018700B72BAF /* JVERIFICATIONService.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JVERIFICATIONService.h; sourceTree = "<group>"; };
44-
624A30DE219B018A00B72BAF /* jverification-ios-1.1.0.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "jverification-ios-1.1.0.a"; sourceTree = "<group>"; };
4545
624A30DF219B018A00B72BAF /* account_verify_sdk_core.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = account_verify_sdk_core.framework; sourceTree = "<group>"; };
4646
624A30E0219B018B00B72BAF /* TYRZNoUISDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = TYRZNoUISDK.framework; sourceTree = "<group>"; };
4747
62890E502190232500803A2B /* libRCTJVerificationModule.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRCTJVerificationModule.a; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -72,11 +72,11 @@
7272
62890E7721902C7800803A2B /* Security.framework in Frameworks */,
7373
62890E7521902C6F00803A2B /* SystemConfiguration.framework in Frameworks */,
7474
62890E7321902C6700803A2B /* CoreTelephony.framework in Frameworks */,
75-
624A30E1219B018B00B72BAF /* jverification-ios-1.1.0.a in Frameworks */,
7675
624A30E2219B018B00B72BAF /* account_verify_sdk_core.framework in Frameworks */,
7776
62890E7121902C5D00803A2B /* libz.tbd in Frameworks */,
7877
62890E6F21902C5600803A2B /* libresolv.tbd in Frameworks */,
7978
62890E6D21902C4E00803A2B /* CoreFoundation.framework in Frameworks */,
79+
622F1F6322310684006D205E /* libjverification-ios-1.1.2.a in Frameworks */,
8080
62890E6B21902C4600803A2B /* CFNetwork.framework in Frameworks */,
8181
624A30E3219B018B00B72BAF /* TYRZNoUISDK.framework in Frameworks */,
8282
62890E6921902C4100803A2B /* CoreLocation.framework in Frameworks */,
@@ -108,8 +108,8 @@
108108
isa = PBXGroup;
109109
children = (
110110
624A30DF219B018A00B72BAF /* account_verify_sdk_core.framework */,
111-
624A30DE219B018A00B72BAF /* jverification-ios-1.1.0.a */,
112111
624A30DD219B018700B72BAF /* JVERIFICATIONService.h */,
112+
622F1F6222310684006D205E /* libjverification-ios-1.1.2.a */,
113113
624A30E0219B018B00B72BAF /* TYRZNoUISDK.framework */,
114114
62890E532190232500803A2B /* RCTJVerificationModule.h */,
115115
62890E542190232500803A2B /* RCTJVerificationModule.m */,

ios/RCTJVerificationModule/JVERIFICATIONService.h

100644100755
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import <Foundation/Foundation.h>
1010

11-
#define JVER_VERSION_NUMBER 1.1.0
11+
#define JVER_VERSION_NUMBER 1.1.2
1212

1313
@interface JVAuthConfig : NSObject
1414

@@ -61,4 +61,10 @@
6161
*/
6262
+ (void)setDebug:(BOOL)enable;
6363

64+
/*!
65+
* @abstract 判断当前手机网络环境是否可以进行认证
66+
* 可以认证返回YES, 不能返回NO
67+
*/
68+
+ (BOOL)checkVerifyEnable;
69+
6470
@end

ios/RCTJVerificationModule/TYRZNoUISDK.framework/Headers/TYRZLogin.h

100644100755
Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,23 @@
88

99
#import <Foundation/Foundation.h>
1010

11+
NS_ASSUME_NONNULL_BEGIN
12+
1113
@interface TYRZLogin : NSObject
1214

15+
+ (nullable instancetype)loginWithAppId:(NSString *)appid appKey:(NSString *)appkey;
1316

1417
/**
15-
获取本机号码校验需要使用的token
16-
17-
@param appid 开放平台申请得到的appid
18-
@param appkey 开放平台申请得到的appkey
19-
@param complete 方法回调
18+
本机号码校验获取token
19+
@param duration 请求时间(毫秒)
20+
@param complete 回调
2021
*/
21-
+ (void)getTokenWithAppId:(NSString *)appid appkey:(NSString *)appkey complete:(void (^)(id sender))complete;
22+
- (void)requestTokenWithTimeout:(NSTimeInterval)duration Complete:(void(^)(NSDictionary *))complete;
2223

2324
//返回SDK版本号
24-
+ (NSString *)version;
25+
+ (NSString *)sdkVersion;
2526

26-
/**
27-
控制台日志输出控制(默认关闭)
28-
29-
@param enable 开关参数
30-
*/
31-
+ (void)printConsoleEnable:(BOOL)enable;
3227

3328
@end
29+
30+
NS_ASSUME_NONNULL_END
1.18 MB
Binary file not shown.
-7 Bytes
Binary file not shown.

ios/RCTJVerificationModule/account_verify_sdk_core.framework/Headers/UnivAuthHelper.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
//
88

99
#import <Foundation/Foundation.h>
10-
#import "UnivResultListener.h"
10+
11+
typedef void (^UnivResultListener)(NSDictionary *data);
1112

1213
@interface UnivAuthHelper : NSObject
1314

1415
+(UnivAuthHelper *) getInstance;
1516

16-
-(void) getAccessCode :(NSString*) appId appSecret:(NSString*) appSecret listener:(UnivResultListener) listener;
17+
-(void) getAccessCode :(NSString*) appId appSecret:(NSString*) appSecret timeout:(double)timeout listener:(UnivResultListener) listener;
1718

1819
@end

ios/RCTJVerificationModule/account_verify_sdk_core.framework/Headers/UnivResultListener.h

Lines changed: 0 additions & 11 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)