Commit 71b6aa3ad2e3139811f580a554f0303fe1918515

Authored by zhangxiaowen
1 parent 92c861e4

no message

Showing 54 changed files with 2740 additions and 1 deletions
CNLiveServices.podspec 0 → 100644
  1 +#
  2 +# Be sure to run `pod lib lint CNLiveServices.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 = 'CNLiveServices'
  11 + s.version = '0.0.1'
  12 + s.summary = '网家家服务层.'
  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: Add long description of the pod here.
  22 + DESC
  23 +
  24 + s.homepage = 'http://bj.gitlab.cnlive.com/ios-team/CNLiveServices'
  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/CNLiveServices.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 = 'CNLiveServices/Classes/CNLiveServices.h'
  34 +
  35 + # 环境
  36 + s.subspec 'Environment' do |ss|
  37 + ss.source_files = 'CNLiveServices/Classes/Environment/*.{h,m}'
  38 + end
  39 +
  40 + # 首页
  41 + s.subspec 'Home' do |ss|
  42 + ss.source_files = 'CNLiveServices/Classes/Home/*.{h,m}'
  43 + end
  44 +
  45 + # 分类
  46 + s.subspec 'Classification' do |ss|
  47 + ss.source_files = 'CNLiveServices/Classes/Classification/*.{h,m}'
  48 + end
  49 +
  50 + # 我的
  51 + s.subspec 'My' do |ss|
  52 + ss.source_files = 'CNLiveServices/Classes/My/*.{h,m}'
  53 + end
  54 +
  55 + # 发现
  56 + s.subspec 'Found' do |ss|
  57 + ss.source_files = 'CNLiveServices/Classes/Found/*.{h,m}'
  58 + end
  59 +
  60 +
  61 + # 登录
  62 + s.subspec 'Login' do |ss|
  63 + ss.source_files = 'CNLiveServices/Classes/Login/*.{h,m}'
  64 + end
  65 +
  66 + # 用户协议
  67 + s.subspec 'UserAgreement' do |ss|
  68 + ss.source_files = 'CNLiveServices/Classes/UserAgreement/*.{h,m}'
  69 + end
  70 +
  71 + # s.resource_bundles = {
  72 + # 'CNLiveServices' => ['CNLiveServices/Assets/*.png']
  73 + # }
  74 +
  75 + # s.public_header_files = 'Pod/Classes/**/*.h'
  76 + # s.frameworks = 'UIKit', 'MapKit'
  77 + s.dependency 'BeeHive'
  78 +
  79 +end
... ...
CNLiveServices/Assets/.gitkeep 0 → 100644
CNLiveServices/Classes/.gitkeep 0 → 100644
CNLiveServices/Classes/CNLiveServices.h 0 → 100644
  1 +//
  2 +// CNLiveServices.h
  3 +// TestBH
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 XW. All rights reserved.
  7 +//
  8 +
  9 +#ifndef CNLiveServices_h
  10 +#define CNLiveServices_h
  11 +
  12 +#import "BeeHive.h"
  13 +
  14 +//环境
  15 +#import "CNLiveEnvironmentServiceProtocol.h"
  16 +
  17 +//首页
  18 +#import "CNLiveHomeServiceProtocol.h"
  19 +
  20 +//分类
  21 +#import "CNLiveClassificationServiceProtocol.h"
  22 +
  23 +//我的
  24 +#import "CNLiveMyServiceProtocol.h"
  25 +
  26 +//发现
  27 +#import "CNLiveFoundServiceProtocol.h"
  28 +
  29 +//登录
  30 +#import "CNLiveLoginServiceProtocol.h"
  31 +
  32 +//用户协议
  33 +#import "CNLiveUserAgreementServiceProtocol.h"
  34 +
  35 +
  36 +#endif /* CNLiveServices_h */
... ...
CNLiveServices/Classes/Classification/CNLiveClassificationServiceProtocol.h 0 → 100644
  1 +//
  2 +// CNLiveClassificationServiceProtocol.h
  3 +// TestBH
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 XW. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +#import "BHServiceProtocol.h"
  11 +
  12 +@protocol CNLiveClassificationServiceProtocol <NSObject, BHServiceProtocol>
  13 +//传值
  14 +@property (nonatomic, strong) NSString *itemId;
  15 +
  16 +
  17 +@end
... ...
CNLiveServices/Classes/Environment/CNLiveEnvironmentServiceProtocol.h 0 → 100644
  1 +//
  2 +// CNLiveEnvironmentServiceProtocol.h
  3 +// TestBH
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 XW. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +#import "BHServiceProtocol.h"
  11 +
  12 +typedef NS_ENUM(NSInteger, CNLiveEnvironmentType) {
  13 + CNLiveDebugInHouse = 0,//测试企业环境
  14 + CNLiveProductionInHouse = 1,//正式企业环境
  15 + CNLiveDebugAppStore = 2,//测试商店环境
  16 + CNLiveProductionAppStore = 3 //正式商店环境
  17 +
  18 +};
  19 +
  20 +@protocol CNLiveEnvironmentServiceProtocol <NSObject, BHServiceProtocol>
  21 ++ (void)setEnvironment:(CNLiveEnvironmentType)isEnvironment;
  22 +
  23 +
  24 +@end
... ...
CNLiveServices/Classes/Found/CNLiveFoundServiceProtocol.h 0 → 100644
  1 +//
  2 +// CNLiveFoundServiceProtocol.h
  3 +// TestBH
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 XW. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +#import "BHServiceProtocol.h"
  11 +
  12 +@protocol CNLiveFoundServiceProtocol <NSObject, BHServiceProtocol>
  13 +//传值
  14 +@property (nonatomic, strong) NSString *itemId;
  15 +- (UIViewController *)getFoundViewController;
  16 +- (void)pushToFoundViewController;
  17 +
  18 +- (void)pushToFoundViewControllerByName:(NSString *)name url:(NSString *)url delegate:(id)delegate;
  19 +
  20 +@end
  21 +
  22 +
  23 +//回调传值
  24 +@protocol CNLiveFoundProtocol <NSObject>
  25 +//传值
  26 +- (void)backToFoundViewControllerByName:(NSString *)name;
  27 +
  28 +@end
... ...
CNLiveServices/Classes/Home/CNLiveHomeServiceProtocol.h 0 → 100644
  1 +//
  2 +// CNLiveHomeServiceProtocol.h
  3 +// TestBH
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 XW. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +#import "BHServiceProtocol.h"
  11 +
  12 +@protocol CNLiveHomeServiceProtocol <NSObject, BHServiceProtocol>
  13 +
  14 +//首页
  15 +- (UIViewController *)getHomeViewController;
  16 +- (void)pushToHomeViewController;
  17 +
  18 +
  19 +@end
... ...
CNLiveServices/Classes/Login/CNLiveLoginServiceProtocol.h 0 → 100644
  1 +//
  2 +// CNLiveLoginServiceProtocol.h
  3 +// TestBH
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 XW. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +#import "BHServiceProtocol.h"
  11 +
  12 +@protocol CNLiveLoginServiceProtocol <NSObject, BHServiceProtocol>
  13 +//登录
  14 +- (UIViewController *)getLoginViewController;
  15 +- (void)pushToLoginViewController;
  16 +
  17 +- (void)loginIfNeedWithCompleteBlock:(void (^)(BOOL))completeBlock;
  18 +
  19 +@end
  20 +
... ...
CNLiveServices/Classes/My/CNLiveMyServiceProtocol.h 0 → 100644
  1 +//
  2 +// CNLiveMyServiceProtocol.h
  3 +// TestBH
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 XW. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +#import "BHServiceProtocol.h"
  11 +
  12 +@protocol CNLiveMyServiceProtocol <NSObject, BHServiceProtocol>
  13 +//传值
  14 +@property (nonatomic, strong) NSString *itemId;
  15 +
  16 +
  17 +@end
... ...
CNLiveServices/Classes/UserAgreement/CNLiveUserAgreementServiceProtocol.h 0 → 100644
  1 +//
  2 +// CNLiveUserAgreementServiceProtocol.h
  3 +// TestBH
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 XW. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +#import "BHServiceProtocol.h"
  11 +typedef void(^SuccessBlock)(NSString *h5,NSString *title);
  12 +typedef void(^FailureBlock)(NSError *error);
  13 +typedef enum {
  14 + CNAgreementUser = 1001,//用户协议
  15 + CNAgreementPrivacy = 1002,//隐私政策
  16 + CNAgreementHelp = 1003,//帮助与反馈
  17 + CNAgreementUnderstand = 1004,//使用手册
  18 + CNAgreementIntroduction = 1005,//应用简介
  19 + CNAgreementCopyright = 1006,//版权信息
  20 + CNAgreementPermission = 1007,//软件许可及服务协议
  21 + CNAgreementIntegralRules = 1008,//积分规则
  22 + CNAgreementSigninRules = 1009,//签到奖励规则
  23 + CNAgreementReviewApply = 1010,//复核申请
  24 + CNAgreementCancellation = 1011,//注销协议
  25 + CNAgreementEmojiService = 1012,//表情包服务说明
  26 + CNAgreementEmojiComplaints = 1013,//表情包投诉说明
  27 + CNAgreementEnterpriseQualification = 1014,//企业资质
  28 +
  29 +} CNGetAgreementH5Type;
  30 +
  31 +@protocol CNLiveUserAgreementServiceProtocol <NSObject, BHServiceProtocol>
  32 +
  33 +- (void)getAgreementH5WithType:(CNGetAgreementH5Type)type success:(SuccessBlock)success failure:(FailureBlock)failure;
  34 +
  35 ++ (void)getAgreementH5WithType:(CNGetAgreementH5Type)type success:(SuccessBlock)success failure:(FailureBlock)failure;
  36 +
  37 +@end
... ...
Example/CNLiveServices.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 + 08303C8422E8093300510DE9 /* CNUserAgreementManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 08303C8322E8093300510DE9 /* CNUserAgreementManager.m */; };
  11 + 0833CE9A22EFE03200AA3B2C /* CNUserAgreementWebController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0833CE9922EFE03200AA3B2C /* CNUserAgreementWebController.m */; };
  12 + 084124BC22E70027006699C6 /* CNLiveDetailsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 084124BB22E70027006699C6 /* CNLiveDetailsViewController.m */; };
  13 + 084124C022E7023A006699C6 /* CNLiveFoundService.m in Sources */ = {isa = PBXBuildFile; fileRef = 084124BF22E7023A006699C6 /* CNLiveFoundService.m */; };
  14 + 084124C322E702B4006699C6 /* CNLiveFoundModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 084124C222E702B4006699C6 /* CNLiveFoundModule.m */; };
  15 + 084124C622E702C6006699C6 /* CNLiveFoundViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 084124C522E702C6006699C6 /* CNLiveFoundViewController.m */; };
  16 + 0882D6A422E5AE1B000859E7 /* CNLiveLoginService.m in Sources */ = {isa = PBXBuildFile; fileRef = 0882D6A322E5AE1B000859E7 /* CNLiveLoginService.m */; };
  17 + 0882D6A722E5AEB2000859E7 /* CNLoginViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0882D6A622E5AEB2000859E7 /* CNLoginViewController.m */; };
  18 + 0882D6AA22E5AEDB000859E7 /* CNLiveLoginModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 0882D6A922E5AEDB000859E7 /* CNLiveLoginModule.m */; };
  19 + 0882D6B222E5B3B3000859E7 /* CNLiveHomeService.m in Sources */ = {isa = PBXBuildFile; fileRef = 0882D6B122E5B3B3000859E7 /* CNLiveHomeService.m */; };
  20 + 0882D6B522E5B3C1000859E7 /* CNLiveHomeModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 0882D6B422E5B3C1000859E7 /* CNLiveHomeModule.m */; };
  21 + 0882D6B822E5B3D1000859E7 /* CNLiveHomeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0882D6B722E5B3D1000859E7 /* CNLiveHomeViewController.m */; };
  22 + 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
  23 + 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; };
  24 + 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
  25 + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; };
  26 + 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; };
  27 + 6003F59E195388D20070C39A /* CNLiveAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* CNLiveAppDelegate.m */; };
  28 + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; };
  29 + 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; };
  30 + 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
  31 + 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
  32 + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; };
  33 + 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; };
  34 + 66B16E2D68785A998C10AF6E /* Pods_CNLiveServices_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D11D397DF843C4F78D90B21B /* Pods_CNLiveServices_Tests.framework */; };
  35 + 6B1A1090A224C3414BF8A14B /* Pods_CNLiveServices_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8C05764C00E0BCF9BC866B19 /* Pods_CNLiveServices_Example.framework */; };
  36 + 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; };
  37 + 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; };
  38 +/* End PBXBuildFile section */
  39 +
  40 +/* Begin PBXContainerItemProxy section */
  41 + 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = {
  42 + isa = PBXContainerItemProxy;
  43 + containerPortal = 6003F582195388D10070C39A /* Project object */;
  44 + proxyType = 1;
  45 + remoteGlobalIDString = 6003F589195388D20070C39A;
  46 + remoteInfo = CNLiveServices;
  47 + };
  48 +/* End PBXContainerItemProxy section */
  49 +
  50 +/* Begin PBXFileReference section */
  51 + 08303C8222E8093300510DE9 /* CNUserAgreementManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CNUserAgreementManager.h; sourceTree = "<group>"; };
  52 + 08303C8322E8093300510DE9 /* CNUserAgreementManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CNUserAgreementManager.m; sourceTree = "<group>"; };
  53 + 0833CE9822EFE03200AA3B2C /* CNUserAgreementWebController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNUserAgreementWebController.h; sourceTree = "<group>"; };
  54 + 0833CE9922EFE03200AA3B2C /* CNUserAgreementWebController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNUserAgreementWebController.m; sourceTree = "<group>"; };
  55 + 084124BA22E70027006699C6 /* CNLiveDetailsViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLiveDetailsViewController.h; sourceTree = "<group>"; };
  56 + 084124BB22E70027006699C6 /* CNLiveDetailsViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLiveDetailsViewController.m; sourceTree = "<group>"; };
  57 + 084124BE22E7023A006699C6 /* CNLiveFoundService.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLiveFoundService.h; sourceTree = "<group>"; };
  58 + 084124BF22E7023A006699C6 /* CNLiveFoundService.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLiveFoundService.m; sourceTree = "<group>"; };
  59 + 084124C122E702B4006699C6 /* CNLiveFoundModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLiveFoundModule.h; sourceTree = "<group>"; };
  60 + 084124C222E702B4006699C6 /* CNLiveFoundModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLiveFoundModule.m; sourceTree = "<group>"; };
  61 + 084124C422E702C6006699C6 /* CNLiveFoundViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLiveFoundViewController.h; sourceTree = "<group>"; };
  62 + 084124C522E702C6006699C6 /* CNLiveFoundViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLiveFoundViewController.m; sourceTree = "<group>"; };
  63 + 0882D6A222E5AE1B000859E7 /* CNLiveLoginService.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLiveLoginService.h; sourceTree = "<group>"; };
  64 + 0882D6A322E5AE1B000859E7 /* CNLiveLoginService.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLiveLoginService.m; sourceTree = "<group>"; };
  65 + 0882D6A522E5AEB2000859E7 /* CNLoginViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLoginViewController.h; sourceTree = "<group>"; };
  66 + 0882D6A622E5AEB2000859E7 /* CNLoginViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLoginViewController.m; sourceTree = "<group>"; };
  67 + 0882D6A822E5AEDB000859E7 /* CNLiveLoginModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLiveLoginModule.h; sourceTree = "<group>"; };
  68 + 0882D6A922E5AEDB000859E7 /* CNLiveLoginModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLiveLoginModule.m; sourceTree = "<group>"; };
  69 + 0882D6B022E5B3B3000859E7 /* CNLiveHomeService.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLiveHomeService.h; sourceTree = "<group>"; };
  70 + 0882D6B122E5B3B3000859E7 /* CNLiveHomeService.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLiveHomeService.m; sourceTree = "<group>"; };
  71 + 0882D6B322E5B3C1000859E7 /* CNLiveHomeModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLiveHomeModule.h; sourceTree = "<group>"; };
  72 + 0882D6B422E5B3C1000859E7 /* CNLiveHomeModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLiveHomeModule.m; sourceTree = "<group>"; };
  73 + 0882D6B622E5B3D1000859E7 /* CNLiveHomeViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLiveHomeViewController.h; sourceTree = "<group>"; };
  74 + 0882D6B722E5B3D1000859E7 /* CNLiveHomeViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLiveHomeViewController.m; sourceTree = "<group>"; };
  75 + 10E6387D4BC65CC1B77AD149 /* Pods-CNLiveServices_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveServices_Tests.debug.xcconfig"; path = "Target Support Files/Pods-CNLiveServices_Tests/Pods-CNLiveServices_Tests.debug.xcconfig"; sourceTree = "<group>"; };
  76 + 1503DA066C26D47C2404BE70 /* Pods-CNLiveServices_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveServices_Example.release.xcconfig"; path = "Target Support Files/Pods-CNLiveServices_Example/Pods-CNLiveServices_Example.release.xcconfig"; sourceTree = "<group>"; };
  77 + 34A5EA5BE443520ED4522B2F /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
  78 + 56865B2BAA8D998E4995F494 /* Pods-CNLiveServices_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveServices_Tests.release.xcconfig"; path = "Target Support Files/Pods-CNLiveServices_Tests/Pods-CNLiveServices_Tests.release.xcconfig"; sourceTree = "<group>"; };
  79 + 6003F58A195388D20070C39A /* CNLiveServices_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CNLiveServices_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
  80 + 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
  81 + 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
  82 + 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
  83 + 6003F595195388D20070C39A /* CNLiveServices-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CNLiveServices-Info.plist"; sourceTree = "<group>"; };
  84 + 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
  85 + 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
  86 + 6003F59B195388D20070C39A /* CNLiveServices-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CNLiveServices-Prefix.pch"; sourceTree = "<group>"; };
  87 + 6003F59C195388D20070C39A /* CNLiveAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLiveAppDelegate.h; sourceTree = "<group>"; };
  88 + 6003F59D195388D20070C39A /* CNLiveAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLiveAppDelegate.m; sourceTree = "<group>"; };
  89 + 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
  90 + 6003F5AE195388D20070C39A /* CNLiveServices_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CNLiveServices_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
  91 + 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
  92 + 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = "<group>"; };
  93 + 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
  94 + 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = "<group>"; };
  95 + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = "<group>"; };
  96 + 71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
  97 + 86F114D1959CAE685A84AFD6 /* Pods-CNLiveServices_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveServices_Example.debug.xcconfig"; path = "Target Support Files/Pods-CNLiveServices_Example/Pods-CNLiveServices_Example.debug.xcconfig"; sourceTree = "<group>"; };
  98 + 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
  99 + 8C05764C00E0BCF9BC866B19 /* Pods_CNLiveServices_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNLiveServices_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
  100 + D11D397DF843C4F78D90B21B /* Pods_CNLiveServices_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNLiveServices_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
  101 + E4A307E2B6F79B33286F2F70 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
  102 + FBBB52A9C21C6819C69AC2EF /* CNLiveServices.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = CNLiveServices.podspec; path = ../CNLiveServices.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
  103 +/* End PBXFileReference section */
  104 +
  105 +/* Begin PBXFrameworksBuildPhase section */
  106 + 6003F587195388D20070C39A /* Frameworks */ = {
  107 + isa = PBXFrameworksBuildPhase;
  108 + buildActionMask = 2147483647;
  109 + files = (
  110 + 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */,
  111 + 6003F592195388D20070C39A /* UIKit.framework in Frameworks */,
  112 + 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */,
  113 + 6B1A1090A224C3414BF8A14B /* Pods_CNLiveServices_Example.framework in Frameworks */,
  114 + );
  115 + runOnlyForDeploymentPostprocessing = 0;
  116 + };
  117 + 6003F5AB195388D20070C39A /* Frameworks */ = {
  118 + isa = PBXFrameworksBuildPhase;
  119 + buildActionMask = 2147483647;
  120 + files = (
  121 + 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */,
  122 + 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */,
  123 + 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */,
  124 + 66B16E2D68785A998C10AF6E /* Pods_CNLiveServices_Tests.framework in Frameworks */,
  125 + );
  126 + runOnlyForDeploymentPostprocessing = 0;
  127 + };
  128 +/* End PBXFrameworksBuildPhase section */
  129 +
  130 +/* Begin PBXGroup section */
  131 + 08303C6322E7E23800510DE9 /* Module */ = {
  132 + isa = PBXGroup;
  133 + children = (
  134 + 0882D6A222E5AE1B000859E7 /* CNLiveLoginService.h */,
  135 + 0882D6A322E5AE1B000859E7 /* CNLiveLoginService.m */,
  136 + 0882D6A822E5AEDB000859E7 /* CNLiveLoginModule.h */,
  137 + 0882D6A922E5AEDB000859E7 /* CNLiveLoginModule.m */,
  138 + );
  139 + path = Module;
  140 + sourceTree = "<group>";
  141 + };
  142 + 08303C8A22E8427500510DE9 /* UserAgreement */ = {
  143 + isa = PBXGroup;
  144 + children = (
  145 + 08303C8222E8093300510DE9 /* CNUserAgreementManager.h */,
  146 + 08303C8322E8093300510DE9 /* CNUserAgreementManager.m */,
  147 + 0833CE9822EFE03200AA3B2C /* CNUserAgreementWebController.h */,
  148 + 0833CE9922EFE03200AA3B2C /* CNUserAgreementWebController.m */,
  149 + );
  150 + path = UserAgreement;
  151 + sourceTree = "<group>";
  152 + };
  153 + 084124BD22E701AE006699C6 /* Found */ = {
  154 + isa = PBXGroup;
  155 + children = (
  156 + 084124BE22E7023A006699C6 /* CNLiveFoundService.h */,
  157 + 084124BF22E7023A006699C6 /* CNLiveFoundService.m */,
  158 + 084124C122E702B4006699C6 /* CNLiveFoundModule.h */,
  159 + 084124C222E702B4006699C6 /* CNLiveFoundModule.m */,
  160 + 084124C422E702C6006699C6 /* CNLiveFoundViewController.h */,
  161 + 084124C522E702C6006699C6 /* CNLiveFoundViewController.m */,
  162 + );
  163 + path = Found;
  164 + sourceTree = "<group>";
  165 + };
  166 + 084124C722E72DDB006699C6 /* View */ = {
  167 + isa = PBXGroup;
  168 + children = (
  169 + );
  170 + path = View;
  171 + sourceTree = "<group>";
  172 + };
  173 + 084124C822E72DE4006699C6 /* Model */ = {
  174 + isa = PBXGroup;
  175 + children = (
  176 + );
  177 + path = Model;
  178 + sourceTree = "<group>";
  179 + };
  180 + 084124C922E72DF2006699C6 /* Controller */ = {
  181 + isa = PBXGroup;
  182 + children = (
  183 + 0882D6A522E5AEB2000859E7 /* CNLoginViewController.h */,
  184 + 0882D6A622E5AEB2000859E7 /* CNLoginViewController.m */,
  185 + );
  186 + path = Controller;
  187 + sourceTree = "<group>";
  188 + };
  189 + 0882D6A122E5ADEA000859E7 /* Login */ = {
  190 + isa = PBXGroup;
  191 + children = (
  192 + 08303C6322E7E23800510DE9 /* Module */,
  193 + 084124C922E72DF2006699C6 /* Controller */,
  194 + 084124C822E72DE4006699C6 /* Model */,
  195 + 084124C722E72DDB006699C6 /* View */,
  196 + );
  197 + path = Login;
  198 + sourceTree = "<group>";
  199 + };
  200 + 0882D6AF22E5B393000859E7 /* Home */ = {
  201 + isa = PBXGroup;
  202 + children = (
  203 + 0882D6B022E5B3B3000859E7 /* CNLiveHomeService.h */,
  204 + 0882D6B122E5B3B3000859E7 /* CNLiveHomeService.m */,
  205 + 0882D6B322E5B3C1000859E7 /* CNLiveHomeModule.h */,
  206 + 0882D6B422E5B3C1000859E7 /* CNLiveHomeModule.m */,
  207 + 0882D6B622E5B3D1000859E7 /* CNLiveHomeViewController.h */,
  208 + 0882D6B722E5B3D1000859E7 /* CNLiveHomeViewController.m */,
  209 + 084124BA22E70027006699C6 /* CNLiveDetailsViewController.h */,
  210 + 084124BB22E70027006699C6 /* CNLiveDetailsViewController.m */,
  211 + );
  212 + path = Home;
  213 + sourceTree = "<group>";
  214 + };
  215 + 6003F581195388D10070C39A = {
  216 + isa = PBXGroup;
  217 + children = (
  218 + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */,
  219 + 6003F593195388D20070C39A /* Example for CNLiveServices */,
  220 + 6003F5B5195388D20070C39A /* Tests */,
  221 + 6003F58C195388D20070C39A /* Frameworks */,
  222 + 6003F58B195388D20070C39A /* Products */,
  223 + B57FC4C9840376DE8CFEFA7A /* Pods */,
  224 + );
  225 + sourceTree = "<group>";
  226 + };
  227 + 6003F58B195388D20070C39A /* Products */ = {
  228 + isa = PBXGroup;
  229 + children = (
  230 + 6003F58A195388D20070C39A /* CNLiveServices_Example.app */,
  231 + 6003F5AE195388D20070C39A /* CNLiveServices_Tests.xctest */,
  232 + );
  233 + name = Products;
  234 + sourceTree = "<group>";
  235 + };
  236 + 6003F58C195388D20070C39A /* Frameworks */ = {
  237 + isa = PBXGroup;
  238 + children = (
  239 + 6003F58D195388D20070C39A /* Foundation.framework */,
  240 + 6003F58F195388D20070C39A /* CoreGraphics.framework */,
  241 + 6003F591195388D20070C39A /* UIKit.framework */,
  242 + 6003F5AF195388D20070C39A /* XCTest.framework */,
  243 + 8C05764C00E0BCF9BC866B19 /* Pods_CNLiveServices_Example.framework */,
  244 + D11D397DF843C4F78D90B21B /* Pods_CNLiveServices_Tests.framework */,
  245 + );
  246 + name = Frameworks;
  247 + sourceTree = "<group>";
  248 + };
  249 + 6003F593195388D20070C39A /* Example for CNLiveServices */ = {
  250 + isa = PBXGroup;
  251 + children = (
  252 + 08303C8A22E8427500510DE9 /* UserAgreement */,
  253 + 084124BD22E701AE006699C6 /* Found */,
  254 + 0882D6AF22E5B393000859E7 /* Home */,
  255 + 0882D6A122E5ADEA000859E7 /* Login */,
  256 + 6003F59C195388D20070C39A /* CNLiveAppDelegate.h */,
  257 + 6003F59D195388D20070C39A /* CNLiveAppDelegate.m */,
  258 + 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */,
  259 + 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */,
  260 + 6003F5A8195388D20070C39A /* Images.xcassets */,
  261 + 6003F594195388D20070C39A /* Supporting Files */,
  262 + );
  263 + name = "Example for CNLiveServices";
  264 + path = CNLiveServices;
  265 + sourceTree = "<group>";
  266 + };
  267 + 6003F594195388D20070C39A /* Supporting Files */ = {
  268 + isa = PBXGroup;
  269 + children = (
  270 + 6003F595195388D20070C39A /* CNLiveServices-Info.plist */,
  271 + 6003F596195388D20070C39A /* InfoPlist.strings */,
  272 + 6003F599195388D20070C39A /* main.m */,
  273 + 6003F59B195388D20070C39A /* CNLiveServices-Prefix.pch */,
  274 + );
  275 + name = "Supporting Files";
  276 + sourceTree = "<group>";
  277 + };
  278 + 6003F5B5195388D20070C39A /* Tests */ = {
  279 + isa = PBXGroup;
  280 + children = (
  281 + 6003F5BB195388D20070C39A /* Tests.m */,
  282 + 6003F5B6195388D20070C39A /* Supporting Files */,
  283 + );
  284 + path = Tests;
  285 + sourceTree = "<group>";
  286 + };
  287 + 6003F5B6195388D20070C39A /* Supporting Files */ = {
  288 + isa = PBXGroup;
  289 + children = (
  290 + 6003F5B7195388D20070C39A /* Tests-Info.plist */,
  291 + 6003F5B8195388D20070C39A /* InfoPlist.strings */,
  292 + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */,
  293 + );
  294 + name = "Supporting Files";
  295 + sourceTree = "<group>";
  296 + };
  297 + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = {
  298 + isa = PBXGroup;
  299 + children = (
  300 + FBBB52A9C21C6819C69AC2EF /* CNLiveServices.podspec */,
  301 + 34A5EA5BE443520ED4522B2F /* README.md */,
  302 + E4A307E2B6F79B33286F2F70 /* LICENSE */,
  303 + );
  304 + name = "Podspec Metadata";
  305 + sourceTree = "<group>";
  306 + };
  307 + B57FC4C9840376DE8CFEFA7A /* Pods */ = {
  308 + isa = PBXGroup;
  309 + children = (
  310 + 86F114D1959CAE685A84AFD6 /* Pods-CNLiveServices_Example.debug.xcconfig */,
  311 + 1503DA066C26D47C2404BE70 /* Pods-CNLiveServices_Example.release.xcconfig */,
  312 + 10E6387D4BC65CC1B77AD149 /* Pods-CNLiveServices_Tests.debug.xcconfig */,
  313 + 56865B2BAA8D998E4995F494 /* Pods-CNLiveServices_Tests.release.xcconfig */,
  314 + );
  315 + path = Pods;
  316 + sourceTree = "<group>";
  317 + };
  318 +/* End PBXGroup section */
  319 +
  320 +/* Begin PBXNativeTarget section */
  321 + 6003F589195388D20070C39A /* CNLiveServices_Example */ = {
  322 + isa = PBXNativeTarget;
  323 + buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveServices_Example" */;
  324 + buildPhases = (
  325 + 5338E3241E4AACFA7CCED121 /* [CP] Check Pods Manifest.lock */,
  326 + 6003F586195388D20070C39A /* Sources */,
  327 + 6003F587195388D20070C39A /* Frameworks */,
  328 + 6003F588195388D20070C39A /* Resources */,
  329 + 5EBC7863C43B13AA003B5088 /* [CP] Embed Pods Frameworks */,
  330 + );
  331 + buildRules = (
  332 + );
  333 + dependencies = (
  334 + );
  335 + name = CNLiveServices_Example;
  336 + productName = CNLiveServices;
  337 + productReference = 6003F58A195388D20070C39A /* CNLiveServices_Example.app */;
  338 + productType = "com.apple.product-type.application";
  339 + };
  340 + 6003F5AD195388D20070C39A /* CNLiveServices_Tests */ = {
  341 + isa = PBXNativeTarget;
  342 + buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveServices_Tests" */;
  343 + buildPhases = (
  344 + 77749E6103D74A148B499433 /* [CP] Check Pods Manifest.lock */,
  345 + 6003F5AA195388D20070C39A /* Sources */,
  346 + 6003F5AB195388D20070C39A /* Frameworks */,
  347 + 6003F5AC195388D20070C39A /* Resources */,
  348 + );
  349 + buildRules = (
  350 + );
  351 + dependencies = (
  352 + 6003F5B4195388D20070C39A /* PBXTargetDependency */,
  353 + );
  354 + name = CNLiveServices_Tests;
  355 + productName = CNLiveServicesTests;
  356 + productReference = 6003F5AE195388D20070C39A /* CNLiveServices_Tests.xctest */;
  357 + productType = "com.apple.product-type.bundle.unit-test";
  358 + };
  359 +/* End PBXNativeTarget section */
  360 +
  361 +/* Begin PBXProject section */
  362 + 6003F582195388D10070C39A /* Project object */ = {
  363 + isa = PBXProject;
  364 + attributes = {
  365 + CLASSPREFIX = CNLive;
  366 + LastUpgradeCheck = 0720;
  367 + ORGANIZATIONNAME = "153993236@qq.com";
  368 + TargetAttributes = {
  369 + 6003F589195388D20070C39A = {
  370 + DevelopmentTeam = 94X49GG3ZW;
  371 + };
  372 + 6003F5AD195388D20070C39A = {
  373 + TestTargetID = 6003F589195388D20070C39A;
  374 + };
  375 + };
  376 + };
  377 + buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "CNLiveServices" */;
  378 + compatibilityVersion = "Xcode 3.2";
  379 + developmentRegion = English;
  380 + hasScannedForEncodings = 0;
  381 + knownRegions = (
  382 + en,
  383 + Base,
  384 + );
  385 + mainGroup = 6003F581195388D10070C39A;
  386 + productRefGroup = 6003F58B195388D20070C39A /* Products */;
  387 + projectDirPath = "";
  388 + projectRoot = "";
  389 + targets = (
  390 + 6003F589195388D20070C39A /* CNLiveServices_Example */,
  391 + 6003F5AD195388D20070C39A /* CNLiveServices_Tests */,
  392 + );
  393 + };
  394 +/* End PBXProject section */
  395 +
  396 +/* Begin PBXResourcesBuildPhase section */
  397 + 6003F588195388D20070C39A /* Resources */ = {
  398 + isa = PBXResourcesBuildPhase;
  399 + buildActionMask = 2147483647;
  400 + files = (
  401 + 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */,
  402 + 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */,
  403 + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */,
  404 + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */,
  405 + );
  406 + runOnlyForDeploymentPostprocessing = 0;
  407 + };
  408 + 6003F5AC195388D20070C39A /* Resources */ = {
  409 + isa = PBXResourcesBuildPhase;
  410 + buildActionMask = 2147483647;
  411 + files = (
  412 + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */,
  413 + );
  414 + runOnlyForDeploymentPostprocessing = 0;
  415 + };
  416 +/* End PBXResourcesBuildPhase section */
  417 +
  418 +/* Begin PBXShellScriptBuildPhase section */
  419 + 5338E3241E4AACFA7CCED121 /* [CP] Check Pods Manifest.lock */ = {
  420 + isa = PBXShellScriptBuildPhase;
  421 + buildActionMask = 2147483647;
  422 + files = (
  423 + );
  424 + inputFileListPaths = (
  425 + );
  426 + inputPaths = (
  427 + "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
  428 + "${PODS_ROOT}/Manifest.lock",
  429 + );
  430 + name = "[CP] Check Pods Manifest.lock";
  431 + outputFileListPaths = (
  432 + );
  433 + outputPaths = (
  434 + "$(DERIVED_FILE_DIR)/Pods-CNLiveServices_Example-checkManifestLockResult.txt",
  435 + );
  436 + runOnlyForDeploymentPostprocessing = 0;
  437 + shellPath = /bin/sh;
  438 + 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";
  439 + showEnvVarsInLog = 0;
  440 + };
  441 + 5EBC7863C43B13AA003B5088 /* [CP] Embed Pods Frameworks */ = {
  442 + isa = PBXShellScriptBuildPhase;
  443 + buildActionMask = 2147483647;
  444 + files = (
  445 + );
  446 + inputFileListPaths = (
  447 + );
  448 + inputPaths = (
  449 + "${PODS_ROOT}/Target Support Files/Pods-CNLiveServices_Example/Pods-CNLiveServices_Example-frameworks.sh",
  450 + "${BUILT_PRODUCTS_DIR}/BeeHive/BeeHive.framework",
  451 + "${BUILT_PRODUCTS_DIR}/MJExtension/MJExtension.framework",
  452 + "${BUILT_PRODUCTS_DIR}/MJRefresh/MJRefresh.framework",
  453 + "${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework",
  454 + "${BUILT_PRODUCTS_DIR}/QMUIKit/QMUIKit.framework",
  455 + "${BUILT_PRODUCTS_DIR}/YYKit/YYKit.framework",
  456 + );
  457 + name = "[CP] Embed Pods Frameworks";
  458 + outputFileListPaths = (
  459 + );
  460 + outputPaths = (
  461 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BeeHive.framework",
  462 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MJExtension.framework",
  463 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MJRefresh.framework",
  464 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Masonry.framework",
  465 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/QMUIKit.framework",
  466 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YYKit.framework",
  467 + );
  468 + runOnlyForDeploymentPostprocessing = 0;
  469 + shellPath = /bin/sh;
  470 + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CNLiveServices_Example/Pods-CNLiveServices_Example-frameworks.sh\"\n";
  471 + showEnvVarsInLog = 0;
  472 + };
  473 + 77749E6103D74A148B499433 /* [CP] Check Pods Manifest.lock */ = {
  474 + isa = PBXShellScriptBuildPhase;
  475 + buildActionMask = 2147483647;
  476 + files = (
  477 + );
  478 + inputFileListPaths = (
  479 + );
  480 + inputPaths = (
  481 + "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
  482 + "${PODS_ROOT}/Manifest.lock",
  483 + );
  484 + name = "[CP] Check Pods Manifest.lock";
  485 + outputFileListPaths = (
  486 + );
  487 + outputPaths = (
  488 + "$(DERIVED_FILE_DIR)/Pods-CNLiveServices_Tests-checkManifestLockResult.txt",
  489 + );
  490 + runOnlyForDeploymentPostprocessing = 0;
  491 + shellPath = /bin/sh;
  492 + 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";
  493 + showEnvVarsInLog = 0;
  494 + };
  495 +/* End PBXShellScriptBuildPhase section */
  496 +
  497 +/* Begin PBXSourcesBuildPhase section */
  498 + 6003F586195388D20070C39A /* Sources */ = {
  499 + isa = PBXSourcesBuildPhase;
  500 + buildActionMask = 2147483647;
  501 + files = (
  502 + 08303C8422E8093300510DE9 /* CNUserAgreementManager.m in Sources */,
  503 + 0882D6B522E5B3C1000859E7 /* CNLiveHomeModule.m in Sources */,
  504 + 084124BC22E70027006699C6 /* CNLiveDetailsViewController.m in Sources */,
  505 + 0882D6AA22E5AEDB000859E7 /* CNLiveLoginModule.m in Sources */,
  506 + 0882D6B222E5B3B3000859E7 /* CNLiveHomeService.m in Sources */,
  507 + 6003F59E195388D20070C39A /* CNLiveAppDelegate.m in Sources */,
  508 + 0882D6A722E5AEB2000859E7 /* CNLoginViewController.m in Sources */,
  509 + 084124C322E702B4006699C6 /* CNLiveFoundModule.m in Sources */,
  510 + 0833CE9A22EFE03200AA3B2C /* CNUserAgreementWebController.m in Sources */,
  511 + 0882D6A422E5AE1B000859E7 /* CNLiveLoginService.m in Sources */,
  512 + 084124C022E7023A006699C6 /* CNLiveFoundService.m in Sources */,
  513 + 0882D6B822E5B3D1000859E7 /* CNLiveHomeViewController.m in Sources */,
  514 + 084124C622E702C6006699C6 /* CNLiveFoundViewController.m in Sources */,
  515 + 6003F59A195388D20070C39A /* main.m in Sources */,
  516 + );
  517 + runOnlyForDeploymentPostprocessing = 0;
  518 + };
  519 + 6003F5AA195388D20070C39A /* Sources */ = {
  520 + isa = PBXSourcesBuildPhase;
  521 + buildActionMask = 2147483647;
  522 + files = (
  523 + 6003F5BC195388D20070C39A /* Tests.m in Sources */,
  524 + );
  525 + runOnlyForDeploymentPostprocessing = 0;
  526 + };
  527 +/* End PBXSourcesBuildPhase section */
  528 +
  529 +/* Begin PBXTargetDependency section */
  530 + 6003F5B4195388D20070C39A /* PBXTargetDependency */ = {
  531 + isa = PBXTargetDependency;
  532 + target = 6003F589195388D20070C39A /* CNLiveServices_Example */;
  533 + targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */;
  534 + };
  535 +/* End PBXTargetDependency section */
  536 +
  537 +/* Begin PBXVariantGroup section */
  538 + 6003F596195388D20070C39A /* InfoPlist.strings */ = {
  539 + isa = PBXVariantGroup;
  540 + children = (
  541 + 6003F597195388D20070C39A /* en */,
  542 + );
  543 + name = InfoPlist.strings;
  544 + sourceTree = "<group>";
  545 + };
  546 + 6003F5B8195388D20070C39A /* InfoPlist.strings */ = {
  547 + isa = PBXVariantGroup;
  548 + children = (
  549 + 6003F5B9195388D20070C39A /* en */,
  550 + );
  551 + name = InfoPlist.strings;
  552 + sourceTree = "<group>";
  553 + };
  554 + 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */ = {
  555 + isa = PBXVariantGroup;
  556 + children = (
  557 + 71719F9E1E33DC2100824A3D /* Base */,
  558 + );
  559 + name = LaunchScreen.storyboard;
  560 + sourceTree = "<group>";
  561 + };
  562 +/* End PBXVariantGroup section */
  563 +
  564 +/* Begin XCBuildConfiguration section */
  565 + 6003F5BD195388D20070C39A /* Debug */ = {
  566 + isa = XCBuildConfiguration;
  567 + buildSettings = {
  568 + ALWAYS_SEARCH_USER_PATHS = NO;
  569 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  570 + CLANG_CXX_LIBRARY = "libc++";
  571 + CLANG_ENABLE_MODULES = YES;
  572 + CLANG_ENABLE_OBJC_ARC = YES;
  573 + CLANG_WARN_BOOL_CONVERSION = YES;
  574 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  575 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  576 + CLANG_WARN_EMPTY_BODY = YES;
  577 + CLANG_WARN_ENUM_CONVERSION = YES;
  578 + CLANG_WARN_INT_CONVERSION = YES;
  579 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  580 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  581 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  582 + COPY_PHASE_STRIP = NO;
  583 + ENABLE_TESTABILITY = YES;
  584 + GCC_C_LANGUAGE_STANDARD = gnu99;
  585 + GCC_DYNAMIC_NO_PIC = NO;
  586 + GCC_OPTIMIZATION_LEVEL = 0;
  587 + GCC_PREPROCESSOR_DEFINITIONS = (
  588 + "DEBUG=1",
  589 + "$(inherited)",
  590 + );
  591 + GCC_SYMBOLS_PRIVATE_EXTERN = NO;
  592 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  593 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  594 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  595 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  596 + GCC_WARN_UNUSED_FUNCTION = YES;
  597 + GCC_WARN_UNUSED_VARIABLE = YES;
  598 + IPHONEOS_DEPLOYMENT_TARGET = 9.3;
  599 + ONLY_ACTIVE_ARCH = YES;
  600 + SDKROOT = iphoneos;
  601 + TARGETED_DEVICE_FAMILY = "1,2";
  602 + };
  603 + name = Debug;
  604 + };
  605 + 6003F5BE195388D20070C39A /* Release */ = {
  606 + isa = XCBuildConfiguration;
  607 + buildSettings = {
  608 + ALWAYS_SEARCH_USER_PATHS = NO;
  609 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  610 + CLANG_CXX_LIBRARY = "libc++";
  611 + CLANG_ENABLE_MODULES = YES;
  612 + CLANG_ENABLE_OBJC_ARC = YES;
  613 + CLANG_WARN_BOOL_CONVERSION = YES;
  614 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  615 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  616 + CLANG_WARN_EMPTY_BODY = YES;
  617 + CLANG_WARN_ENUM_CONVERSION = YES;
  618 + CLANG_WARN_INT_CONVERSION = YES;
  619 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  620 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  621 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  622 + COPY_PHASE_STRIP = YES;
  623 + ENABLE_NS_ASSERTIONS = NO;
  624 + GCC_C_LANGUAGE_STANDARD = gnu99;
  625 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  626 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  627 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  628 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  629 + GCC_WARN_UNUSED_FUNCTION = YES;
  630 + GCC_WARN_UNUSED_VARIABLE = YES;
  631 + IPHONEOS_DEPLOYMENT_TARGET = 9.3;
  632 + SDKROOT = iphoneos;
  633 + TARGETED_DEVICE_FAMILY = "1,2";
  634 + VALIDATE_PRODUCT = YES;
  635 + };
  636 + name = Release;
  637 + };
  638 + 6003F5C0195388D20070C39A /* Debug */ = {
  639 + isa = XCBuildConfiguration;
  640 + baseConfigurationReference = 86F114D1959CAE685A84AFD6 /* Pods-CNLiveServices_Example.debug.xcconfig */;
  641 + buildSettings = {
  642 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  643 + DEVELOPMENT_TEAM = 94X49GG3ZW;
  644 + FRAMEWORK_SEARCH_PATHS = (
  645 + "$(inherited)",
  646 + "$(PROJECT_DIR)/CNLiveServices/Login",
  647 + );
  648 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  649 + GCC_PREFIX_HEADER = "CNLiveServices/CNLiveServices-Prefix.pch";
  650 + INFOPLIST_FILE = "CNLiveServices/CNLiveServices-Info.plist";
  651 + MODULE_NAME = ExampleApp;
  652 + PRODUCT_BUNDLE_IDENTIFIER = com.cnlive.CNLiveNetAdd.debug;
  653 + PRODUCT_NAME = "$(TARGET_NAME)";
  654 + SWIFT_VERSION = 4.0;
  655 + WRAPPER_EXTENSION = app;
  656 + };
  657 + name = Debug;
  658 + };
  659 + 6003F5C1195388D20070C39A /* Release */ = {
  660 + isa = XCBuildConfiguration;
  661 + baseConfigurationReference = 1503DA066C26D47C2404BE70 /* Pods-CNLiveServices_Example.release.xcconfig */;
  662 + buildSettings = {
  663 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  664 + DEVELOPMENT_TEAM = 94X49GG3ZW;
  665 + FRAMEWORK_SEARCH_PATHS = (
  666 + "$(inherited)",
  667 + "$(PROJECT_DIR)/CNLiveServices/Login",
  668 + );
  669 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  670 + GCC_PREFIX_HEADER = "CNLiveServices/CNLiveServices-Prefix.pch";
  671 + INFOPLIST_FILE = "CNLiveServices/CNLiveServices-Info.plist";
  672 + MODULE_NAME = ExampleApp;
  673 + PRODUCT_BUNDLE_IDENTIFIER = com.cnlive.CNLiveNetAdd.debug;
  674 + PRODUCT_NAME = "$(TARGET_NAME)";
  675 + SWIFT_VERSION = 4.0;
  676 + WRAPPER_EXTENSION = app;
  677 + };
  678 + name = Release;
  679 + };
  680 + 6003F5C3195388D20070C39A /* Debug */ = {
  681 + isa = XCBuildConfiguration;
  682 + baseConfigurationReference = 10E6387D4BC65CC1B77AD149 /* Pods-CNLiveServices_Tests.debug.xcconfig */;
  683 + buildSettings = {
  684 + BUNDLE_LOADER = "$(TEST_HOST)";
  685 + FRAMEWORK_SEARCH_PATHS = (
  686 + "$(PLATFORM_DIR)/Developer/Library/Frameworks",
  687 + "$(inherited)",
  688 + "$(DEVELOPER_FRAMEWORKS_DIR)",
  689 + );
  690 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  691 + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch";
  692 + GCC_PREPROCESSOR_DEFINITIONS = (
  693 + "DEBUG=1",
  694 + "$(inherited)",
  695 + );
  696 + INFOPLIST_FILE = "Tests/Tests-Info.plist";
  697 + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
  698 + PRODUCT_NAME = "$(TARGET_NAME)";
  699 + SWIFT_VERSION = 4.0;
  700 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CNLiveServices_Example.app/CNLiveServices_Example";
  701 + WRAPPER_EXTENSION = xctest;
  702 + };
  703 + name = Debug;
  704 + };
  705 + 6003F5C4195388D20070C39A /* Release */ = {
  706 + isa = XCBuildConfiguration;
  707 + baseConfigurationReference = 56865B2BAA8D998E4995F494 /* Pods-CNLiveServices_Tests.release.xcconfig */;
  708 + buildSettings = {
  709 + BUNDLE_LOADER = "$(TEST_HOST)";
  710 + FRAMEWORK_SEARCH_PATHS = (
  711 + "$(PLATFORM_DIR)/Developer/Library/Frameworks",
  712 + "$(inherited)",
  713 + "$(DEVELOPER_FRAMEWORKS_DIR)",
  714 + );
  715 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  716 + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch";
  717 + INFOPLIST_FILE = "Tests/Tests-Info.plist";
  718 + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
  719 + PRODUCT_NAME = "$(TARGET_NAME)";
  720 + SWIFT_VERSION = 4.0;
  721 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CNLiveServices_Example.app/CNLiveServices_Example";
  722 + WRAPPER_EXTENSION = xctest;
  723 + };
  724 + name = Release;
  725 + };
  726 +/* End XCBuildConfiguration section */
  727 +
  728 +/* Begin XCConfigurationList section */
  729 + 6003F585195388D10070C39A /* Build configuration list for PBXProject "CNLiveServices" */ = {
  730 + isa = XCConfigurationList;
  731 + buildConfigurations = (
  732 + 6003F5BD195388D20070C39A /* Debug */,
  733 + 6003F5BE195388D20070C39A /* Release */,
  734 + );
  735 + defaultConfigurationIsVisible = 0;
  736 + defaultConfigurationName = Release;
  737 + };
  738 + 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveServices_Example" */ = {
  739 + isa = XCConfigurationList;
  740 + buildConfigurations = (
  741 + 6003F5C0195388D20070C39A /* Debug */,
  742 + 6003F5C1195388D20070C39A /* Release */,
  743 + );
  744 + defaultConfigurationIsVisible = 0;
  745 + defaultConfigurationName = Release;
  746 + };
  747 + 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveServices_Tests" */ = {
  748 + isa = XCConfigurationList;
  749 + buildConfigurations = (
  750 + 6003F5C3195388D20070C39A /* Debug */,
  751 + 6003F5C4195388D20070C39A /* Release */,
  752 + );
  753 + defaultConfigurationIsVisible = 0;
  754 + defaultConfigurationName = Release;
  755 + };
  756 +/* End XCConfigurationList section */
  757 + };
  758 + rootObject = 6003F582195388D10070C39A /* Project object */;
  759 +}
... ...
Example/CNLiveServices.xcodeproj/xcshareddata/xcschemes/CNLiveServices-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 = "CNLiveServices_Example.app"
  19 + BlueprintName = "CNLiveServices_Example"
  20 + ReferencedContainer = "container:CNLiveServices.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 = "CNLiveServices_Tests.xctest"
  37 + BlueprintName = "CNLiveServices_Tests"
  38 + ReferencedContainer = "container:CNLiveServices.xcodeproj">
  39 + </BuildableReference>
  40 + </TestableReference>
  41 + </Testables>
  42 + <MacroExpansion>
  43 + <BuildableReference
  44 + BuildableIdentifier = "primary"
  45 + BlueprintIdentifier = "6003F589195388D20070C39A"
  46 + BuildableName = "CNLiveServices_Example.app"
  47 + BlueprintName = "CNLiveServices_Example"
  48 + ReferencedContainer = "container:CNLiveServices.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 = "CNLiveServices_Example.app"
  70 + BlueprintName = "CNLiveServices_Example"
  71 + ReferencedContainer = "container:CNLiveServices.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 = "CNLiveServices_Example.app"
  89 + BlueprintName = "CNLiveServices_Example"
  90 + ReferencedContainer = "container:CNLiveServices.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/CNLiveServices/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/CNLiveServices/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/CNLiveServices/CNLiveAppDelegate.h 0 → 100644
  1 +//
  2 +// CNLiveAppDelegate.h
  3 +// CNLiveServices
  4 +//
  5 +// Created by 153993236@qq.com on 07/22/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +@import UIKit;
  10 +#import "BeeHive.h"
  11 +
  12 +@interface CNLiveAppDelegate : BHAppDelegate <UIApplicationDelegate>
  13 +
  14 +
  15 +@end
... ...
Example/CNLiveServices/CNLiveAppDelegate.m 0 → 100644
  1 +//
  2 +// CNLiveAppDelegate.m
  3 +// CNLiveServices
  4 +//
  5 +// Created by 153993236@qq.com on 07/22/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveAppDelegate.h"
  10 +#import "CNLiveServices.h"
  11 +#import "BHTimeProfiler.h"
  12 +#import <mach-o/dyld.h>
  13 +#import "BHModuleManager.h"
  14 +#import "BHServiceManager.h"
  15 +
  16 +@implementation CNLiveAppDelegate
  17 +
  18 +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  19 +{
  20 + // Override point for customization after application launch.
  21 + [BHContext shareInstance].application = application;
  22 + [BHContext shareInstance].launchOptions = launchOptions;
  23 + // [BHContext shareInstance].moduleConfigName = @"BeeHive.bundle/BeeHive";//可选,默认为BeeHive.bundle/BeeHive.plist
  24 + // [BHContext shareInstance].serviceConfigName = @"BeeHive.bundle/BHService";
  25 + [BeeHive shareInstance].enableException = YES;
  26 + [[BeeHive shareInstance] setContext:[BHContext shareInstance]];
  27 + [[BHTimeProfiler sharedTimeProfiler] recordEventTime:@"BeeHive::super start launch"];
  28 +
  29 + [super application:application didFinishLaunchingWithOptions:launchOptions];
  30 +
  31 + id<CNLiveLoginServiceProtocol> login = [[BeeHive shareInstance] createService:@protocol(CNLiveLoginServiceProtocol)];
  32 + UINavigationController *navCtrl = [[UINavigationController alloc] initWithRootViewController:[login getLoginViewController]];
  33 + self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  34 + self.window.rootViewController = navCtrl;
  35 + [self.window makeKeyAndVisible];
  36 + return YES;
  37 +
  38 +}
  39 +
  40 +- (void)applicationWillResignActive:(UIApplication *)application
  41 +{
  42 + // 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.
  43 + // 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.
  44 +}
  45 +
  46 +- (void)applicationDidEnterBackground:(UIApplication *)application
  47 +{
  48 + // 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.
  49 + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
  50 +}
  51 +
  52 +- (void)applicationWillEnterForeground:(UIApplication *)application
  53 +{
  54 + // 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.
  55 +}
  56 +
  57 +- (void)applicationDidBecomeActive:(UIApplication *)application
  58 +{
  59 + // 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.
  60 +}
  61 +
  62 +- (void)applicationWillTerminate:(UIApplication *)application
  63 +{
  64 + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
  65 +}
  66 +
  67 +@end
... ...
Example/CNLiveServices/CNLiveServices-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>NSAppTransportSecurity</key>
  28 + <dict>
  29 + <key>NSAllowsArbitraryLoads</key>
  30 + <true/>
  31 + </dict>
  32 + <key>UILaunchStoryboardName</key>
  33 + <string>LaunchScreen</string>
  34 + <key>UIMainStoryboardFile</key>
  35 + <string>Main</string>
  36 + <key>UIRequiredDeviceCapabilities</key>
  37 + <array>
  38 + <string>armv7</string>
  39 + </array>
  40 + <key>UISupportedInterfaceOrientations</key>
  41 + <array>
  42 + <string>UIInterfaceOrientationPortrait</string>
  43 + <string>UIInterfaceOrientationLandscapeLeft</string>
  44 + <string>UIInterfaceOrientationLandscapeRight</string>
  45 + </array>
  46 + <key>UISupportedInterfaceOrientations~ipad</key>
  47 + <array>
  48 + <string>UIInterfaceOrientationPortrait</string>
  49 + <string>UIInterfaceOrientationPortraitUpsideDown</string>
  50 + <string>UIInterfaceOrientationLandscapeLeft</string>
  51 + <string>UIInterfaceOrientationLandscapeRight</string>
  52 + </array>
  53 +</dict>
  54 +</plist>
... ...
Example/CNLiveServices/CNLiveServices-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/CNLiveServices/Found/CNLiveFoundModule.h 0 → 100644
  1 +//
  2 +// CNLiveFoundModule.h
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/23.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +
  13 +@interface CNLiveFoundModule : NSObject
  14 +
  15 +@end
  16 +
  17 +NS_ASSUME_NONNULL_END
... ...
Example/CNLiveServices/Found/CNLiveFoundModule.m 0 → 100644
  1 +//
  2 +// CNLiveFoundModule.m
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/23.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveFoundModule.h"
  10 +#import "BeeHive.h"
  11 +
  12 +@BeeHiveMod(CNLiveFoundModule)
  13 +@interface CNLiveFoundModule()<BHModuleProtocol>
  14 +
  15 +@end
  16 +
  17 +@implementation CNLiveFoundModule
  18 +- (id)init {
  19 + if (self = [super init]) {
  20 +
  21 + }
  22 + return self;
  23 +
  24 +}
  25 +
  26 +- (NSUInteger)moduleLevel {
  27 + return 0;
  28 +
  29 +}
  30 +
  31 +- (void)modSetUp:(BHContext *)context {
  32 + NSLog(@"CNLiveFoundModule setup");
  33 + switch (context.env) {
  34 + case BHEnvironmentDev:
  35 + //....初始化开发环境
  36 + break;
  37 + case BHEnvironmentProd:
  38 + //....初始化生产环境
  39 + default:
  40 + break;
  41 + }
  42 +
  43 +}
  44 +
  45 +- (void)modInit:(BHContext *)context {
  46 + NSLog(@"CNLiveFoundModule init");
  47 +
  48 +}
  49 +
  50 +@end
... ...
Example/CNLiveServices/Found/CNLiveFoundService.h 0 → 100644
  1 +//
  2 +// CNLiveFoundService.h
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/23.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +
  13 +@interface CNLiveFoundService : NSObject
  14 +
  15 +@end
  16 +
  17 +NS_ASSUME_NONNULL_END
... ...
Example/CNLiveServices/Found/CNLiveFoundService.m 0 → 100644
  1 +//
  2 +// CNLiveFoundService.m
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/23.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveFoundService.h"
  10 +#import "CNLiveServices.h"
  11 +#import "CNLiveFoundViewController.h"
  12 +
  13 +@BeeHiveService(CNLiveFoundServiceProtocol,CNLiveFoundService)
  14 +@interface CNLiveFoundService ()<CNLiveFoundServiceProtocol>
  15 +
  16 +@end
  17 +
  18 +@implementation CNLiveFoundService
  19 +@synthesize itemId = _itemId;
  20 +
  21 +- (UIViewController *)getFoundViewController{
  22 + CNLiveFoundViewController *vc = [CNLiveFoundViewController new];
  23 + return vc;
  24 +
  25 +}
  26 +
  27 +- (void)pushToFoundViewController{
  28 + UINavigationController *nav = (UINavigationController *)[UIApplication sharedApplication].delegate.window.rootViewController;
  29 + CNLiveFoundViewController *vc = [CNLiveFoundViewController new];
  30 + [nav pushViewController:vc animated:YES];
  31 +
  32 +}
  33 +
  34 +- (void)pushToFoundViewControllerByName:(NSString *)name url:(NSString *)url delegate:(id)delegate{
  35 + UINavigationController *nav = (UINavigationController *)[UIApplication sharedApplication].delegate.window.rootViewController;
  36 + CNLiveFoundViewController *vc = [CNLiveFoundViewController new];
  37 + vc.url = url;
  38 + vc.name = name;
  39 + vc.delegate = delegate;
  40 + [nav pushViewController:vc animated:YES];
  41 +
  42 +}
  43 +
  44 +@end
... ...
Example/CNLiveServices/Found/CNLiveFoundViewController.h 0 → 100644
  1 +//
  2 +// CNLiveFoundViewController.h
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/23.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +#import "CNLiveFoundServiceProtocol.h"
  11 +
  12 +NS_ASSUME_NONNULL_BEGIN
  13 +
  14 +@interface CNLiveFoundViewController : UIViewController
  15 +@property (nonatomic, weak) id <CNLiveFoundProtocol> delegate;
  16 +@property (nonatomic, copy) NSString *name;
  17 +@property (nonatomic, copy) NSString *url;
  18 +
  19 +@end
  20 +
  21 +NS_ASSUME_NONNULL_END
... ...
Example/CNLiveServices/Found/CNLiveFoundViewController.m 0 → 100644
  1 +//
  2 +// CNLiveFoundViewController.m
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/23.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveFoundViewController.h"
  10 +
  11 +@interface CNLiveFoundViewController ()
  12 +
  13 +@end
  14 +
  15 +@implementation CNLiveFoundViewController
  16 +
  17 +- (void)viewDidLoad {
  18 + [super viewDidLoad];
  19 + // Do any additional setup after loading the view.
  20 +
  21 + self.title = @"发现";
  22 + self.view.backgroundColor = [UIColor whiteColor];
  23 +
  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 + if ([self.delegate respondsToSelector:@selector(backToFoundViewControllerByName:)]) {
  36 + [self.delegate backToFoundViewControllerByName:@"哈哈-faxian"];
  37 + }
  38 + UINavigationController *nav = (UINavigationController *)[UIApplication sharedApplication].delegate.window.rootViewController;
  39 + [nav popViewControllerAnimated:YES];
  40 +}
  41 +
  42 +/*
  43 +#pragma mark - Navigation
  44 +
  45 +// In a storyboard-based application, you will often want to do a little preparation before navigation
  46 +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  47 + // Get the new view controller using [segue destinationViewController].
  48 + // Pass the selected object to the new view controller.
  49 +}
  50 +*/
  51 +
  52 +@end
... ...
Example/CNLiveServices/Home/CNLiveDetailsViewController.h 0 → 100644
  1 +//
  2 +// CNLiveDetailsViewController.h
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/23.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +
  13 +@interface CNLiveDetailsViewController : UIViewController
  14 +
  15 +@end
  16 +
  17 +NS_ASSUME_NONNULL_END
... ...
Example/CNLiveServices/Home/CNLiveDetailsViewController.m 0 → 100644
  1 +//
  2 +// CNLiveDetailsViewController.m
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/23.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveDetailsViewController.h"
  10 +
  11 +@interface CNLiveDetailsViewController ()
  12 +
  13 +@end
  14 +
  15 +@implementation CNLiveDetailsViewController
  16 +
  17 +- (void)viewDidLoad {
  18 + [super viewDidLoad];
  19 + // Do any additional setup after loading the view.
  20 +}
  21 +
  22 +/*
  23 +#pragma mark - Navigation
  24 +
  25 +// In a storyboard-based application, you will often want to do a little preparation before navigation
  26 +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  27 + // Get the new view controller using [segue destinationViewController].
  28 + // Pass the selected object to the new view controller.
  29 +}
  30 +*/
  31 +
  32 +@end
... ...
Example/CNLiveServices/Home/CNLiveHomeModule.h 0 → 100644
  1 +//
  2 +// CNLiveHomeModule.h
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +
  13 +@interface CNLiveHomeModule : NSObject
  14 +
  15 +@end
  16 +
  17 +NS_ASSUME_NONNULL_END
... ...
Example/CNLiveServices/Home/CNLiveHomeModule.m 0 → 100644
  1 +//
  2 +// CNLiveHomeModule.m
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveHomeModule.h"
  10 +#import "BeeHive.h"
  11 +
  12 +@BeeHiveMod(CNLiveHomeModule)
  13 +@interface CNLiveHomeModule()<BHModuleProtocol>
  14 +
  15 +@end
  16 +
  17 +@implementation CNLiveHomeModule
  18 +- (id)init {
  19 + if (self = [super init]) {
  20 +
  21 + }
  22 + return self;
  23 +
  24 +}
  25 +
  26 +- (NSUInteger)moduleLevel {
  27 + return 0;
  28 +
  29 +}
  30 +
  31 +- (void)modSetUp:(BHContext *)context {
  32 + NSLog(@"CNLiveHomeModule setup");
  33 + switch (context.env) {
  34 + case BHEnvironmentDev:
  35 + //....初始化开发环境
  36 + break;
  37 + case BHEnvironmentProd:
  38 + //....初始化生产环境
  39 + default:
  40 + break;
  41 + }
  42 +
  43 +}
  44 +
  45 +- (void)modInit:(BHContext *)context {
  46 + NSLog(@"CNLiveHomeModule init");
  47 +
  48 +}
  49 +
  50 +@end
... ...
Example/CNLiveServices/Home/CNLiveHomeService.h 0 → 100644
  1 +//
  2 +// CNLiveHomeService.h
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +
  13 +@interface CNLiveHomeService : NSObject
  14 +
  15 +@end
  16 +
  17 +NS_ASSUME_NONNULL_END
... ...
Example/CNLiveServices/Home/CNLiveHomeService.m 0 → 100644
  1 +//
  2 +// CNLiveHomeService.m
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveHomeService.h"
  10 +#import "CNLiveServices.h"
  11 +#import "CNLiveHomeViewController.h"
  12 +
  13 +@BeeHiveService(CNLiveHomeServiceProtocol,CNLiveHomeService)
  14 +@interface CNLiveHomeService ()<CNLiveHomeServiceProtocol>
  15 +
  16 +@end
  17 +
  18 +@implementation CNLiveHomeService
  19 +
  20 +- (UIViewController *)getHomeViewController{
  21 + CNLiveHomeViewController *vc = [CNLiveHomeViewController new];
  22 + return vc;
  23 +
  24 +}
  25 +
  26 +- (void)pushToHomeViewController{
  27 + UITabBarController *tab = (UITabBarController *)[UIApplication sharedApplication].delegate.window.rootViewController;
  28 + UINavigationController *nav = tab.selectedViewController;
  29 + CNLiveHomeViewController *vc = [CNLiveHomeViewController new];
  30 + [nav pushViewController:vc animated:YES];
  31 +
  32 +}
  33 +
  34 +@end
... ...
Example/CNLiveServices/Home/CNLiveHomeViewController.h 0 → 100644
  1 +//
  2 +// CNLiveHomeViewController.h
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +
  13 +@interface CNLiveHomeViewController : UIViewController
  14 +@property (nonatomic, copy) NSString *name;
  15 +
  16 +@end
  17 +
  18 +NS_ASSUME_NONNULL_END
... ...
Example/CNLiveServices/Home/CNLiveHomeViewController.m 0 → 100644
  1 +//
  2 +// CNLiveHomeViewController.m
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveHomeViewController.h"
  10 +#import "CNLiveServices.h"
  11 +#import "CNLiveFoundServiceProtocol.h"
  12 +#import "CNLiveDetailsViewController.h"
  13 +
  14 +@interface CNLiveHomeViewController ()<CNLiveFoundProtocol>
  15 +
  16 +@end
  17 +
  18 +@implementation CNLiveHomeViewController
  19 +- (void)backToFoundViewControllerByName:(NSString *)name{
  20 + self.title = name;
  21 +}
  22 +
  23 +- (void)viewDidLoad {
  24 + [super viewDidLoad];
  25 +
  26 + // Do any additional setup after loading the view.
  27 + self.title = self.name;
  28 + self.view.backgroundColor = [UIColor whiteColor];
  29 +
  30 + UIButton *btn0 = [UIButton buttonWithType:UIButtonTypeCustom];
  31 + btn0.frame = CGRectMake(0, 0, 100, 100);
  32 + btn0.center = self.view.center;
  33 + btn0.backgroundColor = [UIColor redColor];
  34 + [btn0 setTitle:@"进入发现" forState:UIControlStateNormal];
  35 + [btn0 addTarget:self action:@selector(testButtonClicked) forControlEvents:UIControlEventTouchUpInside];
  36 + [self.view addSubview:btn0];
  37 +
  38 +}
  39 +
  40 +- (void)testButtonClicked {
  41 + id<CNLiveLoginServiceProtocol> login = [[BeeHive shareInstance] createService:@protocol(CNLiveLoginServiceProtocol)];
  42 + [login loginIfNeedWithCompleteBlock:^(BOOL succeed) {
  43 + if (succeed) {
  44 + id<CNLiveFoundServiceProtocol> found = [[BeeHive shareInstance] createService:@protocol(CNLiveFoundServiceProtocol)];
  45 + [found pushToFoundViewControllerByName:@"" url:@"" delegate:self];
  46 +
  47 + }
  48 + }];
  49 +}
  50 +
  51 +/*
  52 +#pragma mark - Navigation
  53 +
  54 +// In a storyboard-based application, you will often want to do a little preparation before navigation
  55 +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  56 + // Get the new view controller using [segue destinationViewController].
  57 + // Pass the selected object to the new view controller.
  58 +}
  59 +*/
  60 +
  61 +@end
... ...
Example/CNLiveServices/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/CNLiveServices/Login/Controller/CNLoginViewController.h 0 → 100644
  1 +//
  2 +// CNLoginViewController.h
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +typedef void (^CompleteBlock) (BOOL isLogin);
  11 +
  12 +NS_ASSUME_NONNULL_BEGIN
  13 +
  14 +@interface CNLoginViewController : UIViewController
  15 +@property (nonatomic, copy) CompleteBlock completeBlock;
  16 +@property (nonatomic, copy) NSString *name;
  17 +
  18 +@end
  19 +
  20 +NS_ASSUME_NONNULL_END
... ...
Example/CNLiveServices/Login/Controller/CNLoginViewController.m 0 → 100644
  1 +//
  2 +// CNLoginViewController.m
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLoginViewController.h"
  10 +
  11 +@interface CNLoginViewController ()
  12 +
  13 +@end
  14 +
  15 +@implementation CNLoginViewController
  16 +
  17 +- (void)viewWillAppear:(BOOL)animated{
  18 + [super viewWillAppear:animated];
  19 +
  20 +}
  21 +
  22 +- (void)viewWillDisappear:(BOOL)animated{
  23 + [super viewWillDisappear:animated];
  24 +
  25 +}
  26 +
  27 +- (void)viewDidLoad {
  28 + [super viewDidLoad];
  29 + // Do any additional setup after loading the view.
  30 + self.view.backgroundColor = [UIColor whiteColor];
  31 +
  32 +}
  33 +
  34 +/*
  35 +#pragma mark - Navigation
  36 +
  37 +// In a storyboard-based application, you will often want to do a little preparation before navigation
  38 +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  39 + // Get the new view controller using [segue destinationViewController].
  40 + // Pass the selected object to the new view controller.
  41 +}
  42 +*/
  43 +
  44 +
  45 +@end
... ...
Example/CNLiveServices/Login/Module/CNLiveLoginModule.h 0 → 100644
  1 +//
  2 +// CNLiveLoginModule.h
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +
  13 +@interface CNLiveLoginModule : NSObject
  14 +
  15 +@end
  16 +
  17 +NS_ASSUME_NONNULL_END
... ...
Example/CNLiveServices/Login/Module/CNLiveLoginModule.m 0 → 100644
  1 +//
  2 +// CNLiveLoginModule.m
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveLoginModule.h"
  10 +#import "BeeHive.h"
  11 +
  12 +@BeeHiveMod(CNLiveLoginModule)
  13 +@interface CNLiveLoginModule()<BHModuleProtocol>
  14 +
  15 +@end
  16 +@implementation CNLiveLoginModule
  17 +- (id)init {
  18 + if (self = [super init]) {
  19 +
  20 + }
  21 + return self;
  22 +
  23 +}
  24 +
  25 +- (NSUInteger)moduleLevel {
  26 + return 0;
  27 +
  28 +}
  29 +
  30 +- (void)modSetUp:(BHContext *)context {
  31 + NSLog(@"CNLiveLoginModule setup");
  32 + switch (context.env) {
  33 + case BHEnvironmentDev:
  34 + //....初始化开发环境
  35 + break;
  36 + case BHEnvironmentProd:
  37 + //....初始化生产环境
  38 + default:
  39 + break;
  40 + }
  41 +
  42 +}
  43 +
  44 +- (void)modInit:(BHContext *)context {
  45 + NSLog(@"CNLiveLoginModule init");
  46 +
  47 +}
  48 +
  49 +@end
... ...
Example/CNLiveServices/Login/Module/CNLiveLoginService.h 0 → 100644
  1 +//
  2 +// CNLiveLoginService.h
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +
  13 +@interface CNLiveLoginService : NSObject
  14 +
  15 +@end
  16 +
  17 +NS_ASSUME_NONNULL_END
... ...
Example/CNLiveServices/Login/Module/CNLiveLoginService.m 0 → 100644
  1 +//
  2 +// CNLiveLoginService.m
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/22.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveLoginService.h"
  10 +#import "CNLiveServices.h"
  11 +#import "CNLoginViewController.h"
  12 +
  13 +@BeeHiveService(CNLiveLoginServiceProtocol,CNLiveLoginService)
  14 +@interface CNLiveLoginService ()<CNLiveLoginServiceProtocol>
  15 +
  16 +@end
  17 +
  18 +@implementation CNLiveLoginService
  19 +
  20 +- (UIViewController *)getLoginViewController{
  21 + return [CNLoginViewController new];
  22 +
  23 +}
  24 +
  25 +- (void)pushToLoginViewController{
  26 + UINavigationController *nav = (UINavigationController *)[UIApplication sharedApplication].delegate.window.rootViewController;
  27 + CNLoginViewController *vc = [CNLoginViewController new];
  28 + [nav pushViewController:vc animated:YES];
  29 +
  30 +}
  31 +
  32 +- (void)loginIfNeedWithCompleteBlock:(void (^)(BOOL))completeBlock{
  33 + if (NO) {
  34 + completeBlock(YES);
  35 +
  36 + }
  37 + else{
  38 + CNLoginViewController *login = [CNLoginViewController new];
  39 + login.completeBlock = completeBlock;
  40 + UIViewController *root = [UIApplication sharedApplication].delegate.window.rootViewController;
  41 + [root presentViewController:login animated:YES completion:nil];
  42 + }
  43 +
  44 +}
  45 +
  46 +
  47 +@end
... ...
Example/CNLiveServices/UserAgreement/CNUserAgreementManager.h 0 → 100644
  1 +//
  2 +// CNUserAgreementManager.h
  3 +// Test
  4 +//
  5 +// Created by CNLive-zxw on 2019/4/13.
  6 +// Copyright © 2019 CNLive. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +
  13 +@interface CNUserAgreementManager : NSObject
  14 +
  15 +
  16 +@end
  17 +
  18 +NS_ASSUME_NONNULL_END
... ...
Example/CNLiveServices/UserAgreement/CNUserAgreementManager.m 0 → 100644
  1 +//
  2 +// CNUserAgreementManager.m
  3 +// Test
  4 +//
  5 +// Created by CNLive-zxw on 2019/4/13.
  6 +// Copyright © 2019 CNLive. All rights reserved.
  7 +//
  8 +
  9 +#import "CNUserAgreementManager.h"
  10 +#import "CNLiveServices.h"
  11 +
  12 +@BeeHiveService(CNLiveUserAgreementServiceProtocol,CNUserAgreementManager)
  13 +@interface CNUserAgreementManager ()<CNLiveUserAgreementServiceProtocol>
  14 +
  15 +@end
  16 +
  17 +@implementation CNUserAgreementManager
  18 +
  19 ++ (BOOL)singleton{
  20 + return YES;
  21 +
  22 +}
  23 +
  24 +- (void)getAgreementH5WithType:(CNGetAgreementH5Type)type success:(SuccessBlock)success failure:(FailureBlock)failure {
  25 +// [CNLiveNetworking setAllowRequestDefaultArgument:NO];
  26 +// [CNLiveNetworking requestNetworkWithMethod:CNLiveRequestMethodGET URLString:CNGetAgreementH5Url Param:@{} CacheType:CNLiveNetworkCacheTypeNetworkOnly CompletionBlock:^(NSURLSessionTask *requestTask, id responseObject, NSError *error) {
  27 +// if (error) {
  28 +// if (failure) {
  29 +// failure(error);
  30 +// }
  31 +// }
  32 +// else{
  33 +// if ([responseObject isKindOfClass:[NSArray class]]) {
  34 +//
  35 +// for (NSDictionary *dic in responseObject) {
  36 +//
  37 +// switch (type) {
  38 +// case CNAgreementUser:
  39 +// {
  40 +// if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"yhxy"]) {
  41 +// if (success) {
  42 +// success(dic[@"detailUrl"],dic[@"title"]);
  43 +// return ;
  44 +// }
  45 +// }
  46 +// }
  47 +// break;
  48 +// case CNAgreementPrivacy:
  49 +// {
  50 +// if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"yszc"]) {
  51 +// if (success) {
  52 +// success(dic[@"detailUrl"],dic[@"title"]);
  53 +// return ;
  54 +// }
  55 +// }
  56 +// }
  57 +// break;
  58 +// case CNAgreementHelp:
  59 +// {
  60 +// if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"bzfk"]) {
  61 +// if (success) {
  62 +// success(dic[@"detailUrl"],dic[@"title"]);
  63 +// return ;
  64 +// }
  65 +// }
  66 +// }
  67 +// break;
  68 +// case CNAgreementUnderstand:
  69 +// {
  70 +// if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"ljwjj"]) {
  71 +// if (success) {
  72 +// success(dic[@"detailUrl"],dic[@"title"]);
  73 +// return ;
  74 +// }
  75 +// }
  76 +// }
  77 +// break;
  78 +// case CNAgreementIntroduction:
  79 +// {
  80 +// if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"yyjj"]) {
  81 +// if (success) {
  82 +// success(dic[@"detailUrl"],dic[@"title"]);
  83 +// return ;
  84 +// }
  85 +// }
  86 +// }
  87 +// break;
  88 +// case CNAgreementCopyright:
  89 +// {
  90 +// if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"bqxx"]) {
  91 +// if (success) {
  92 +// success(dic[@"detailUrl"],dic[@"title"]);
  93 +// return ;
  94 +// }
  95 +// }
  96 +// }
  97 +// break;
  98 +// case CNAgreementPermission:
  99 +// {
  100 +// if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"rjxkxy"]) {
  101 +// if (success) {
  102 +// success(dic[@"detailUrl"],dic[@"title"]);
  103 +// return ;
  104 +// }
  105 +// }
  106 +// }
  107 +// break;
  108 +// case CNAgreementIntegralRules:
  109 +// {
  110 +// if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"jfgz"]) {
  111 +// if (success) {
  112 +// success(dic[@"detailUrl"],dic[@"title"]);
  113 +// return ;
  114 +// }
  115 +// }
  116 +// }
  117 +// break;
  118 +// case CNAgreementSigninRules:
  119 +// {
  120 +// if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"jfjlgz"]) {
  121 +// if (success) {
  122 +// success(dic[@"detailUrl"],dic[@"title"]);
  123 +// return ;
  124 +// }
  125 +// }
  126 +// }
  127 +// break;
  128 +// case CNAgreementReviewApply:
  129 +// {
  130 +// if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"shsqxy"]) {
  131 +// if (success) {
  132 +// success(dic[@"detailUrl"],dic[@"title"]);
  133 +// return ;
  134 +// }
  135 +// }
  136 +// }
  137 +// break;
  138 +// case CNAgreementCancellation:
  139 +// {
  140 +// if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"zxxz"]) {
  141 +// if (success) {
  142 +// success(dic[@"detailUrl"],dic[@"title"]);
  143 +// return ;
  144 +// }
  145 +// }
  146 +// }
  147 +// break;
  148 +// case CNAgreementEmojiService:
  149 +// {
  150 +// if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"fwsm"]) {
  151 +// if (success) {
  152 +// success(dic[@"detailUrl"],dic[@"title"]);
  153 +// return ;
  154 +// }
  155 +// }
  156 +// }
  157 +// break;
  158 +// case CNAgreementEmojiComplaints:
  159 +// {
  160 +// if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"tssm"]) {
  161 +// if (success) {
  162 +// success(dic[@"detailUrl"],dic[@"title"]);
  163 +// return ;
  164 +// }
  165 +// }
  166 +// }
  167 +// break;
  168 +// case CNAgreementEnterpriseQualification:
  169 +// {
  170 +// if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"qyzz"]) {
  171 +// if (success) {
  172 +// success(dic[@"detailUrl"],dic[@"title"]);
  173 +// return ;
  174 +// }
  175 +// }
  176 +// }
  177 +// break;
  178 +// default:
  179 +// break;
  180 +// }
  181 +//
  182 +// }
  183 +//
  184 +// }
  185 +// if (failure) {
  186 +// failure(error);
  187 +// }
  188 +// }
  189 +// }];
  190 +
  191 +}
  192 +
  193 ++ (void)getAgreementH5WithType:(CNGetAgreementH5Type)type success:(SuccessBlock)success failure:(FailureBlock)failure {
  194 + [[CNUserAgreementManager shareInstance] getAgreementH5WithType:type success:^(NSString * _Nonnull h5, NSString * _Nonnull title) {
  195 + success(h5, title);
  196 +
  197 + } failure:^(NSError * _Nonnull error) {
  198 + failure(error);
  199 +
  200 + }];
  201 +
  202 +}
  203 +
  204 +@end
... ...
Example/CNLiveServices/UserAgreement/CNUserAgreementWebController.h 0 → 100644
  1 +//
  2 +// CNUserAgreementWebController.h
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/30.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +
  13 +@interface CNUserAgreementWebController : UIViewController
  14 +- (instancetype)initWithUrl:(NSString *)url name:(NSString *)name;
  15 +
  16 +@end
  17 +
  18 +NS_ASSUME_NONNULL_END
... ...
Example/CNLiveServices/UserAgreement/CNUserAgreementWebController.m 0 → 100644
  1 +//
  2 +// CNUserAgreementWebController.m
  3 +// CNLiveServices_Example
  4 +//
  5 +// Created by CNLive-zxw on 2019/7/30.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNUserAgreementWebController.h"
  10 +#import <WebKit/WebKit.h>
  11 +
  12 +@interface CNUserAgreementWebController ()<WKUIDelegate, WKNavigationDelegate>
  13 +@property (nonatomic, copy) NSString *url;
  14 +@property (nonatomic, copy) NSString *name;
  15 +@property (nonatomic, strong) WKWebView *webView;
  16 +@property (nonatomic, strong) UIProgressView *processView;
  17 +@property (nonatomic, weak) UILabel *titleLabel;
  18 +
  19 +@end
  20 +
  21 +@implementation CNUserAgreementWebController
  22 +
  23 +- (instancetype)initWithUrl:(NSString *)url name:(NSString *)name {
  24 + self = [super init];
  25 + if (self) {
  26 + self.url = url;
  27 + self.name = name;
  28 + }
  29 + return self;
  30 +}
  31 +
  32 +- (void)setName:(NSString *)name{
  33 + _name = name;
  34 + _titleLabel.text = name;
  35 +
  36 +}
  37 +
  38 +#pragma mark - 加载数据
  39 +- (void)loadUrl {
  40 + NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:self.url] cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:15.0];
  41 + [self.webView loadRequest:theRequest];
  42 +
  43 +}
  44 +
  45 +#pragma mark - 生命周期
  46 +- (void)viewWillAppear:(BOOL)animated {
  47 + [super viewWillAppear:animated];
  48 + self.navigationController.navigationBarHidden = YES;
  49 +
  50 +}
  51 +
  52 +- (void)viewWillDisappear:(BOOL)animated {
  53 + [super viewWillDisappear:animated];
  54 + self.navigationController.navigationBarHidden = NO;
  55 +
  56 +}
  57 +
  58 +- (void)viewDidLoad {
  59 + [super viewDidLoad];
  60 + self.view.backgroundColor = [UIColor whiteColor];
  61 + if (@available(iOS 11, *)) {
  62 + self.webView.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentAutomatic;
  63 + }
  64 + else {
  65 + self.automaticallyAdjustsScrollViewInsets = NO;
  66 + }
  67 + [self setupNavigationBar];
  68 + [self setupUI];
  69 + [self loadUrl];
  70 +
  71 +}
  72 +
  73 +- (void)dealloc {
  74 + NSLog(@"CNUserAgreementWebController dealloc");
  75 + [self.webView stopLoading];
  76 + [self.webView removeObserver:self forKeyPath:@"estimatedProgress"];
  77 + if (!self.name) {
  78 + [self.webView removeObserver:self forKeyPath:@"title"];
  79 + }
  80 + self.webView.UIDelegate = nil;
  81 + self.webView.navigationDelegate = nil;
  82 + self.webView = nil;
  83 + [self clearWKCache];
  84 +
  85 +}
  86 +
  87 +#pragma mark - 创建导航条
  88 +- (void)setupNavigationBar {
  89 + UIView *navView = [[UIView alloc] initWithFrame:CGRectMake(0, [UIApplication sharedApplication].statusBarFrame.size.height, [UIScreen mainScreen].bounds.size.width, 44)];
  90 + navView.backgroundColor = [UIColor clearColor];
  91 + [self.view bringSubviewToFront:navView];
  92 + [self.view addSubview:navView];
  93 +
  94 + UIButton *leftBtn = [UIButton buttonWithType:UIButtonTypeSystem];
  95 + leftBtn.frame = CGRectMake(0, 0, 44, 44);
  96 + [leftBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
  97 + leftBtn.titleLabel.font = [UIFont systemFontOfSize:16];
  98 + [leftBtn setImage:[[UIImage imageNamed:@"web_close"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forState:UIControlStateNormal];
  99 + [leftBtn addTarget:self action:@selector(goBack) forControlEvents:UIControlEventTouchUpInside];
  100 + [navView addSubview:leftBtn];
  101 +
  102 + UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(([[UIScreen mainScreen] bounds].size.width - 150)/2.0, 0, 150, 44)];
  103 + titleLabel.font = [UIFont systemFontOfSize:16];
  104 + titleLabel.textColor = [UIColor blackColor];
  105 + titleLabel.text = self.name;
  106 + titleLabel.textAlignment = NSTextAlignmentCenter;
  107 + [navView addSubview:titleLabel];
  108 + _titleLabel = titleLabel;
  109 +
  110 +}
  111 +
  112 +- (void)setupUI {
  113 + WKWebViewConfiguration * configuration = [[WKWebViewConfiguration alloc] init];
  114 + configuration.allowsInlineMediaPlayback = YES;
  115 + WKPreferences *preferences = [WKPreferences new];
  116 + preferences.javaScriptCanOpenWindowsAutomatically = YES;
  117 + configuration.preferences = preferences;
  118 + self.webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, [UIApplication sharedApplication].statusBarFrame.size.height+44, [[UIScreen mainScreen] bounds].size.width, [[UIScreen mainScreen] bounds].size.height-([UIApplication sharedApplication].statusBarFrame.size.height+44)) configuration:configuration];
  119 + _webView.UIDelegate = self;
  120 + _webView.navigationDelegate = self;
  121 + _webView.contentMode = UIViewContentModeScaleAspectFit;
  122 + _webView.scrollView.showsHorizontalScrollIndicator = NO;
  123 + _webView.allowsBackForwardNavigationGestures = YES;
  124 + _webView.allowsLinkPreview = NO;
  125 + [self.view addSubview:self.webView];
  126 +
  127 + self.processView = [[UIProgressView alloc] initWithFrame:CGRectMake(0, ([UIApplication sharedApplication].statusBarFrame.size.height+44)+0.5, [[UIScreen mainScreen] bounds].size.width, 1)];
  128 + _processView.progressTintColor = [UIColor colorWithRed:0.0 green:1.0 blue:0.0 alpha:1.0];
  129 + _processView.trackTintColor = [UIColor whiteColor];
  130 + [self.view addSubview:self.processView];
  131 +
  132 + [self.webView addObserver:self forKeyPath:@"estimatedProgress" options:NSKeyValueObservingOptionNew context:nil];
  133 + if (!self.name) {
  134 + [self.webView addObserver:self forKeyPath:@"title" options:NSKeyValueObservingOptionNew context:NULL];
  135 + }
  136 +
  137 +}
  138 +
  139 +#pragma mark - WKNavigationDelegate
  140 +// 在发送请求之前,决定是否跳转
  141 +- (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler{
  142 + //允许跳转
  143 + decisionHandler(WKNavigationActionPolicyAllow);
  144 +
  145 +}
  146 +
  147 +// 页面开始加载时调用
  148 +- (void)webView:(WKWebView *)webView didStartProvisionalNavigation:(WKNavigation *)navigation{
  149 +
  150 +}
  151 +
  152 +// 在收到响应后,决定是否跳转
  153 +- (void)webView:(WKWebView *)webView decidePolicyForNavigationResponse:(WKNavigationResponse *)navigationResponse decisionHandler:(void (^)(WKNavigationResponsePolicy))decisionHandler{
  154 + //允许跳转
  155 + decisionHandler(WKNavigationResponsePolicyAllow);
  156 + //不允许跳转
  157 + //decisionHandler(WKNavigationResponsePolicyCancel);
  158 +}
  159 +
  160 +// 当内容开始返回时调用
  161 +- (void)webView:(WKWebView *)webView didCommitNavigation:(WKNavigation *)navigation{
  162 + // NSLog(@"%@",webView.URL);
  163 +}
  164 +
  165 +// 页面加载完成之后调用
  166 +- (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation{
  167 +
  168 +}
  169 +
  170 +// 页面加载失败时调用
  171 +- (void)webView:(WKWebView *)webView didFailProvisionalNavigation:(null_unspecified WKNavigation *)navigation withError:(nonnull NSError *)error{
  172 + NSLog(@"打印这个error%@",error);
  173 +
  174 +}
  175 +
  176 +// 接收到服务器跳转请求之后调用(重定向)
  177 +- (void)webView:(WKWebView *)webView didReceiveServerRedirectForProvisionalNavigation:(WKNavigation *)navigation{
  178 +
  179 +}
  180 +
  181 +#pragma mark - 响应方法
  182 +//回退goback
  183 +- (void)goback {
  184 + if ([self.webView canGoBack]) {
  185 + [self.webView goBack];
  186 + }
  187 + else {
  188 + [self closeClick];
  189 + }
  190 +}
  191 +
  192 +//关闭pop
  193 +- (void)closeClick {
  194 + if (self.presentingViewController != nil) {
  195 + [self dismissViewControllerAnimated:NO completion:nil];
  196 +
  197 + }
  198 + else {
  199 + [self.navigationController popViewControllerAnimated:YES];
  200 + }
  201 +}
  202 +
  203 +#pragma mark - KVO
  204 +- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSKeyValueChangeKey,id> *)change context:(void *)context {
  205 + if ([keyPath isEqualToString:@"estimatedProgress"]) {
  206 + if (object == self.webView) {
  207 + [self.processView setAlpha:1.0f];
  208 + [self.processView setProgress:self.webView.estimatedProgress animated:YES];
  209 +
  210 + if(self.webView.estimatedProgress >= 1.0f) {
  211 +
  212 + [UIView animateWithDuration:0.3 delay:0.5 options:UIViewAnimationOptionCurveEaseOut animations:^{
  213 + [self.processView setAlpha:0.0f];
  214 +
  215 + } completion:^(BOOL finished) {
  216 + [self.processView setProgress:0.0f animated:NO];
  217 +
  218 + }];
  219 +
  220 + }
  221 +
  222 + }
  223 + else {
  224 + [super observeValueForKeyPath:keyPath ofObject:object change:change context:context];
  225 + }
  226 +
  227 + }
  228 + else if ([keyPath isEqualToString:@"title"]){
  229 + if (object == self.webView) {
  230 + if (self.webView.title.length != 0) {
  231 + self.name = self.webView.title;
  232 +
  233 + }
  234 + }
  235 + else {
  236 + [super observeValueForKeyPath:keyPath ofObject:object change:change context:context];
  237 + }
  238 + }
  239 + else {
  240 + [super observeValueForKeyPath:keyPath ofObject:object change:change context:context];
  241 +
  242 + }
  243 +}
  244 +
  245 +#pragma mark - 清除缓存
  246 +// 清除缓存
  247 +- (void)clearWKCache {
  248 + NSArray *types = @[WKWebsiteDataTypeDiskCache,WKWebsiteDataTypeOfflineWebApplicationCache,WKWebsiteDataTypeMemoryCache,WKWebsiteDataTypeIndexedDBDatabases,WKWebsiteDataTypeWebSQLDatabases];
  249 + NSSet *websiteDataTypes = [NSSet setWithArray:types];
  250 + NSDate *dateFrom = [NSDate dateWithTimeIntervalSince1970:0];
  251 + [[WKWebsiteDataStore defaultDataStore] removeDataOfTypes:websiteDataTypes modifiedSince:dateFrom completionHandler:^{
  252 + NSLog(@"清楚缓存完毕");
  253 + }];
  254 +
  255 +}
  256 +
  257 +@end
... ...
Example/CNLiveServices/en.lproj/InfoPlist.strings 0 → 100644
  1 +/* Localized versions of Info.plist keys */
  2 +
... ...
Example/CNLiveServices/main.m 0 → 100644
  1 +//
  2 +// main.m
  3 +// CNLiveServices
  4 +//
  5 +// Created by 153993236@qq.com on 07/22/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. 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 +use_frameworks!
  2 +
  3 +platform :ios, '9.0'
  4 +
  5 +target 'CNLiveServices_Example' do
  6 + pod 'CNLiveServices', :path => '../'
  7 + pod 'MJExtension'
  8 + pod 'MJRefresh'
  9 + pod 'Masonry'
  10 + pod 'QMUIKit'
  11 + pod 'YYKit'
  12 +
  13 + target 'CNLiveServices_Tests' do
  14 + inherit! :search_paths
  15 +
  16 +
  17 + end
  18 +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
  1 +// The contents of this file are implicitly included at the beginning of every test case source file.
  2 +
  3 +#ifdef __OBJC__
  4 +
  5 +
  6 +
  7 +#endif
... ...
Example/Tests/Tests.m 0 → 100644
  1 +//
  2 +// CNLiveServicesTests.m
  3 +// CNLiveServicesTests
  4 +//
  5 +// Created by 153993236@qq.com on 07/22/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. 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
  1 +/* Localized versions of Info.plist keys */
  2 +
... ...
  1 +Copyright (c) 2019 153993236@qq.com <zhangxiaowen@cnlive.com>
  2 +
  3 +Permission is hereby granted, free of charge, to any person obtaining a copy
  4 +of this software and associated documentation files (the "Software"), to deal
  5 +in the Software without restriction, including without limitation the rights
  6 +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7 +copies of the Software, and to permit persons to whom the Software is
  8 +furnished to do so, subject to the following conditions:
  9 +
  10 +The above copyright notice and this permission notice shall be included in
  11 +all copies or substantial portions of the Software.
  12 +
  13 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19 +THE SOFTWARE.
... ...
README.md
1   -CNLiveServices
2 1 \ No newline at end of file
  2 +# CNLiveServices
  3 +
  4 +[![CI Status](https://img.shields.io/travis/153993236@qq.com/CNLiveServices.svg?style=flat)](https://travis-ci.org/153993236@qq.com/CNLiveServices)
  5 +[![Version](https://img.shields.io/cocoapods/v/CNLiveServices.svg?style=flat)](https://cocoapods.org/pods/CNLiveServices)
  6 +[![License](https://img.shields.io/cocoapods/l/CNLiveServices.svg?style=flat)](https://cocoapods.org/pods/CNLiveServices)
  7 +[![Platform](https://img.shields.io/cocoapods/p/CNLiveServices.svg?style=flat)](https://cocoapods.org/pods/CNLiveServices)
  8 +
  9 +## Example
  10 +
  11 +To run the example project, clone the repo, and run `pod install` from the Example directory first.
  12 +
  13 +## Requirements
  14 +
  15 +## Installation
  16 +
  17 +CNLiveServices is available through [CocoaPods](https://cocoapods.org). To install
  18 +it, simply add the following line to your Podfile:
  19 +
  20 +```ruby
  21 +pod 'CNLiveServices'
  22 +```
  23 +
  24 +## Author
  25 +
  26 +153993236@qq.com, zhangxiaowen@cnlive.com
  27 +
  28 +## License
  29 +
  30 +CNLiveServices is available under the MIT license. See the LICENSE file for more info.
... ...
_Pods.xcodeproj 0 → 120000
  1 +Example/Pods/Pods.xcodeproj
0 2 \ No newline at end of file
... ...