Commit 420ed2df341b4e59ce9bc3f8c7a225761cec625d
1 parent
5840cc77
no message
Showing
35 changed files
with
1791 additions
and
2 deletions
CNLiveBUserAgreement.podspec
0 → 100644
| 1 | +# | |
| 2 | +# Be sure to run `pod lib lint CNLiveBUserAgreement.podspec' to ensure this is a | |
| 3 | +# valid spec before submitting. | |
| 4 | +# | |
| 5 | +# Any lines starting with a # are optional, but their use is encouraged | |
| 6 | +# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html | |
| 7 | +# | |
| 8 | + | |
| 9 | +Pod::Spec.new do |s| | |
| 10 | + s.name = 'CNLiveBUserAgreement' | |
| 11 | + s.version = '0.0.1' | |
| 12 | + s.summary = 'CNLiveBUserAgreement.' | |
| 13 | + | |
| 14 | +# This description is used to generate tags and improve search results. | |
| 15 | +# * Think: What does it do? Why did you write it? What is the focus? | |
| 16 | +# * Try to keep it short, snappy and to the point. | |
| 17 | +# * Write the description between the DESC delimiters below. | |
| 18 | +# * Finally, don't worry about the indent, CocoaPods strips it! | |
| 19 | + | |
| 20 | + s.description = <<-DESC | |
| 21 | +TODO: 网家家企业端-用户协议. | |
| 22 | + DESC | |
| 23 | + | |
| 24 | + s.homepage = 'http://bj.gitlab.cnlive.com/ios-team/CNLiveBUserAgreement' | |
| 25 | + # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' | |
| 26 | + s.license = { :type => 'MIT', :file => 'LICENSE' } | |
| 27 | + s.author = { '153993236@qq.com' => 'zhangxiaowen@cnlive.com' } | |
| 28 | + s.source = { :git => 'http://bj.gitlab.cnlive.com/ios-team/CNLiveBUserAgreement.git', :tag => s.version.to_s } | |
| 29 | + # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>' | |
| 30 | + | |
| 31 | + s.ios.deployment_target = '9.0' | |
| 32 | + | |
| 33 | + s.source_files = 'CNLiveBUserAgreement/Classes/**/*' | |
| 34 | + | |
| 35 | + s.resource_bundles = { | |
| 36 | + 'CNLiveBUserAgreement' => ['CNLiveBUserAgreement/Assets/CNLiveBUserAgreement.xcassets'] | |
| 37 | + } | |
| 38 | + | |
| 39 | + s.public_header_files = 'CNLiveBUserAgreement/Classes/**/*.h' | |
| 40 | + # s.frameworks = 'UIKit', 'MapKit' | |
| 41 | + s.dependency 'CNLiveTripartiteManagement/AFNetworking' | |
| 42 | + | |
| 43 | + # 数据请求 | |
| 44 | + s.dependency 'CNLiveRequestBastKit' | |
| 45 | + | |
| 46 | + # 类别 | |
| 47 | + s.dependency 'CNLiveCategory' | |
| 48 | + | |
| 49 | + # 管理类 | |
| 50 | + s.dependency 'CNLiveManager' | |
| 51 | + | |
| 52 | + # 基类 | |
| 53 | + s.dependency 'CNLiveBaseClass' | |
| 54 | + | |
| 55 | + s.static_framework = true | |
| 56 | +end | ... | ... |
CNLiveBUserAgreement/Assets/.gitkeep
0 → 100644
CNLiveBUserAgreement/Assets/CNLiveBUserAgreement.xcassets/Contents.json
0 → 100644
CNLiveBUserAgreement/Assets/CNLiveBUserAgreement.xcassets/web_black_back.imageset/Contents.json
0 → 100644
| 1 | +{ | |
| 2 | + "images" : [ | |
| 3 | + { | |
| 4 | + "idiom" : "universal", | |
| 5 | + "scale" : "1x" | |
| 6 | + }, | |
| 7 | + { | |
| 8 | + "idiom" : "universal", | |
| 9 | + "filename" : "web_black_back@2x.png", | |
| 10 | + "scale" : "2x" | |
| 11 | + }, | |
| 12 | + { | |
| 13 | + "idiom" : "universal", | |
| 14 | + "filename" : "web_black_back@3x.png", | |
| 15 | + "scale" : "3x" | |
| 16 | + } | |
| 17 | + ], | |
| 18 | + "info" : { | |
| 19 | + "version" : 1, | |
| 20 | + "author" : "xcode" | |
| 21 | + } | |
| 22 | +} | |
| 0 | 23 | \ No newline at end of file | ... | ... |
CNLiveBUserAgreement/Assets/CNLiveBUserAgreement.xcassets/web_black_back.imageset/web_black_back@2x.png
0 → 100644
1.49 KB
CNLiveBUserAgreement/Assets/CNLiveBUserAgreement.xcassets/web_black_back.imageset/web_black_back@3x.png
0 → 100644
1.79 KB
CNLiveBUserAgreement/Assets/CNLiveBUserAgreement.xcassets/web_black_close.imageset/Contents.json
0 → 100644
| 1 | +{ | |
| 2 | + "images" : [ | |
| 3 | + { | |
| 4 | + "idiom" : "universal", | |
| 5 | + "scale" : "1x" | |
| 6 | + }, | |
| 7 | + { | |
| 8 | + "idiom" : "universal", | |
| 9 | + "filename" : "web_black_close@2x.png", | |
| 10 | + "scale" : "2x" | |
| 11 | + }, | |
| 12 | + { | |
| 13 | + "idiom" : "universal", | |
| 14 | + "filename" : "web_black_close@3x.png", | |
| 15 | + "scale" : "3x" | |
| 16 | + } | |
| 17 | + ], | |
| 18 | + "info" : { | |
| 19 | + "version" : 1, | |
| 20 | + "author" : "xcode" | |
| 21 | + } | |
| 22 | +} | |
| 0 | 23 | \ No newline at end of file | ... | ... |
CNLiveBUserAgreement/Assets/CNLiveBUserAgreement.xcassets/web_black_close.imageset/web_black_close@2x.png
0 → 100644
2.92 KB
CNLiveBUserAgreement/Assets/CNLiveBUserAgreement.xcassets/web_black_close.imageset/web_black_close@3x.png
0 → 100644
4.14 KB
CNLiveBUserAgreement/Classes/.gitkeep
0 → 100644
CNLiveBUserAgreement/Classes/CNLiveUserAgreementController.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveUserAgreementController.h | |
| 3 | +// CNLiveUserAgreementManager | |
| 4 | +// | |
| 5 | +// Created by 153993236@qq.com on 04/13/2019. | |
| 6 | +// Copyright (c) 2019 153993236@qq.com. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "CNLiveInteractionWebController.h" | |
| 10 | + | |
| 11 | +NS_ASSUME_NONNULL_BEGIN | |
| 12 | + | |
| 13 | +@interface CNLiveUserAgreementController : CNLiveInteractionWebController | |
| 14 | + | |
| 15 | + | |
| 16 | +@end | |
| 17 | + | |
| 18 | +NS_ASSUME_NONNULL_END | ... | ... |
CNLiveBUserAgreement/Classes/CNLiveUserAgreementController.m
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveUserAgreementController.h | |
| 3 | +// CNLiveUserAgreementManager | |
| 4 | +// | |
| 5 | +// Created by 153993236@qq.com on 04/13/2019. | |
| 6 | +// Copyright (c) 2019 153993236@qq.com. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "CNLiveUserAgreementController.h" | |
| 10 | +#import "WKWebViewJavascriptBridge.h" | |
| 11 | + | |
| 12 | +#import "CNLiveWebView.h" | |
| 13 | + | |
| 14 | +@interface CNLiveUserAgreementController () | |
| 15 | + | |
| 16 | +@end | |
| 17 | + | |
| 18 | +@implementation CNLiveUserAgreementController | |
| 19 | +- (void)createSubViews { | |
| 20 | + [super createSubViews]; | |
| 21 | + UIColor *color = [UIColor colorWithRed:72/255.0 green:168/255.0 blue:249/255.0 alpha:1.0]; | |
| 22 | + self.webView.progressViewColor = color; | |
| 23 | +} | |
| 24 | +#pragma mark - 交互 | |
| 25 | +- (void)interaction { | |
| 26 | + [super interaction]; | |
| 27 | +} | |
| 28 | + | |
| 29 | +#pragma mark - Setter方法 | |
| 30 | +- (void)setUrl:(NSString *)url{ | |
| 31 | + if(!url||[url isEqualToString:@""]) return; | |
| 32 | + [super setUrl:[NSString stringWithFormat:@"%@",url]]; | |
| 33 | +} | |
| 34 | + | |
| 35 | +#pragma mark - CNLiveWebViewDelegate | |
| 36 | +- (void)webView:(CNLiveWebView *)webView didFinishLoadWithURL:(NSURL *)url { | |
| 37 | + NSLog(@"CNLiveUserAgreementController - didFinishLoad"); | |
| 38 | + if(self.title.length == 0){ | |
| 39 | + self.title = webView.title; | |
| 40 | + } | |
| 41 | +} | |
| 42 | + | |
| 43 | +- (void)webView:(CNLiveWebView *)webView didFailLoadWithError:(NSError *)error { | |
| 44 | + | |
| 45 | +} | |
| 46 | + | |
| 47 | +@end | ... | ... |
CNLiveBUserAgreement/Classes/CNLiveUserAgreementManager.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveUserAgreementManager.h | |
| 3 | +// CNLiveUserAgreementManager | |
| 4 | +// | |
| 5 | +// Created by 153993236@qq.com on 04/13/2019. | |
| 6 | +// Copyright (c) 2019 153993236@qq.com. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import <Foundation/Foundation.h> | |
| 10 | + | |
| 11 | +NS_ASSUME_NONNULL_BEGIN | |
| 12 | + | |
| 13 | +typedef NS_ENUM(NSUInteger, CNLiveGetAgreementH5Type) { | |
| 14 | + CNLiveUserAgreementUser = 1001,//用户协议 | |
| 15 | + CNLiveUserAgreementPrivacy = 1002,//隐私政策 | |
| 16 | + CNLiveUserAgreementHelp = 1003,//帮助与反馈 | |
| 17 | + CNLiveUserAgreementUnderstand = 1004,//使用手册 | |
| 18 | + CNLiveUserAgreementIntroduction = 1005,//应用简介 | |
| 19 | + CNLiveUserAgreementCopyright = 1006,//版权信息 | |
| 20 | + CNLiveUserAgreementPermission = 1007,//软件许可及服务协议 | |
| 21 | +// CNLiveUserAgreementIntegralRules = 1008,//积分规则 | |
| 22 | +// CNLiveUserAgreementSigninRules = 1009,//签到奖励规则 | |
| 23 | + CNLiveUserAgreementReviewApply = 1010,//复核申请 | |
| 24 | + CNLiveUserAgreementCancellation = 1011,//注销协议 | |
| 25 | +// CNLiveUserAgreementEmojiService = 1012,//表情包服务说明 | |
| 26 | +// CNLiveUserAgreementEmojiComplaints = 1013,//表情包投诉说明 | |
| 27 | + CNLiveUserAgreementEnterpriseQualification = 1014,//企业资质 | |
| 28 | +// CNLiveUserAgreementBuyAudio = 1015 //购买音频协议 | |
| 29 | + | |
| 30 | +}; | |
| 31 | + | |
| 32 | +typedef void(^SuccessBlock)(NSString *h5, NSString *title, BOOL closeHidden); | |
| 33 | +typedef void(^FailureBlock)(NSError *error); | |
| 34 | + | |
| 35 | +@interface CNLiveUserAgreementManager : NSObject | |
| 36 | + | |
| 37 | ++ (instancetype)manager; | |
| 38 | + | |
| 39 | +/** | |
| 40 | + * 请求协议并跳转 | |
| 41 | + * @param string 类型字符串 | |
| 42 | + */ | |
| 43 | ++ (void)jumpToAgreementH5WithString:(NSString *)string; | |
| 44 | + | |
| 45 | +/** | |
| 46 | + * 类方法 请求协议 | |
| 47 | + * @param string 类型字符串 | |
| 48 | + * @param success 请求成功回调 | |
| 49 | + * @param failure 请求失败回调 | |
| 50 | + */ | |
| 51 | ++ (void)getAgreementH5WithString:(NSString *)string success:(SuccessBlock)success failure:(FailureBlock)failure; | |
| 52 | + | |
| 53 | +/** | |
| 54 | + * 对象方法 请求协议 | |
| 55 | + * @param string 类型字符串 | |
| 56 | + * @param success 请求成功回调 | |
| 57 | + * @param failure 请求失败回调 | |
| 58 | + */ | |
| 59 | +- (void)getAgreementH5WithString:(NSString *)string success:(SuccessBlock)success failure:(FailureBlock)failure; | |
| 60 | + | |
| 61 | +/** | |
| 62 | + * 请求协议并跳转 | |
| 63 | + * @param type 类型 | |
| 64 | + */ | |
| 65 | ++ (void)jumpToAgreementH5WithType:(CNLiveGetAgreementH5Type)type; | |
| 66 | + | |
| 67 | +/** | |
| 68 | + * 类方法 请求协议 | |
| 69 | + * @param type 类型 | |
| 70 | + * @param success 请求成功回调 | |
| 71 | + * @param failure 请求失败回调 | |
| 72 | + */ | |
| 73 | ++ (void)getAgreementH5WithType:(CNLiveGetAgreementH5Type)type success:(SuccessBlock)success failure:(FailureBlock)failure; | |
| 74 | + | |
| 75 | +/** | |
| 76 | + * 对象方法 请求协议 | |
| 77 | + * @param type 类型 | |
| 78 | + * @param success 请求成功回调 | |
| 79 | + * @param failure 请求失败回调 | |
| 80 | + */ | |
| 81 | +- (void)getAgreementH5WithType:(CNLiveGetAgreementH5Type)type success:(SuccessBlock)success failure:(FailureBlock)failure; | |
| 82 | + | |
| 83 | +@end | |
| 84 | + | |
| 85 | +NS_ASSUME_NONNULL_END | ... | ... |
CNLiveBUserAgreement/Classes/CNLiveUserAgreementManager.m
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveUserAgreementManager.h | |
| 3 | +// CNLiveUserAgreementManager | |
| 4 | +// | |
| 5 | +// Created by 153993236@qq.com on 04/13/2019. | |
| 6 | +// Copyright (c) 2019 153993236@qq.com. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "CNLiveUserAgreementManager.h" | |
| 10 | +#import <CNLiveRequestBastKit/CNLiveNetworking.h> | |
| 11 | +#import "CNLiveUserAgreementController.h" | |
| 12 | +#import "CNLiveManager.h" | |
| 13 | + | |
| 14 | +@interface CNLiveUserAgreementManager() | |
| 15 | + | |
| 16 | +@end | |
| 17 | + | |
| 18 | +@implementation CNLiveUserAgreementManager | |
| 19 | + | |
| 20 | +static CNLiveUserAgreementManager *_instance = nil; | |
| 21 | + | |
| 22 | +/** | |
| 23 | + * @abstract 单例初始化 | |
| 24 | + */ | |
| 25 | ++ (instancetype)manager{ | |
| 26 | + static dispatch_once_t once; | |
| 27 | + dispatch_once(&once, ^{ | |
| 28 | + _instance = [[CNLiveUserAgreementManager alloc]init]; | |
| 29 | + }); | |
| 30 | + return _instance; | |
| 31 | +} | |
| 32 | + | |
| 33 | ++ (id)allocWithZone:(struct _NSZone *)zone{ | |
| 34 | + static dispatch_once_t onceToken; | |
| 35 | + dispatch_once(&onceToken, ^{ | |
| 36 | + _instance = [super allocWithZone:zone]; | |
| 37 | + }); | |
| 38 | + return _instance; | |
| 39 | +} | |
| 40 | + | |
| 41 | +- (nonnull id)copyWithZone:(nullable NSZone *)zone { | |
| 42 | + return _instance; | |
| 43 | +} | |
| 44 | + | |
| 45 | +- (nonnull id)mutableCopyWithZone:(nullable NSZone *)zone { | |
| 46 | + return _instance; | |
| 47 | +} | |
| 48 | + | |
| 49 | +#pragma mark - 类型 | |
| 50 | +/** | |
| 51 | + * 对象方法 请求协议 | |
| 52 | + * @param type 类型 | |
| 53 | + * @param success 请求成功回调 | |
| 54 | + * @param failure 请求失败回调 | |
| 55 | + */ | |
| 56 | +- (void)getAgreementH5WithType:(CNLiveGetAgreementH5Type)type success:(SuccessBlock)success failure:(FailureBlock)failure { | |
| 57 | + [CNLiveNetworking setAllowRequestDefaultArgument:NO]; | |
| 58 | + [CNLiveNetworking requestNetworkWithMethod:CNLiveRequestMethodGET URLString:@"https://wjj.ys1.cnliveimg.com/json/wjj_user_terms.json" Param:@{} CacheType:CNLiveNetworkCacheTypeNetworkOnly CompletionBlock:^(NSURLSessionTask *requestTask, id responseObject, NSError *error) { | |
| 59 | + if (error) { | |
| 60 | + if (failure) { | |
| 61 | + failure(error); | |
| 62 | + } | |
| 63 | + } | |
| 64 | + else{ | |
| 65 | + if ([responseObject isKindOfClass:[NSArray class]]) { | |
| 66 | + BOOL closeHidden = NO; | |
| 67 | + for (NSDictionary *dic in responseObject) { | |
| 68 | + | |
| 69 | + switch (type) { | |
| 70 | + case CNLiveUserAgreementUser: | |
| 71 | + { | |
| 72 | + if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"yhxy"]) { | |
| 73 | + if (success) { | |
| 74 | + success(dic[@"detailUrl"], dic[@"title"], closeHidden); | |
| 75 | + return ; | |
| 76 | + } | |
| 77 | + } | |
| 78 | + } | |
| 79 | + break; | |
| 80 | + case CNLiveUserAgreementPrivacy: | |
| 81 | + { | |
| 82 | + if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"yszc"]) { | |
| 83 | + if (success) { | |
| 84 | + success(dic[@"detailUrl"], dic[@"title"], closeHidden); | |
| 85 | + return ; | |
| 86 | + } | |
| 87 | + } | |
| 88 | + } | |
| 89 | + break; | |
| 90 | + case CNLiveUserAgreementHelp: | |
| 91 | + { | |
| 92 | + if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"bzfk"]) { | |
| 93 | + if (success) { | |
| 94 | + success(dic[@"detailUrl"], dic[@"title"], closeHidden); | |
| 95 | + return ; | |
| 96 | + } | |
| 97 | + } | |
| 98 | + } | |
| 99 | + break; | |
| 100 | + case CNLiveUserAgreementUnderstand: | |
| 101 | + { | |
| 102 | + if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"ljwjj"]) { | |
| 103 | + if (success) { | |
| 104 | + success(dic[@"detailUrl"], dic[@"title"], closeHidden); | |
| 105 | + return ; | |
| 106 | + } | |
| 107 | + } | |
| 108 | + } | |
| 109 | + break; | |
| 110 | + case CNLiveUserAgreementIntroduction: | |
| 111 | + { | |
| 112 | + if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"yyjj"]) { | |
| 113 | + if (success) { | |
| 114 | + success(dic[@"detailUrl"], dic[@"title"], closeHidden); | |
| 115 | + return ; | |
| 116 | + } | |
| 117 | + } | |
| 118 | + } | |
| 119 | + break; | |
| 120 | + case CNLiveUserAgreementCopyright: | |
| 121 | + { | |
| 122 | + if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"bqxx"]) { | |
| 123 | + if (success) { | |
| 124 | + success(dic[@"detailUrl"], dic[@"title"], closeHidden); | |
| 125 | + return ; | |
| 126 | + } | |
| 127 | + } | |
| 128 | + } | |
| 129 | + break; | |
| 130 | + case CNLiveUserAgreementPermission: | |
| 131 | + { | |
| 132 | + if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"rjxkxy"]) { | |
| 133 | + if (success) { | |
| 134 | + success(dic[@"detailUrl"], dic[@"title"], closeHidden); | |
| 135 | + return ; | |
| 136 | + } | |
| 137 | + } | |
| 138 | + } | |
| 139 | + break; | |
| 140 | + case CNLiveUserAgreementReviewApply: | |
| 141 | + { | |
| 142 | + if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"shsqxy"]) { | |
| 143 | + if (success) { | |
| 144 | + success(dic[@"detailUrl"], dic[@"title"], closeHidden); | |
| 145 | + return ; | |
| 146 | + } | |
| 147 | + } | |
| 148 | + } | |
| 149 | + break; | |
| 150 | + case CNLiveUserAgreementCancellation: | |
| 151 | + { | |
| 152 | + if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"zxxz"]) { | |
| 153 | + if (success) { | |
| 154 | + success(dic[@"detailUrl"], dic[@"title"], closeHidden); | |
| 155 | + return ; | |
| 156 | + } | |
| 157 | + } | |
| 158 | + } | |
| 159 | + break; | |
| 160 | + case CNLiveUserAgreementEnterpriseQualification: | |
| 161 | + { | |
| 162 | + if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"qyzz"]) { | |
| 163 | + if (success) { | |
| 164 | + success(dic[@"detailUrl"], dic[@"title"], closeHidden); | |
| 165 | + return ; | |
| 166 | + } | |
| 167 | + } | |
| 168 | + } | |
| 169 | + break; | |
| 170 | + default: | |
| 171 | + break; | |
| 172 | + } | |
| 173 | + | |
| 174 | + } | |
| 175 | + | |
| 176 | + } | |
| 177 | + if (failure) { | |
| 178 | + failure(error); | |
| 179 | + } | |
| 180 | + } | |
| 181 | + }]; | |
| 182 | + | |
| 183 | +} | |
| 184 | + | |
| 185 | +/** | |
| 186 | + * 类方法 请求协议 | |
| 187 | + * @param type 类型 | |
| 188 | + * @param success 请求成功回调 | |
| 189 | + * @param failure 请求失败回调 | |
| 190 | + */ | |
| 191 | ++ (void)getAgreementH5WithType:(CNLiveGetAgreementH5Type)type success:(SuccessBlock)success failure:(FailureBlock)failure { | |
| 192 | + [[CNLiveUserAgreementManager manager] getAgreementH5WithType:type success:^(NSString * _Nonnull h5, NSString * _Nonnull title, BOOL closeHidden) { | |
| 193 | + success?success(h5, title, closeHidden):@""; | |
| 194 | + | |
| 195 | + } failure:^(NSError * _Nonnull error) { | |
| 196 | + failure?failure(error):@""; | |
| 197 | + | |
| 198 | + }]; | |
| 199 | + | |
| 200 | +} | |
| 201 | + | |
| 202 | +/** | |
| 203 | + * 请求协议并跳转 | |
| 204 | + * @param type 类型 | |
| 205 | + */ | |
| 206 | ++ (void)jumpToAgreementH5WithType:(CNLiveGetAgreementH5Type)type{ | |
| 207 | + __weak typeof(self) weakSelf = self; | |
| 208 | + [CNLiveUserAgreementManager getAgreementH5WithType:type success:^(NSString *h5, NSString *title, BOOL closeHidden) { | |
| 209 | + __strong typeof(weakSelf) strongSelf = weakSelf; | |
| 210 | + if(!strongSelf) return; | |
| 211 | + [strongSelf pushToWebControllerUrl:h5 name:title closeHidden:closeHidden]; | |
| 212 | + | |
| 213 | + } failure:^(NSError *error) { | |
| 214 | + NSLog(@"点击协议跳转失败"); | |
| 215 | + }]; | |
| 216 | + | |
| 217 | +} | |
| 218 | + | |
| 219 | +#pragma mark - 类型字符串 | |
| 220 | +/** | |
| 221 | + * 请求协议并跳转 | |
| 222 | + * @param string 类型字符串 | |
| 223 | + */ | |
| 224 | ++ (void)jumpToAgreementH5WithString:(NSString *)string { | |
| 225 | + __weak typeof(self) weakSelf = self; | |
| 226 | + [CNLiveUserAgreementManager getAgreementH5WithString:string success:^(NSString *h5, NSString *title, BOOL closeHidden) { | |
| 227 | + __strong typeof(weakSelf) strongSelf = weakSelf; | |
| 228 | + if(!strongSelf) return; | |
| 229 | + [strongSelf pushToWebControllerUrl:h5 name:title closeHidden:closeHidden]; | |
| 230 | + | |
| 231 | + } failure:^(NSError *error) { | |
| 232 | + NSLog(@"点击协议跳转失败"); | |
| 233 | + }]; | |
| 234 | + | |
| 235 | +} | |
| 236 | + | |
| 237 | +/** | |
| 238 | + * 类方法 请求协议 | |
| 239 | + * @param string 类型字符串 | |
| 240 | + * @param success 请求成功回调 | |
| 241 | + * @param failure 请求失败回调 | |
| 242 | + */ | |
| 243 | ++ (void)getAgreementH5WithString:(NSString *)string success:(SuccessBlock)success failure:(FailureBlock)failure{ | |
| 244 | + [[CNLiveUserAgreementManager manager] getAgreementH5WithString:string success:^(NSString *h5, NSString *title, BOOL closeHidden) { | |
| 245 | + success?success(h5, title, closeHidden):@""; | |
| 246 | + | |
| 247 | + } failure:^(NSError *error) { | |
| 248 | + failure?failure(error):@""; | |
| 249 | + | |
| 250 | + }]; | |
| 251 | +} | |
| 252 | + | |
| 253 | +/** | |
| 254 | + * 对象方法 请求协议 | |
| 255 | + * @param string 类型字符串 | |
| 256 | + * @param success 请求成功回调 | |
| 257 | + * @param failure 请求失败回调 | |
| 258 | + */ | |
| 259 | +- (void)getAgreementH5WithString:(NSString *)string success:(SuccessBlock)success failure:(FailureBlock)failure{ | |
| 260 | + [CNLiveNetworking setAllowRequestDefaultArgument:NO]; | |
| 261 | + [CNLiveNetworking requestNetworkWithMethod:CNLiveRequestMethodGET URLString:@"https://wjj.ys1.cnliveimg.com/json/wjj_user_terms.json" Param:@{} CacheType:CNLiveNetworkCacheTypeNetworkOnly CompletionBlock:^(NSURLSessionTask *requestTask, id responseObject, NSError *error) { | |
| 262 | + if (!error) { | |
| 263 | + if ([responseObject isKindOfClass:[NSArray class]]) { | |
| 264 | + for (NSDictionary *dic in responseObject) { | |
| 265 | + if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:string]) { | |
| 266 | + success?success(dic[@"detailUrl"], dic[@"title"], NO):@""; | |
| 267 | + return; | |
| 268 | + } | |
| 269 | + } | |
| 270 | + } | |
| 271 | + failure?failure(error):@""; | |
| 272 | + | |
| 273 | + }else{ | |
| 274 | + failure?failure(error):@""; | |
| 275 | + | |
| 276 | + } | |
| 277 | + }]; | |
| 278 | +} | |
| 279 | + | |
| 280 | +#pragma mark - 跳转控制器 | |
| 281 | ++ (void)pushToWebControllerUrl:(NSString *)url name:(NSString *)name closeHidden:(BOOL)closeHidden{ | |
| 282 | + CNLiveUserAgreementController *vc = [[CNLiveUserAgreementController alloc] initWithUrl:url title:name closeHidden:closeHidden]; | |
| 283 | + [CNLivePageJumpManager jumpViewController:vc]; | |
| 284 | + | |
| 285 | +} | |
| 286 | + | |
| 287 | +@end | ... | ... |
Example/CNLiveBUserAgreement.xcodeproj/project.pbxproj
0 → 100644
| 1 | +// !$*UTF8*$! | |
| 2 | +{ | |
| 3 | + archiveVersion = 1; | |
| 4 | + classes = { | |
| 5 | + }; | |
| 6 | + objectVersion = 46; | |
| 7 | + objects = { | |
| 8 | + | |
| 9 | +/* Begin PBXBuildFile section */ | |
| 10 | + 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; | |
| 11 | + 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; | |
| 12 | + 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; | |
| 13 | + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; | |
| 14 | + 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; | |
| 15 | + 6003F59E195388D20070C39A /* CNLIVEAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* CNLIVEAppDelegate.m */; }; | |
| 16 | + 6003F5A7195388D20070C39A /* CNLIVEViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* CNLIVEViewController.m */; }; | |
| 17 | + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; | |
| 18 | + 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; | |
| 19 | + 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; | |
| 20 | + 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; | |
| 21 | + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; | |
| 22 | + 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; | |
| 23 | + 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; }; | |
| 24 | + 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; | |
| 25 | + 938342361934AAD8093CE91C /* Pods_CNLiveBUserAgreement_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D76EE3DE9D5D088612F1FC3C /* Pods_CNLiveBUserAgreement_Tests.framework */; }; | |
| 26 | + C8A39FB14B66954CB817B835 /* Pods_CNLiveBUserAgreement_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 17906D1992D454A01BF520F5 /* Pods_CNLiveBUserAgreement_Example.framework */; }; | |
| 27 | +/* End PBXBuildFile section */ | |
| 28 | + | |
| 29 | +/* Begin PBXContainerItemProxy section */ | |
| 30 | + 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { | |
| 31 | + isa = PBXContainerItemProxy; | |
| 32 | + containerPortal = 6003F582195388D10070C39A /* Project object */; | |
| 33 | + proxyType = 1; | |
| 34 | + remoteGlobalIDString = 6003F589195388D20070C39A; | |
| 35 | + remoteInfo = CNLiveBUserAgreement; | |
| 36 | + }; | |
| 37 | +/* End PBXContainerItemProxy section */ | |
| 38 | + | |
| 39 | +/* Begin PBXFileReference section */ | |
| 40 | + 11F4D77D4CDDEDE8376C5A43 /* Pods-CNLiveBUserAgreement_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveBUserAgreement_Example.release.xcconfig"; path = "Target Support Files/Pods-CNLiveBUserAgreement_Example/Pods-CNLiveBUserAgreement_Example.release.xcconfig"; sourceTree = "<group>"; }; | |
| 41 | + 17906D1992D454A01BF520F5 /* Pods_CNLiveBUserAgreement_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNLiveBUserAgreement_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 42 | + 456295AA5DB72D26FADD21D5 /* CNLiveBUserAgreement.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = CNLiveBUserAgreement.podspec; path = ../CNLiveBUserAgreement.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; | |
| 43 | + 6003F58A195388D20070C39A /* CNLiveBUserAgreement_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CNLiveBUserAgreement_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 44 | + 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; | |
| 45 | + 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; | |
| 46 | + 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; | |
| 47 | + 6003F595195388D20070C39A /* CNLiveBUserAgreement-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CNLiveBUserAgreement-Info.plist"; sourceTree = "<group>"; }; | |
| 48 | + 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; | |
| 49 | + 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; | |
| 50 | + 6003F59B195388D20070C39A /* CNLiveBUserAgreement-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CNLiveBUserAgreement-Prefix.pch"; sourceTree = "<group>"; }; | |
| 51 | + 6003F59C195388D20070C39A /* CNLIVEAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLIVEAppDelegate.h; sourceTree = "<group>"; }; | |
| 52 | + 6003F59D195388D20070C39A /* CNLIVEAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLIVEAppDelegate.m; sourceTree = "<group>"; }; | |
| 53 | + 6003F5A5195388D20070C39A /* CNLIVEViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLIVEViewController.h; sourceTree = "<group>"; }; | |
| 54 | + 6003F5A6195388D20070C39A /* CNLIVEViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLIVEViewController.m; sourceTree = "<group>"; }; | |
| 55 | + 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; }; | |
| 56 | + 6003F5AE195388D20070C39A /* CNLiveBUserAgreement_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CNLiveBUserAgreement_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 57 | + 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; | |
| 58 | + 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = "<group>"; }; | |
| 59 | + 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; | |
| 60 | + 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = "<group>"; }; | |
| 61 | + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = "<group>"; }; | |
| 62 | + 71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; | |
| 63 | + 7C7201DD44858FB61EC8433C /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; }; | |
| 64 | + 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; | |
| 65 | + A122EF93CC64FE86A9F44FF9 /* Pods-CNLiveBUserAgreement_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveBUserAgreement_Example.debug.xcconfig"; path = "Target Support Files/Pods-CNLiveBUserAgreement_Example/Pods-CNLiveBUserAgreement_Example.debug.xcconfig"; sourceTree = "<group>"; }; | |
| 66 | + B8CD2B6B4B276037EC2DA256 /* Pods-CNLiveBUserAgreement_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveBUserAgreement_Tests.release.xcconfig"; path = "Target Support Files/Pods-CNLiveBUserAgreement_Tests/Pods-CNLiveBUserAgreement_Tests.release.xcconfig"; sourceTree = "<group>"; }; | |
| 67 | + D76EE3DE9D5D088612F1FC3C /* Pods_CNLiveBUserAgreement_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNLiveBUserAgreement_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 68 | + FD2A79AFFB7F01C89CE8D6DB /* Pods-CNLiveBUserAgreement_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveBUserAgreement_Tests.debug.xcconfig"; path = "Target Support Files/Pods-CNLiveBUserAgreement_Tests/Pods-CNLiveBUserAgreement_Tests.debug.xcconfig"; sourceTree = "<group>"; }; | |
| 69 | + FFEB8F0F06CD653FAF855505 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; }; | |
| 70 | +/* End PBXFileReference section */ | |
| 71 | + | |
| 72 | +/* Begin PBXFrameworksBuildPhase section */ | |
| 73 | + 6003F587195388D20070C39A /* Frameworks */ = { | |
| 74 | + isa = PBXFrameworksBuildPhase; | |
| 75 | + buildActionMask = 2147483647; | |
| 76 | + files = ( | |
| 77 | + 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, | |
| 78 | + 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, | |
| 79 | + 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, | |
| 80 | + C8A39FB14B66954CB817B835 /* Pods_CNLiveBUserAgreement_Example.framework in Frameworks */, | |
| 81 | + ); | |
| 82 | + runOnlyForDeploymentPostprocessing = 0; | |
| 83 | + }; | |
| 84 | + 6003F5AB195388D20070C39A /* Frameworks */ = { | |
| 85 | + isa = PBXFrameworksBuildPhase; | |
| 86 | + buildActionMask = 2147483647; | |
| 87 | + files = ( | |
| 88 | + 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, | |
| 89 | + 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, | |
| 90 | + 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, | |
| 91 | + 938342361934AAD8093CE91C /* Pods_CNLiveBUserAgreement_Tests.framework in Frameworks */, | |
| 92 | + ); | |
| 93 | + runOnlyForDeploymentPostprocessing = 0; | |
| 94 | + }; | |
| 95 | +/* End PBXFrameworksBuildPhase section */ | |
| 96 | + | |
| 97 | +/* Begin PBXGroup section */ | |
| 98 | + 6003F581195388D10070C39A = { | |
| 99 | + isa = PBXGroup; | |
| 100 | + children = ( | |
| 101 | + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, | |
| 102 | + 6003F593195388D20070C39A /* Example for CNLiveBUserAgreement */, | |
| 103 | + 6003F5B5195388D20070C39A /* Tests */, | |
| 104 | + 6003F58C195388D20070C39A /* Frameworks */, | |
| 105 | + 6003F58B195388D20070C39A /* Products */, | |
| 106 | + 8C9A05C5FB42E5351A2B9718 /* Pods */, | |
| 107 | + ); | |
| 108 | + sourceTree = "<group>"; | |
| 109 | + }; | |
| 110 | + 6003F58B195388D20070C39A /* Products */ = { | |
| 111 | + isa = PBXGroup; | |
| 112 | + children = ( | |
| 113 | + 6003F58A195388D20070C39A /* CNLiveBUserAgreement_Example.app */, | |
| 114 | + 6003F5AE195388D20070C39A /* CNLiveBUserAgreement_Tests.xctest */, | |
| 115 | + ); | |
| 116 | + name = Products; | |
| 117 | + sourceTree = "<group>"; | |
| 118 | + }; | |
| 119 | + 6003F58C195388D20070C39A /* Frameworks */ = { | |
| 120 | + isa = PBXGroup; | |
| 121 | + children = ( | |
| 122 | + 6003F58D195388D20070C39A /* Foundation.framework */, | |
| 123 | + 6003F58F195388D20070C39A /* CoreGraphics.framework */, | |
| 124 | + 6003F591195388D20070C39A /* UIKit.framework */, | |
| 125 | + 6003F5AF195388D20070C39A /* XCTest.framework */, | |
| 126 | + 17906D1992D454A01BF520F5 /* Pods_CNLiveBUserAgreement_Example.framework */, | |
| 127 | + D76EE3DE9D5D088612F1FC3C /* Pods_CNLiveBUserAgreement_Tests.framework */, | |
| 128 | + ); | |
| 129 | + name = Frameworks; | |
| 130 | + sourceTree = "<group>"; | |
| 131 | + }; | |
| 132 | + 6003F593195388D20070C39A /* Example for CNLiveBUserAgreement */ = { | |
| 133 | + isa = PBXGroup; | |
| 134 | + children = ( | |
| 135 | + 6003F59C195388D20070C39A /* CNLIVEAppDelegate.h */, | |
| 136 | + 6003F59D195388D20070C39A /* CNLIVEAppDelegate.m */, | |
| 137 | + 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */, | |
| 138 | + 6003F5A5195388D20070C39A /* CNLIVEViewController.h */, | |
| 139 | + 6003F5A6195388D20070C39A /* CNLIVEViewController.m */, | |
| 140 | + 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */, | |
| 141 | + 6003F5A8195388D20070C39A /* Images.xcassets */, | |
| 142 | + 6003F594195388D20070C39A /* Supporting Files */, | |
| 143 | + ); | |
| 144 | + name = "Example for CNLiveBUserAgreement"; | |
| 145 | + path = CNLiveBUserAgreement; | |
| 146 | + sourceTree = "<group>"; | |
| 147 | + }; | |
| 148 | + 6003F594195388D20070C39A /* Supporting Files */ = { | |
| 149 | + isa = PBXGroup; | |
| 150 | + children = ( | |
| 151 | + 6003F595195388D20070C39A /* CNLiveBUserAgreement-Info.plist */, | |
| 152 | + 6003F596195388D20070C39A /* InfoPlist.strings */, | |
| 153 | + 6003F599195388D20070C39A /* main.m */, | |
| 154 | + 6003F59B195388D20070C39A /* CNLiveBUserAgreement-Prefix.pch */, | |
| 155 | + ); | |
| 156 | + name = "Supporting Files"; | |
| 157 | + sourceTree = "<group>"; | |
| 158 | + }; | |
| 159 | + 6003F5B5195388D20070C39A /* Tests */ = { | |
| 160 | + isa = PBXGroup; | |
| 161 | + children = ( | |
| 162 | + 6003F5BB195388D20070C39A /* Tests.m */, | |
| 163 | + 6003F5B6195388D20070C39A /* Supporting Files */, | |
| 164 | + ); | |
| 165 | + path = Tests; | |
| 166 | + sourceTree = "<group>"; | |
| 167 | + }; | |
| 168 | + 6003F5B6195388D20070C39A /* Supporting Files */ = { | |
| 169 | + isa = PBXGroup; | |
| 170 | + children = ( | |
| 171 | + 6003F5B7195388D20070C39A /* Tests-Info.plist */, | |
| 172 | + 6003F5B8195388D20070C39A /* InfoPlist.strings */, | |
| 173 | + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, | |
| 174 | + ); | |
| 175 | + name = "Supporting Files"; | |
| 176 | + sourceTree = "<group>"; | |
| 177 | + }; | |
| 178 | + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { | |
| 179 | + isa = PBXGroup; | |
| 180 | + children = ( | |
| 181 | + 456295AA5DB72D26FADD21D5 /* CNLiveBUserAgreement.podspec */, | |
| 182 | + 7C7201DD44858FB61EC8433C /* README.md */, | |
| 183 | + FFEB8F0F06CD653FAF855505 /* LICENSE */, | |
| 184 | + ); | |
| 185 | + name = "Podspec Metadata"; | |
| 186 | + sourceTree = "<group>"; | |
| 187 | + }; | |
| 188 | + 8C9A05C5FB42E5351A2B9718 /* Pods */ = { | |
| 189 | + isa = PBXGroup; | |
| 190 | + children = ( | |
| 191 | + A122EF93CC64FE86A9F44FF9 /* Pods-CNLiveBUserAgreement_Example.debug.xcconfig */, | |
| 192 | + 11F4D77D4CDDEDE8376C5A43 /* Pods-CNLiveBUserAgreement_Example.release.xcconfig */, | |
| 193 | + FD2A79AFFB7F01C89CE8D6DB /* Pods-CNLiveBUserAgreement_Tests.debug.xcconfig */, | |
| 194 | + B8CD2B6B4B276037EC2DA256 /* Pods-CNLiveBUserAgreement_Tests.release.xcconfig */, | |
| 195 | + ); | |
| 196 | + path = Pods; | |
| 197 | + sourceTree = "<group>"; | |
| 198 | + }; | |
| 199 | +/* End PBXGroup section */ | |
| 200 | + | |
| 201 | +/* Begin PBXNativeTarget section */ | |
| 202 | + 6003F589195388D20070C39A /* CNLiveBUserAgreement_Example */ = { | |
| 203 | + isa = PBXNativeTarget; | |
| 204 | + buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveBUserAgreement_Example" */; | |
| 205 | + buildPhases = ( | |
| 206 | + 605B89863D25EA4179988F8A /* [CP] Check Pods Manifest.lock */, | |
| 207 | + 6003F586195388D20070C39A /* Sources */, | |
| 208 | + 6003F587195388D20070C39A /* Frameworks */, | |
| 209 | + 6003F588195388D20070C39A /* Resources */, | |
| 210 | + 54CB11EA3D12747A992C2427 /* [CP] Embed Pods Frameworks */, | |
| 211 | + D851BEB3E2A1AB7BE2CBCDE7 /* [CP] Copy Pods Resources */, | |
| 212 | + ); | |
| 213 | + buildRules = ( | |
| 214 | + ); | |
| 215 | + dependencies = ( | |
| 216 | + ); | |
| 217 | + name = CNLiveBUserAgreement_Example; | |
| 218 | + productName = CNLiveBUserAgreement; | |
| 219 | + productReference = 6003F58A195388D20070C39A /* CNLiveBUserAgreement_Example.app */; | |
| 220 | + productType = "com.apple.product-type.application"; | |
| 221 | + }; | |
| 222 | + 6003F5AD195388D20070C39A /* CNLiveBUserAgreement_Tests */ = { | |
| 223 | + isa = PBXNativeTarget; | |
| 224 | + buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveBUserAgreement_Tests" */; | |
| 225 | + buildPhases = ( | |
| 226 | + 61C3FD635D2373F0B13D5A15 /* [CP] Check Pods Manifest.lock */, | |
| 227 | + 6003F5AA195388D20070C39A /* Sources */, | |
| 228 | + 6003F5AB195388D20070C39A /* Frameworks */, | |
| 229 | + 6003F5AC195388D20070C39A /* Resources */, | |
| 230 | + ); | |
| 231 | + buildRules = ( | |
| 232 | + ); | |
| 233 | + dependencies = ( | |
| 234 | + 6003F5B4195388D20070C39A /* PBXTargetDependency */, | |
| 235 | + ); | |
| 236 | + name = CNLiveBUserAgreement_Tests; | |
| 237 | + productName = CNLiveBUserAgreementTests; | |
| 238 | + productReference = 6003F5AE195388D20070C39A /* CNLiveBUserAgreement_Tests.xctest */; | |
| 239 | + productType = "com.apple.product-type.bundle.unit-test"; | |
| 240 | + }; | |
| 241 | +/* End PBXNativeTarget section */ | |
| 242 | + | |
| 243 | +/* Begin PBXProject section */ | |
| 244 | + 6003F582195388D10070C39A /* Project object */ = { | |
| 245 | + isa = PBXProject; | |
| 246 | + attributes = { | |
| 247 | + CLASSPREFIX = CNLIVE; | |
| 248 | + LastUpgradeCheck = 0720; | |
| 249 | + ORGANIZATIONNAME = "iOS-Xiaowen"; | |
| 250 | + TargetAttributes = { | |
| 251 | + 6003F589195388D20070C39A = { | |
| 252 | + DevelopmentTeam = 94X49GG3ZW; | |
| 253 | + }; | |
| 254 | + 6003F5AD195388D20070C39A = { | |
| 255 | + TestTargetID = 6003F589195388D20070C39A; | |
| 256 | + }; | |
| 257 | + }; | |
| 258 | + }; | |
| 259 | + buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "CNLiveBUserAgreement" */; | |
| 260 | + compatibilityVersion = "Xcode 3.2"; | |
| 261 | + developmentRegion = English; | |
| 262 | + hasScannedForEncodings = 0; | |
| 263 | + knownRegions = ( | |
| 264 | + English, | |
| 265 | + en, | |
| 266 | + Base, | |
| 267 | + ); | |
| 268 | + mainGroup = 6003F581195388D10070C39A; | |
| 269 | + productRefGroup = 6003F58B195388D20070C39A /* Products */; | |
| 270 | + projectDirPath = ""; | |
| 271 | + projectRoot = ""; | |
| 272 | + targets = ( | |
| 273 | + 6003F589195388D20070C39A /* CNLiveBUserAgreement_Example */, | |
| 274 | + 6003F5AD195388D20070C39A /* CNLiveBUserAgreement_Tests */, | |
| 275 | + ); | |
| 276 | + }; | |
| 277 | +/* End PBXProject section */ | |
| 278 | + | |
| 279 | +/* Begin PBXResourcesBuildPhase section */ | |
| 280 | + 6003F588195388D20070C39A /* Resources */ = { | |
| 281 | + isa = PBXResourcesBuildPhase; | |
| 282 | + buildActionMask = 2147483647; | |
| 283 | + files = ( | |
| 284 | + 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */, | |
| 285 | + 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */, | |
| 286 | + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, | |
| 287 | + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, | |
| 288 | + ); | |
| 289 | + runOnlyForDeploymentPostprocessing = 0; | |
| 290 | + }; | |
| 291 | + 6003F5AC195388D20070C39A /* Resources */ = { | |
| 292 | + isa = PBXResourcesBuildPhase; | |
| 293 | + buildActionMask = 2147483647; | |
| 294 | + files = ( | |
| 295 | + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, | |
| 296 | + ); | |
| 297 | + runOnlyForDeploymentPostprocessing = 0; | |
| 298 | + }; | |
| 299 | +/* End PBXResourcesBuildPhase section */ | |
| 300 | + | |
| 301 | +/* Begin PBXShellScriptBuildPhase section */ | |
| 302 | + 54CB11EA3D12747A992C2427 /* [CP] Embed Pods Frameworks */ = { | |
| 303 | + isa = PBXShellScriptBuildPhase; | |
| 304 | + buildActionMask = 2147483647; | |
| 305 | + files = ( | |
| 306 | + ); | |
| 307 | + inputPaths = ( | |
| 308 | + "${PODS_ROOT}/Target Support Files/Pods-CNLiveBUserAgreement_Example/Pods-CNLiveBUserAgreement_Example-frameworks.sh", | |
| 309 | + "${BUILT_PRODUCTS_DIR}/AFNetworking/AFNetworking.framework", | |
| 310 | + "${BUILT_PRODUCTS_DIR}/CNLiveBaseClass/CNLiveBaseClass.framework", | |
| 311 | + "${BUILT_PRODUCTS_DIR}/CNLiveBaseKit/CNLiveBaseKit.framework", | |
| 312 | + "${BUILT_PRODUCTS_DIR}/CNLiveCategory/CNLiveCategory.framework", | |
| 313 | + "${BUILT_PRODUCTS_DIR}/CNLiveCustomControl/CNLiveCustomControl.framework", | |
| 314 | + "${BUILT_PRODUCTS_DIR}/CNLiveManager/CNLiveManager.framework", | |
| 315 | + "${BUILT_PRODUCTS_DIR}/CNLiveRequestBastKit/CNLiveRequestBastKit.framework", | |
| 316 | + "${BUILT_PRODUCTS_DIR}/CNLiveTripartiteManagement/CNLiveTripartiteManagement.framework", | |
| 317 | + "${BUILT_PRODUCTS_DIR}/MJExtension/MJExtension.framework", | |
| 318 | + "${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework", | |
| 319 | + "${BUILT_PRODUCTS_DIR}/QMUIKit/QMUIKit.framework", | |
| 320 | + "${BUILT_PRODUCTS_DIR}/WebViewJavascriptBridge/WebViewJavascriptBridge.framework", | |
| 321 | + ); | |
| 322 | + name = "[CP] Embed Pods Frameworks"; | |
| 323 | + outputPaths = ( | |
| 324 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AFNetworking.framework", | |
| 325 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBaseClass.framework", | |
| 326 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBaseKit.framework", | |
| 327 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCategory.framework", | |
| 328 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCustomControl.framework", | |
| 329 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveManager.framework", | |
| 330 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveRequestBastKit.framework", | |
| 331 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveTripartiteManagement.framework", | |
| 332 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MJExtension.framework", | |
| 333 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Masonry.framework", | |
| 334 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/QMUIKit.framework", | |
| 335 | + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WebViewJavascriptBridge.framework", | |
| 336 | + ); | |
| 337 | + runOnlyForDeploymentPostprocessing = 0; | |
| 338 | + shellPath = /bin/sh; | |
| 339 | + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CNLiveBUserAgreement_Example/Pods-CNLiveBUserAgreement_Example-frameworks.sh\"\n"; | |
| 340 | + showEnvVarsInLog = 0; | |
| 341 | + }; | |
| 342 | + 605B89863D25EA4179988F8A /* [CP] Check Pods Manifest.lock */ = { | |
| 343 | + isa = PBXShellScriptBuildPhase; | |
| 344 | + buildActionMask = 2147483647; | |
| 345 | + files = ( | |
| 346 | + ); | |
| 347 | + inputFileListPaths = ( | |
| 348 | + ); | |
| 349 | + inputPaths = ( | |
| 350 | + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", | |
| 351 | + "${PODS_ROOT}/Manifest.lock", | |
| 352 | + ); | |
| 353 | + name = "[CP] Check Pods Manifest.lock"; | |
| 354 | + outputFileListPaths = ( | |
| 355 | + ); | |
| 356 | + outputPaths = ( | |
| 357 | + "$(DERIVED_FILE_DIR)/Pods-CNLiveBUserAgreement_Example-checkManifestLockResult.txt", | |
| 358 | + ); | |
| 359 | + runOnlyForDeploymentPostprocessing = 0; | |
| 360 | + shellPath = /bin/sh; | |
| 361 | + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; | |
| 362 | + showEnvVarsInLog = 0; | |
| 363 | + }; | |
| 364 | + 61C3FD635D2373F0B13D5A15 /* [CP] Check Pods Manifest.lock */ = { | |
| 365 | + isa = PBXShellScriptBuildPhase; | |
| 366 | + buildActionMask = 2147483647; | |
| 367 | + files = ( | |
| 368 | + ); | |
| 369 | + inputFileListPaths = ( | |
| 370 | + ); | |
| 371 | + inputPaths = ( | |
| 372 | + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", | |
| 373 | + "${PODS_ROOT}/Manifest.lock", | |
| 374 | + ); | |
| 375 | + name = "[CP] Check Pods Manifest.lock"; | |
| 376 | + outputFileListPaths = ( | |
| 377 | + ); | |
| 378 | + outputPaths = ( | |
| 379 | + "$(DERIVED_FILE_DIR)/Pods-CNLiveBUserAgreement_Tests-checkManifestLockResult.txt", | |
| 380 | + ); | |
| 381 | + runOnlyForDeploymentPostprocessing = 0; | |
| 382 | + shellPath = /bin/sh; | |
| 383 | + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; | |
| 384 | + showEnvVarsInLog = 0; | |
| 385 | + }; | |
| 386 | + D851BEB3E2A1AB7BE2CBCDE7 /* [CP] Copy Pods Resources */ = { | |
| 387 | + isa = PBXShellScriptBuildPhase; | |
| 388 | + buildActionMask = 2147483647; | |
| 389 | + files = ( | |
| 390 | + ); | |
| 391 | + inputPaths = ( | |
| 392 | + "${PODS_ROOT}/Target Support Files/Pods-CNLiveBUserAgreement_Example/Pods-CNLiveBUserAgreement_Example-resources.sh", | |
| 393 | + "${PODS_CONFIGURATION_BUILD_DIR}/CNLiveBUserAgreement/CNLiveBUserAgreement.bundle", | |
| 394 | + ); | |
| 395 | + name = "[CP] Copy Pods Resources"; | |
| 396 | + outputPaths = ( | |
| 397 | + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/CNLiveBUserAgreement.bundle", | |
| 398 | + ); | |
| 399 | + runOnlyForDeploymentPostprocessing = 0; | |
| 400 | + shellPath = /bin/sh; | |
| 401 | + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CNLiveBUserAgreement_Example/Pods-CNLiveBUserAgreement_Example-resources.sh\"\n"; | |
| 402 | + showEnvVarsInLog = 0; | |
| 403 | + }; | |
| 404 | +/* End PBXShellScriptBuildPhase section */ | |
| 405 | + | |
| 406 | +/* Begin PBXSourcesBuildPhase section */ | |
| 407 | + 6003F586195388D20070C39A /* Sources */ = { | |
| 408 | + isa = PBXSourcesBuildPhase; | |
| 409 | + buildActionMask = 2147483647; | |
| 410 | + files = ( | |
| 411 | + 6003F59E195388D20070C39A /* CNLIVEAppDelegate.m in Sources */, | |
| 412 | + 6003F5A7195388D20070C39A /* CNLIVEViewController.m in Sources */, | |
| 413 | + 6003F59A195388D20070C39A /* main.m in Sources */, | |
| 414 | + ); | |
| 415 | + runOnlyForDeploymentPostprocessing = 0; | |
| 416 | + }; | |
| 417 | + 6003F5AA195388D20070C39A /* Sources */ = { | |
| 418 | + isa = PBXSourcesBuildPhase; | |
| 419 | + buildActionMask = 2147483647; | |
| 420 | + files = ( | |
| 421 | + 6003F5BC195388D20070C39A /* Tests.m in Sources */, | |
| 422 | + ); | |
| 423 | + runOnlyForDeploymentPostprocessing = 0; | |
| 424 | + }; | |
| 425 | +/* End PBXSourcesBuildPhase section */ | |
| 426 | + | |
| 427 | +/* Begin PBXTargetDependency section */ | |
| 428 | + 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { | |
| 429 | + isa = PBXTargetDependency; | |
| 430 | + target = 6003F589195388D20070C39A /* CNLiveBUserAgreement_Example */; | |
| 431 | + targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; | |
| 432 | + }; | |
| 433 | +/* End PBXTargetDependency section */ | |
| 434 | + | |
| 435 | +/* Begin PBXVariantGroup section */ | |
| 436 | + 6003F596195388D20070C39A /* InfoPlist.strings */ = { | |
| 437 | + isa = PBXVariantGroup; | |
| 438 | + children = ( | |
| 439 | + 6003F597195388D20070C39A /* en */, | |
| 440 | + ); | |
| 441 | + name = InfoPlist.strings; | |
| 442 | + sourceTree = "<group>"; | |
| 443 | + }; | |
| 444 | + 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { | |
| 445 | + isa = PBXVariantGroup; | |
| 446 | + children = ( | |
| 447 | + 6003F5B9195388D20070C39A /* en */, | |
| 448 | + ); | |
| 449 | + name = InfoPlist.strings; | |
| 450 | + sourceTree = "<group>"; | |
| 451 | + }; | |
| 452 | + 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */ = { | |
| 453 | + isa = PBXVariantGroup; | |
| 454 | + children = ( | |
| 455 | + 71719F9E1E33DC2100824A3D /* Base */, | |
| 456 | + ); | |
| 457 | + name = LaunchScreen.storyboard; | |
| 458 | + sourceTree = "<group>"; | |
| 459 | + }; | |
| 460 | +/* End PBXVariantGroup section */ | |
| 461 | + | |
| 462 | +/* Begin XCBuildConfiguration section */ | |
| 463 | + 6003F5BD195388D20070C39A /* Debug */ = { | |
| 464 | + isa = XCBuildConfiguration; | |
| 465 | + buildSettings = { | |
| 466 | + ALWAYS_SEARCH_USER_PATHS = NO; | |
| 467 | + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | |
| 468 | + CLANG_CXX_LIBRARY = "libc++"; | |
| 469 | + CLANG_ENABLE_MODULES = YES; | |
| 470 | + CLANG_ENABLE_OBJC_ARC = YES; | |
| 471 | + CLANG_WARN_BOOL_CONVERSION = YES; | |
| 472 | + CLANG_WARN_CONSTANT_CONVERSION = YES; | |
| 473 | + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | |
| 474 | + CLANG_WARN_EMPTY_BODY = YES; | |
| 475 | + CLANG_WARN_ENUM_CONVERSION = YES; | |
| 476 | + CLANG_WARN_INT_CONVERSION = YES; | |
| 477 | + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | |
| 478 | + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | |
| 479 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | |
| 480 | + COPY_PHASE_STRIP = NO; | |
| 481 | + ENABLE_TESTABILITY = YES; | |
| 482 | + GCC_C_LANGUAGE_STANDARD = gnu99; | |
| 483 | + GCC_DYNAMIC_NO_PIC = NO; | |
| 484 | + GCC_OPTIMIZATION_LEVEL = 0; | |
| 485 | + GCC_PREPROCESSOR_DEFINITIONS = ( | |
| 486 | + "DEBUG=1", | |
| 487 | + "$(inherited)", | |
| 488 | + ); | |
| 489 | + GCC_SYMBOLS_PRIVATE_EXTERN = NO; | |
| 490 | + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | |
| 491 | + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | |
| 492 | + GCC_WARN_UNDECLARED_SELECTOR = YES; | |
| 493 | + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | |
| 494 | + GCC_WARN_UNUSED_FUNCTION = YES; | |
| 495 | + GCC_WARN_UNUSED_VARIABLE = YES; | |
| 496 | + IPHONEOS_DEPLOYMENT_TARGET = 9.3; | |
| 497 | + ONLY_ACTIVE_ARCH = YES; | |
| 498 | + SDKROOT = iphoneos; | |
| 499 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 500 | + }; | |
| 501 | + name = Debug; | |
| 502 | + }; | |
| 503 | + 6003F5BE195388D20070C39A /* Release */ = { | |
| 504 | + isa = XCBuildConfiguration; | |
| 505 | + buildSettings = { | |
| 506 | + ALWAYS_SEARCH_USER_PATHS = NO; | |
| 507 | + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | |
| 508 | + CLANG_CXX_LIBRARY = "libc++"; | |
| 509 | + CLANG_ENABLE_MODULES = YES; | |
| 510 | + CLANG_ENABLE_OBJC_ARC = YES; | |
| 511 | + CLANG_WARN_BOOL_CONVERSION = YES; | |
| 512 | + CLANG_WARN_CONSTANT_CONVERSION = YES; | |
| 513 | + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | |
| 514 | + CLANG_WARN_EMPTY_BODY = YES; | |
| 515 | + CLANG_WARN_ENUM_CONVERSION = YES; | |
| 516 | + CLANG_WARN_INT_CONVERSION = YES; | |
| 517 | + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | |
| 518 | + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | |
| 519 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | |
| 520 | + COPY_PHASE_STRIP = YES; | |
| 521 | + ENABLE_NS_ASSERTIONS = NO; | |
| 522 | + GCC_C_LANGUAGE_STANDARD = gnu99; | |
| 523 | + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | |
| 524 | + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | |
| 525 | + GCC_WARN_UNDECLARED_SELECTOR = YES; | |
| 526 | + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | |
| 527 | + GCC_WARN_UNUSED_FUNCTION = YES; | |
| 528 | + GCC_WARN_UNUSED_VARIABLE = YES; | |
| 529 | + IPHONEOS_DEPLOYMENT_TARGET = 9.3; | |
| 530 | + SDKROOT = iphoneos; | |
| 531 | + TARGETED_DEVICE_FAMILY = "1,2"; | |
| 532 | + VALIDATE_PRODUCT = YES; | |
| 533 | + }; | |
| 534 | + name = Release; | |
| 535 | + }; | |
| 536 | + 6003F5C0195388D20070C39A /* Debug */ = { | |
| 537 | + isa = XCBuildConfiguration; | |
| 538 | + baseConfigurationReference = A122EF93CC64FE86A9F44FF9 /* Pods-CNLiveBUserAgreement_Example.debug.xcconfig */; | |
| 539 | + buildSettings = { | |
| 540 | + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | |
| 541 | + DEVELOPMENT_TEAM = 94X49GG3ZW; | |
| 542 | + GCC_PRECOMPILE_PREFIX_HEADER = YES; | |
| 543 | + GCC_PREFIX_HEADER = "CNLiveBUserAgreement/CNLiveBUserAgreement-Prefix.pch"; | |
| 544 | + INFOPLIST_FILE = "CNLiveBUserAgreement/CNLiveBUserAgreement-Info.plist"; | |
| 545 | + MODULE_NAME = ExampleApp; | |
| 546 | + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; | |
| 547 | + PRODUCT_NAME = "$(TARGET_NAME)"; | |
| 548 | + SWIFT_VERSION = 4.0; | |
| 549 | + WRAPPER_EXTENSION = app; | |
| 550 | + }; | |
| 551 | + name = Debug; | |
| 552 | + }; | |
| 553 | + 6003F5C1195388D20070C39A /* Release */ = { | |
| 554 | + isa = XCBuildConfiguration; | |
| 555 | + baseConfigurationReference = 11F4D77D4CDDEDE8376C5A43 /* Pods-CNLiveBUserAgreement_Example.release.xcconfig */; | |
| 556 | + buildSettings = { | |
| 557 | + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | |
| 558 | + DEVELOPMENT_TEAM = 94X49GG3ZW; | |
| 559 | + GCC_PRECOMPILE_PREFIX_HEADER = YES; | |
| 560 | + GCC_PREFIX_HEADER = "CNLiveBUserAgreement/CNLiveBUserAgreement-Prefix.pch"; | |
| 561 | + INFOPLIST_FILE = "CNLiveBUserAgreement/CNLiveBUserAgreement-Info.plist"; | |
| 562 | + MODULE_NAME = ExampleApp; | |
| 563 | + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; | |
| 564 | + PRODUCT_NAME = "$(TARGET_NAME)"; | |
| 565 | + SWIFT_VERSION = 4.0; | |
| 566 | + WRAPPER_EXTENSION = app; | |
| 567 | + }; | |
| 568 | + name = Release; | |
| 569 | + }; | |
| 570 | + 6003F5C3195388D20070C39A /* Debug */ = { | |
| 571 | + isa = XCBuildConfiguration; | |
| 572 | + baseConfigurationReference = FD2A79AFFB7F01C89CE8D6DB /* Pods-CNLiveBUserAgreement_Tests.debug.xcconfig */; | |
| 573 | + buildSettings = { | |
| 574 | + BUNDLE_LOADER = "$(TEST_HOST)"; | |
| 575 | + FRAMEWORK_SEARCH_PATHS = ( | |
| 576 | + "$(PLATFORM_DIR)/Developer/Library/Frameworks", | |
| 577 | + "$(inherited)", | |
| 578 | + "$(DEVELOPER_FRAMEWORKS_DIR)", | |
| 579 | + ); | |
| 580 | + GCC_PRECOMPILE_PREFIX_HEADER = YES; | |
| 581 | + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; | |
| 582 | + GCC_PREPROCESSOR_DEFINITIONS = ( | |
| 583 | + "DEBUG=1", | |
| 584 | + "$(inherited)", | |
| 585 | + ); | |
| 586 | + INFOPLIST_FILE = "Tests/Tests-Info.plist"; | |
| 587 | + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; | |
| 588 | + PRODUCT_NAME = "$(TARGET_NAME)"; | |
| 589 | + SWIFT_VERSION = 4.0; | |
| 590 | + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CNLiveBUserAgreement_Example.app/CNLiveBUserAgreement_Example"; | |
| 591 | + WRAPPER_EXTENSION = xctest; | |
| 592 | + }; | |
| 593 | + name = Debug; | |
| 594 | + }; | |
| 595 | + 6003F5C4195388D20070C39A /* Release */ = { | |
| 596 | + isa = XCBuildConfiguration; | |
| 597 | + baseConfigurationReference = B8CD2B6B4B276037EC2DA256 /* Pods-CNLiveBUserAgreement_Tests.release.xcconfig */; | |
| 598 | + buildSettings = { | |
| 599 | + BUNDLE_LOADER = "$(TEST_HOST)"; | |
| 600 | + FRAMEWORK_SEARCH_PATHS = ( | |
| 601 | + "$(PLATFORM_DIR)/Developer/Library/Frameworks", | |
| 602 | + "$(inherited)", | |
| 603 | + "$(DEVELOPER_FRAMEWORKS_DIR)", | |
| 604 | + ); | |
| 605 | + GCC_PRECOMPILE_PREFIX_HEADER = YES; | |
| 606 | + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; | |
| 607 | + INFOPLIST_FILE = "Tests/Tests-Info.plist"; | |
| 608 | + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; | |
| 609 | + PRODUCT_NAME = "$(TARGET_NAME)"; | |
| 610 | + SWIFT_VERSION = 4.0; | |
| 611 | + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CNLiveBUserAgreement_Example.app/CNLiveBUserAgreement_Example"; | |
| 612 | + WRAPPER_EXTENSION = xctest; | |
| 613 | + }; | |
| 614 | + name = Release; | |
| 615 | + }; | |
| 616 | +/* End XCBuildConfiguration section */ | |
| 617 | + | |
| 618 | +/* Begin XCConfigurationList section */ | |
| 619 | + 6003F585195388D10070C39A /* Build configuration list for PBXProject "CNLiveBUserAgreement" */ = { | |
| 620 | + isa = XCConfigurationList; | |
| 621 | + buildConfigurations = ( | |
| 622 | + 6003F5BD195388D20070C39A /* Debug */, | |
| 623 | + 6003F5BE195388D20070C39A /* Release */, | |
| 624 | + ); | |
| 625 | + defaultConfigurationIsVisible = 0; | |
| 626 | + defaultConfigurationName = Release; | |
| 627 | + }; | |
| 628 | + 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveBUserAgreement_Example" */ = { | |
| 629 | + isa = XCConfigurationList; | |
| 630 | + buildConfigurations = ( | |
| 631 | + 6003F5C0195388D20070C39A /* Debug */, | |
| 632 | + 6003F5C1195388D20070C39A /* Release */, | |
| 633 | + ); | |
| 634 | + defaultConfigurationIsVisible = 0; | |
| 635 | + defaultConfigurationName = Release; | |
| 636 | + }; | |
| 637 | + 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveBUserAgreement_Tests" */ = { | |
| 638 | + isa = XCConfigurationList; | |
| 639 | + buildConfigurations = ( | |
| 640 | + 6003F5C3195388D20070C39A /* Debug */, | |
| 641 | + 6003F5C4195388D20070C39A /* Release */, | |
| 642 | + ); | |
| 643 | + defaultConfigurationIsVisible = 0; | |
| 644 | + defaultConfigurationName = Release; | |
| 645 | + }; | |
| 646 | +/* End XCConfigurationList section */ | |
| 647 | + }; | |
| 648 | + rootObject = 6003F582195388D10070C39A /* Project object */; | |
| 649 | +} | ... | ... |
Example/CNLiveBUserAgreement.xcodeproj/xcshareddata/xcschemes/CNLiveBUserAgreement-Example.xcscheme
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<Scheme | |
| 3 | + LastUpgradeVersion = "0720" | |
| 4 | + version = "1.3"> | |
| 5 | + <BuildAction | |
| 6 | + parallelizeBuildables = "YES" | |
| 7 | + buildImplicitDependencies = "YES"> | |
| 8 | + <BuildActionEntries> | |
| 9 | + <BuildActionEntry | |
| 10 | + buildForTesting = "YES" | |
| 11 | + buildForRunning = "YES" | |
| 12 | + buildForProfiling = "YES" | |
| 13 | + buildForArchiving = "YES" | |
| 14 | + buildForAnalyzing = "YES"> | |
| 15 | + <BuildableReference | |
| 16 | + BuildableIdentifier = "primary" | |
| 17 | + BlueprintIdentifier = "6003F589195388D20070C39A" | |
| 18 | + BuildableName = "CNLiveBUserAgreement_Example.app" | |
| 19 | + BlueprintName = "CNLiveBUserAgreement_Example" | |
| 20 | + ReferencedContainer = "container:CNLiveBUserAgreement.xcodeproj"> | |
| 21 | + </BuildableReference> | |
| 22 | + </BuildActionEntry> | |
| 23 | + </BuildActionEntries> | |
| 24 | + </BuildAction> | |
| 25 | + <TestAction | |
| 26 | + buildConfiguration = "Debug" | |
| 27 | + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | |
| 28 | + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | |
| 29 | + shouldUseLaunchSchemeArgsEnv = "YES"> | |
| 30 | + <Testables> | |
| 31 | + <TestableReference | |
| 32 | + skipped = "NO"> | |
| 33 | + <BuildableReference | |
| 34 | + BuildableIdentifier = "primary" | |
| 35 | + BlueprintIdentifier = "6003F5AD195388D20070C39A" | |
| 36 | + BuildableName = "CNLiveBUserAgreement_Tests.xctest" | |
| 37 | + BlueprintName = "CNLiveBUserAgreement_Tests" | |
| 38 | + ReferencedContainer = "container:CNLiveBUserAgreement.xcodeproj"> | |
| 39 | + </BuildableReference> | |
| 40 | + </TestableReference> | |
| 41 | + </Testables> | |
| 42 | + <MacroExpansion> | |
| 43 | + <BuildableReference | |
| 44 | + BuildableIdentifier = "primary" | |
| 45 | + BlueprintIdentifier = "6003F589195388D20070C39A" | |
| 46 | + BuildableName = "CNLiveBUserAgreement_Example.app" | |
| 47 | + BlueprintName = "CNLiveBUserAgreement_Example" | |
| 48 | + ReferencedContainer = "container:CNLiveBUserAgreement.xcodeproj"> | |
| 49 | + </BuildableReference> | |
| 50 | + </MacroExpansion> | |
| 51 | + <AdditionalOptions> | |
| 52 | + </AdditionalOptions> | |
| 53 | + </TestAction> | |
| 54 | + <LaunchAction | |
| 55 | + buildConfiguration = "Debug" | |
| 56 | + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | |
| 57 | + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | |
| 58 | + launchStyle = "0" | |
| 59 | + useCustomWorkingDirectory = "NO" | |
| 60 | + ignoresPersistentStateOnLaunch = "NO" | |
| 61 | + debugDocumentVersioning = "YES" | |
| 62 | + debugServiceExtension = "internal" | |
| 63 | + allowLocationSimulation = "YES"> | |
| 64 | + <BuildableProductRunnable | |
| 65 | + runnableDebuggingMode = "0"> | |
| 66 | + <BuildableReference | |
| 67 | + BuildableIdentifier = "primary" | |
| 68 | + BlueprintIdentifier = "6003F589195388D20070C39A" | |
| 69 | + BuildableName = "CNLiveBUserAgreement_Example.app" | |
| 70 | + BlueprintName = "CNLiveBUserAgreement_Example" | |
| 71 | + ReferencedContainer = "container:CNLiveBUserAgreement.xcodeproj"> | |
| 72 | + </BuildableReference> | |
| 73 | + </BuildableProductRunnable> | |
| 74 | + <AdditionalOptions> | |
| 75 | + </AdditionalOptions> | |
| 76 | + </LaunchAction> | |
| 77 | + <ProfileAction | |
| 78 | + buildConfiguration = "Release" | |
| 79 | + shouldUseLaunchSchemeArgsEnv = "YES" | |
| 80 | + savedToolIdentifier = "" | |
| 81 | + useCustomWorkingDirectory = "NO" | |
| 82 | + debugDocumentVersioning = "YES"> | |
| 83 | + <BuildableProductRunnable | |
| 84 | + runnableDebuggingMode = "0"> | |
| 85 | + <BuildableReference | |
| 86 | + BuildableIdentifier = "primary" | |
| 87 | + BlueprintIdentifier = "6003F589195388D20070C39A" | |
| 88 | + BuildableName = "CNLiveBUserAgreement_Example.app" | |
| 89 | + BlueprintName = "CNLiveBUserAgreement_Example" | |
| 90 | + ReferencedContainer = "container:CNLiveBUserAgreement.xcodeproj"> | |
| 91 | + </BuildableReference> | |
| 92 | + </BuildableProductRunnable> | |
| 93 | + </ProfileAction> | |
| 94 | + <AnalyzeAction | |
| 95 | + buildConfiguration = "Debug"> | |
| 96 | + </AnalyzeAction> | |
| 97 | + <ArchiveAction | |
| 98 | + buildConfiguration = "Release" | |
| 99 | + revealArchiveInOrganizer = "YES"> | |
| 100 | + </ArchiveAction> | |
| 101 | +</Scheme> | ... | ... |
Example/CNLiveBUserAgreement/Base.lproj/LaunchScreen.storyboard
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> | |
| 3 | + <device id="retina4_7" orientation="portrait"> | |
| 4 | + <adaptation id="fullscreen"/> | |
| 5 | + </device> | |
| 6 | + <dependencies> | |
| 7 | + <deployment identifier="iOS"/> | |
| 8 | + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> | |
| 9 | + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | |
| 10 | + </dependencies> | |
| 11 | + <scenes> | |
| 12 | + <!--View Controller--> | |
| 13 | + <scene sceneID="EHf-IW-A2E"> | |
| 14 | + <objects> | |
| 15 | + <viewController id="01J-lp-oVM" sceneMemberID="viewController"> | |
| 16 | + <layoutGuides> | |
| 17 | + <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/> | |
| 18 | + <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/> | |
| 19 | + </layoutGuides> | |
| 20 | + <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> | |
| 21 | + <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | |
| 22 | + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | |
| 23 | + <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | |
| 24 | + </view> | |
| 25 | + </viewController> | |
| 26 | + <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> | |
| 27 | + </objects> | |
| 28 | + <point key="canvasLocation" x="53" y="375"/> | |
| 29 | + </scene> | |
| 30 | + </scenes> | |
| 31 | +</document> | ... | ... |
Example/CNLiveBUserAgreement/Base.lproj/Main.storyboard
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="whP-gf-Uak"> | |
| 3 | + <device id="retina4_7" orientation="portrait"> | |
| 4 | + <adaptation id="fullscreen"/> | |
| 5 | + </device> | |
| 6 | + <dependencies> | |
| 7 | + <deployment identifier="iOS"/> | |
| 8 | + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> | |
| 9 | + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | |
| 10 | + </dependencies> | |
| 11 | + <scenes> | |
| 12 | + <!--View Controller--> | |
| 13 | + <scene sceneID="wQg-tq-qST"> | |
| 14 | + <objects> | |
| 15 | + <viewController id="whP-gf-Uak" customClass="CNLIVEViewController" sceneMemberID="viewController"> | |
| 16 | + <layoutGuides> | |
| 17 | + <viewControllerLayoutGuide type="top" id="uEw-UM-LJ8"/> | |
| 18 | + <viewControllerLayoutGuide type="bottom" id="Mvr-aV-6Um"/> | |
| 19 | + </layoutGuides> | |
| 20 | + <view key="view" contentMode="scaleToFill" id="TpU-gO-2f1"> | |
| 21 | + <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | |
| 22 | + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | |
| 23 | + <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | |
| 24 | + </view> | |
| 25 | + </viewController> | |
| 26 | + <placeholder placeholderIdentifier="IBFirstResponder" id="tc2-Qw-aMS" userLabel="First Responder" sceneMemberID="firstResponder"/> | |
| 27 | + </objects> | |
| 28 | + <point key="canvasLocation" x="305" y="433"/> | |
| 29 | + </scene> | |
| 30 | + </scenes> | |
| 31 | +</document> | ... | ... |
Example/CNLiveBUserAgreement/CNLIVEAppDelegate.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLIVEAppDelegate.h | |
| 3 | +// CNLiveBUserAgreement | |
| 4 | +// | |
| 5 | +// Created by iOS-Xiaowen on 04/21/2020. | |
| 6 | +// Copyright (c) 2020 iOS-Xiaowen. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +@import UIKit; | |
| 10 | + | |
| 11 | +@interface CNLIVEAppDelegate : UIResponder <UIApplicationDelegate> | |
| 12 | + | |
| 13 | +@property (strong, nonatomic) UIWindow *window; | |
| 14 | + | |
| 15 | +@end | ... | ... |
Example/CNLiveBUserAgreement/CNLIVEAppDelegate.m
0 → 100644
| 1 | +// | |
| 2 | +// CNLIVEAppDelegate.m | |
| 3 | +// CNLiveBUserAgreement | |
| 4 | +// | |
| 5 | +// Created by iOS-Xiaowen on 04/21/2020. | |
| 6 | +// Copyright (c) 2020 iOS-Xiaowen. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "CNLIVEAppDelegate.h" | |
| 10 | +#import "CNLIVEViewController.h" | |
| 11 | + | |
| 12 | +@implementation CNLIVEAppDelegate | |
| 13 | + | |
| 14 | +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| 15 | +{ | |
| 16 | + // Override point for customization after application launch. | |
| 17 | + UINavigationController *navCtrl = [[UINavigationController alloc] initWithRootViewController:[CNLIVEViewController new]]; | |
| 18 | + self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; | |
| 19 | + self.window.rootViewController = navCtrl; | |
| 20 | + [self.window makeKeyAndVisible]; | |
| 21 | + return YES; | |
| 22 | +} | |
| 23 | + | |
| 24 | +- (void)applicationWillResignActive:(UIApplication *)application | |
| 25 | +{ | |
| 26 | + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. | |
| 27 | + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. | |
| 28 | +} | |
| 29 | + | |
| 30 | +- (void)applicationDidEnterBackground:(UIApplication *)application | |
| 31 | +{ | |
| 32 | + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. | |
| 33 | + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. | |
| 34 | +} | |
| 35 | + | |
| 36 | +- (void)applicationWillEnterForeground:(UIApplication *)application | |
| 37 | +{ | |
| 38 | + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. | |
| 39 | +} | |
| 40 | + | |
| 41 | +- (void)applicationDidBecomeActive:(UIApplication *)application | |
| 42 | +{ | |
| 43 | + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. | |
| 44 | +} | |
| 45 | + | |
| 46 | +- (void)applicationWillTerminate:(UIApplication *)application | |
| 47 | +{ | |
| 48 | + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. | |
| 49 | +} | |
| 50 | + | |
| 51 | +@end | ... | ... |
Example/CNLiveBUserAgreement/CNLIVEViewController.h
0 → 100644
Example/CNLiveBUserAgreement/CNLIVEViewController.m
0 → 100644
| 1 | +// | |
| 2 | +// CNLIVEViewController.m | |
| 3 | +// CNLiveBUserAgreement | |
| 4 | +// | |
| 5 | +// Created by iOS-Xiaowen on 04/21/2020. | |
| 6 | +// Copyright (c) 2020 iOS-Xiaowen. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +#import "CNLIVEViewController.h" | |
| 10 | +#import "CNLiveUserAgreementManager.h" | |
| 11 | +#import "CNLiveUserAgreementController.h" | |
| 12 | + | |
| 13 | +@interface CNLIVEViewController () | |
| 14 | + | |
| 15 | +@end | |
| 16 | + | |
| 17 | +@implementation CNLIVEViewController | |
| 18 | + | |
| 19 | +- (void)viewDidLoad { | |
| 20 | + [super viewDidLoad]; | |
| 21 | + // Do any additional setup after loading the view, typically from a nib. | |
| 22 | + | |
| 23 | + self.view.backgroundColor = [UIColor whiteColor]; | |
| 24 | + UIButton *btn0 = [UIButton buttonWithType:UIButtonTypeCustom]; | |
| 25 | + btn0.frame = CGRectMake(0, 0, 100, 100); | |
| 26 | + btn0.center = self.view.center; | |
| 27 | + btn0.backgroundColor = [UIColor redColor]; | |
| 28 | + [btn0 setTitle:@"进入" forState:UIControlStateNormal]; | |
| 29 | + [btn0 addTarget:self action:@selector(testButtonClicked) forControlEvents:UIControlEventTouchUpInside]; | |
| 30 | + [self.view addSubview:btn0]; | |
| 31 | + | |
| 32 | +} | |
| 33 | + | |
| 34 | +- (void)testButtonClicked { | |
| 35 | + [CNLiveUserAgreementManager jumpToAgreementH5WithType:CNLiveUserAgreementUnderstand]; | |
| 36 | + | |
| 37 | +} | |
| 38 | + | |
| 39 | + | |
| 40 | +- (void)didReceiveMemoryWarning | |
| 41 | +{ | |
| 42 | + [super didReceiveMemoryWarning]; | |
| 43 | + // Dispose of any resources that can be recreated. | |
| 44 | +} | |
| 45 | + | |
| 46 | +@end | ... | ... |
Example/CNLiveBUserAgreement/CNLiveBUserAgreement-Info.plist
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | +<plist version="1.0"> | |
| 4 | +<dict> | |
| 5 | + <key>CFBundleDevelopmentRegion</key> | |
| 6 | + <string>en</string> | |
| 7 | + <key>CFBundleDisplayName</key> | |
| 8 | + <string>${PRODUCT_NAME}</string> | |
| 9 | + <key>CFBundleExecutable</key> | |
| 10 | + <string>${EXECUTABLE_NAME}</string> | |
| 11 | + <key>CFBundleIdentifier</key> | |
| 12 | + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | |
| 13 | + <key>CFBundleInfoDictionaryVersion</key> | |
| 14 | + <string>6.0</string> | |
| 15 | + <key>CFBundleName</key> | |
| 16 | + <string>${PRODUCT_NAME}</string> | |
| 17 | + <key>CFBundlePackageType</key> | |
| 18 | + <string>APPL</string> | |
| 19 | + <key>CFBundleShortVersionString</key> | |
| 20 | + <string>1.0</string> | |
| 21 | + <key>CFBundleSignature</key> | |
| 22 | + <string>????</string> | |
| 23 | + <key>CFBundleVersion</key> | |
| 24 | + <string>1.0</string> | |
| 25 | + <key>LSRequiresIPhoneOS</key> | |
| 26 | + <true/> | |
| 27 | + <key>UILaunchStoryboardName</key> | |
| 28 | + <string>LaunchScreen</string> | |
| 29 | + <key>UIMainStoryboardFile</key> | |
| 30 | + <string>Main</string> | |
| 31 | + <key>UIRequiredDeviceCapabilities</key> | |
| 32 | + <array> | |
| 33 | + <string>armv7</string> | |
| 34 | + </array> | |
| 35 | + <key>UISupportedInterfaceOrientations</key> | |
| 36 | + <array> | |
| 37 | + <string>UIInterfaceOrientationPortrait</string> | |
| 38 | + <string>UIInterfaceOrientationLandscapeLeft</string> | |
| 39 | + <string>UIInterfaceOrientationLandscapeRight</string> | |
| 40 | + </array> | |
| 41 | + <key>UISupportedInterfaceOrientations~ipad</key> | |
| 42 | + <array> | |
| 43 | + <string>UIInterfaceOrientationPortrait</string> | |
| 44 | + <string>UIInterfaceOrientationPortraitUpsideDown</string> | |
| 45 | + <string>UIInterfaceOrientationLandscapeLeft</string> | |
| 46 | + <string>UIInterfaceOrientationLandscapeRight</string> | |
| 47 | + </array> | |
| 48 | +</dict> | |
| 49 | +</plist> | ... | ... |
Example/CNLiveBUserAgreement/CNLiveBUserAgreement-Prefix.pch
0 → 100644
| 1 | +// | |
| 2 | +// Prefix header | |
| 3 | +// | |
| 4 | +// The contents of this file are implicitly included at the beginning of every source file. | |
| 5 | +// | |
| 6 | + | |
| 7 | +#import <Availability.h> | |
| 8 | + | |
| 9 | +#ifndef __IPHONE_5_0 | |
| 10 | +#warning "This project uses features only available in iOS SDK 5.0 and later." | |
| 11 | +#endif | |
| 12 | + | |
| 13 | +#ifdef __OBJC__ | |
| 14 | + @import UIKit; | |
| 15 | + @import Foundation; | |
| 16 | +#endif | ... | ... |
Example/CNLiveBUserAgreement/Images.xcassets/AppIcon.appiconset/Contents.json
0 → 100644
| 1 | +{ | |
| 2 | + "images" : [ | |
| 3 | + { | |
| 4 | + "idiom" : "iphone", | |
| 5 | + "size" : "20x20", | |
| 6 | + "scale" : "2x" | |
| 7 | + }, | |
| 8 | + { | |
| 9 | + "idiom" : "iphone", | |
| 10 | + "size" : "20x20", | |
| 11 | + "scale" : "3x" | |
| 12 | + }, | |
| 13 | + { | |
| 14 | + "idiom" : "iphone", | |
| 15 | + "size" : "29x29", | |
| 16 | + "scale" : "2x" | |
| 17 | + }, | |
| 18 | + { | |
| 19 | + "idiom" : "iphone", | |
| 20 | + "size" : "29x29", | |
| 21 | + "scale" : "3x" | |
| 22 | + }, | |
| 23 | + { | |
| 24 | + "idiom" : "iphone", | |
| 25 | + "size" : "40x40", | |
| 26 | + "scale" : "2x" | |
| 27 | + }, | |
| 28 | + { | |
| 29 | + "idiom" : "iphone", | |
| 30 | + "size" : "40x40", | |
| 31 | + "scale" : "3x" | |
| 32 | + }, | |
| 33 | + { | |
| 34 | + "idiom" : "iphone", | |
| 35 | + "size" : "60x60", | |
| 36 | + "scale" : "2x" | |
| 37 | + }, | |
| 38 | + { | |
| 39 | + "idiom" : "iphone", | |
| 40 | + "size" : "60x60", | |
| 41 | + "scale" : "3x" | |
| 42 | + }, | |
| 43 | + { | |
| 44 | + "idiom" : "ipad", | |
| 45 | + "size" : "20x20", | |
| 46 | + "scale" : "1x" | |
| 47 | + }, | |
| 48 | + { | |
| 49 | + "idiom" : "ipad", | |
| 50 | + "size" : "20x20", | |
| 51 | + "scale" : "2x" | |
| 52 | + }, | |
| 53 | + { | |
| 54 | + "idiom" : "ipad", | |
| 55 | + "size" : "29x29", | |
| 56 | + "scale" : "1x" | |
| 57 | + }, | |
| 58 | + { | |
| 59 | + "idiom" : "ipad", | |
| 60 | + "size" : "29x29", | |
| 61 | + "scale" : "2x" | |
| 62 | + }, | |
| 63 | + { | |
| 64 | + "idiom" : "ipad", | |
| 65 | + "size" : "40x40", | |
| 66 | + "scale" : "1x" | |
| 67 | + }, | |
| 68 | + { | |
| 69 | + "idiom" : "ipad", | |
| 70 | + "size" : "40x40", | |
| 71 | + "scale" : "2x" | |
| 72 | + }, | |
| 73 | + { | |
| 74 | + "idiom" : "ipad", | |
| 75 | + "size" : "76x76", | |
| 76 | + "scale" : "1x" | |
| 77 | + }, | |
| 78 | + { | |
| 79 | + "idiom" : "ipad", | |
| 80 | + "size" : "76x76", | |
| 81 | + "scale" : "2x" | |
| 82 | + }, | |
| 83 | + { | |
| 84 | + "idiom" : "ipad", | |
| 85 | + "size" : "83.5x83.5", | |
| 86 | + "scale" : "2x" | |
| 87 | + }, | |
| 88 | + { | |
| 89 | + "idiom" : "ios-marketing", | |
| 90 | + "size" : "1024x1024", | |
| 91 | + "scale" : "1x" | |
| 92 | + } | |
| 93 | + ], | |
| 94 | + "info" : { | |
| 95 | + "version" : 1, | |
| 96 | + "author" : "xcode" | |
| 97 | + } | |
| 98 | +} | ... | ... |
Example/CNLiveBUserAgreement/en.lproj/InfoPlist.strings
0 → 100644
Example/CNLiveBUserAgreement/main.m
0 → 100644
| 1 | +// | |
| 2 | +// main.m | |
| 3 | +// CNLiveBUserAgreement | |
| 4 | +// | |
| 5 | +// Created by iOS-Xiaowen on 04/21/2020. | |
| 6 | +// Copyright (c) 2020 iOS-Xiaowen. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +@import UIKit; | |
| 10 | +#import "CNLIVEAppDelegate.h" | |
| 11 | + | |
| 12 | +int main(int argc, char * argv[]) | |
| 13 | +{ | |
| 14 | + @autoreleasepool { | |
| 15 | + return UIApplicationMain(argc, argv, nil, NSStringFromClass([CNLIVEAppDelegate class])); | |
| 16 | + } | |
| 17 | +} | ... | ... |
Example/Podfile
0 → 100644
| 1 | +source 'https://github.com/CocoaPods/Specs.git' | |
| 2 | +source 'http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git' | |
| 3 | +use_frameworks! | |
| 4 | + | |
| 5 | +platform :ios, '9.0' | |
| 6 | +target 'CNLiveBUserAgreement_Example' do | |
| 7 | + pod 'CNLiveBUserAgreement', :path => '../' | |
| 8 | + | |
| 9 | + target 'CNLiveBUserAgreement_Tests' do | |
| 10 | + inherit! :search_paths | |
| 11 | + | |
| 12 | + | |
| 13 | + end | |
| 14 | +end | ... | ... |
Example/Tests/Tests-Info.plist
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| 3 | +<plist version="1.0"> | |
| 4 | +<dict> | |
| 5 | + <key>CFBundleDevelopmentRegion</key> | |
| 6 | + <string>en</string> | |
| 7 | + <key>CFBundleExecutable</key> | |
| 8 | + <string>${EXECUTABLE_NAME}</string> | |
| 9 | + <key>CFBundleIdentifier</key> | |
| 10 | + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | |
| 11 | + <key>CFBundleInfoDictionaryVersion</key> | |
| 12 | + <string>6.0</string> | |
| 13 | + <key>CFBundlePackageType</key> | |
| 14 | + <string>BNDL</string> | |
| 15 | + <key>CFBundleShortVersionString</key> | |
| 16 | + <string>1.0</string> | |
| 17 | + <key>CFBundleSignature</key> | |
| 18 | + <string>????</string> | |
| 19 | + <key>CFBundleVersion</key> | |
| 20 | + <string>1</string> | |
| 21 | +</dict> | |
| 22 | +</plist> | ... | ... |
Example/Tests/Tests-Prefix.pch
0 → 100644
Example/Tests/Tests.m
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveBUserAgreementTests.m | |
| 3 | +// CNLiveBUserAgreementTests | |
| 4 | +// | |
| 5 | +// Created by iOS-Xiaowen on 04/21/2020. | |
| 6 | +// Copyright (c) 2020 iOS-Xiaowen. All rights reserved. | |
| 7 | +// | |
| 8 | + | |
| 9 | +@import XCTest; | |
| 10 | + | |
| 11 | +@interface Tests : XCTestCase | |
| 12 | + | |
| 13 | +@end | |
| 14 | + | |
| 15 | +@implementation Tests | |
| 16 | + | |
| 17 | +- (void)setUp | |
| 18 | +{ | |
| 19 | + [super setUp]; | |
| 20 | + // Put setup code here. This method is called before the invocation of each test method in the class. | |
| 21 | +} | |
| 22 | + | |
| 23 | +- (void)tearDown | |
| 24 | +{ | |
| 25 | + // Put teardown code here. This method is called after the invocation of each test method in the class. | |
| 26 | + [super tearDown]; | |
| 27 | +} | |
| 28 | + | |
| 29 | +- (void)testExample | |
| 30 | +{ | |
| 31 | + XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); | |
| 32 | +} | |
| 33 | + | |
| 34 | +@end | |
| 35 | + | ... | ... |
Example/Tests/en.lproj/InfoPlist.strings
0 → 100644
LICENSE
| 1 | -CNLiveBUserAgreement | |
| 2 | 1 | \ No newline at end of file |
| 2 | +Copyright (c) 2020 iOS-Xiaowen <153993236@qq.com> | |
| 3 | + | |
| 4 | +Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 5 | +of this software and associated documentation files (the "Software"), to deal | |
| 6 | +in the Software without restriction, including without limitation the rights | |
| 7 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| 8 | +copies of the Software, and to permit persons to whom the Software is | |
| 9 | +furnished to do so, subject to the following conditions: | |
| 10 | + | |
| 11 | +The above copyright notice and this permission notice shall be included in | |
| 12 | +all copies or substantial portions of the Software. | |
| 13 | + | |
| 14 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 15 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 16 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 17 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 18 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 19 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
| 20 | +THE SOFTWARE. | ... | ... |
README.md
| 1 | -CNLiveBUserAgreement | |
| 1 | +# CNLiveBUserAgreement | |
| 2 | + | |
| 3 | +[](https://travis-ci.org/iOS-Xiaowen/CNLiveBUserAgreement) | |
| 4 | +[](https://cocoapods.org/pods/CNLiveBUserAgreement) | |
| 5 | +[](https://cocoapods.org/pods/CNLiveBUserAgreement) | |
| 6 | +[](https://cocoapods.org/pods/CNLiveBUserAgreement) | |
| 7 | + | |
| 8 | +## Example | |
| 9 | + | |
| 10 | +To run the example project, clone the repo, and run `pod install` from the Example directory first. | |
| 11 | + | |
| 12 | +## Requirements | |
| 13 | + | |
| 14 | +## Installation | |
| 15 | + | |
| 16 | +CNLiveBUserAgreement is available through [CocoaPods](https://cocoapods.org). To install | |
| 17 | +it, simply add the following line to your Podfile: | |
| 18 | + | |
| 19 | +```ruby | |
| 20 | +pod 'CNLiveBUserAgreement' | |
| 21 | +``` | |
| 22 | + | |
| 23 | +## Author | |
| 24 | + | |
| 25 | +iOS-Xiaowen, 153993236@qq.com | |
| 26 | + | |
| 27 | +## License | |
| 28 | + | |
| 29 | +CNLiveBUserAgreement is available under the MIT license. See the LICENSE file for more info. | ... | ... |
_Pods.xcodeproj
0 → 120000