Commit 731b9947756690e098661c76297c2026cd16131f
Merge branch 'master' of bj.gitlab.cnlive.com:ios-team/CNLiveServices
Showing
17 changed files
with
303 additions
and
175 deletions
CNLiveServices.podspec
| ... | ... | @@ -9,7 +9,7 @@ |
| 9 | 9 | Pod::Spec.new do |s| |
| 10 | 10 | s.name = 'CNLiveServices' |
| 11 | 11 | s.version = '0.0.1' |
| 12 | - s.summary = '网家家 - 业务接口协议库' | |
| 12 | + s.summary = 'CNLiveServices' | |
| 13 | 13 | |
| 14 | 14 | # This description is used to generate tags and improve search results. |
| 15 | 15 | # * Think: What does it do? Why did you write it? What is the focus? |
| ... | ... | @@ -18,7 +18,7 @@ Pod::Spec.new do |s| |
| 18 | 18 | # * Finally, don't worry about the indent, CocoaPods strips it! |
| 19 | 19 | |
| 20 | 20 | s.description = <<-DESC |
| 21 | -TODO: Add long description of the pod here. | |
| 21 | +TODO: 网家家 - 业务接口协议库. | |
| 22 | 22 | DESC |
| 23 | 23 | |
| 24 | 24 | s.homepage = 'http://bj.gitlab.cnlive.com/ios-team/CNLiveServices' |
| ... | ... | @@ -31,11 +31,6 @@ TODO: Add long description of the pod here. |
| 31 | 31 | s.ios.deployment_target = '9.0' |
| 32 | 32 | |
| 33 | 33 | s.source_files = 'CNLiveServices/Classes/CNLiveServices.h' |
| 34 | - | |
| 35 | - # 跟控制器 | |
| 36 | - s.subspec 'Manager' do |ss| | |
| 37 | - ss.source_files = 'CNLiveServices/Classes/Manager/*.{h,m}' | |
| 38 | - end | |
| 39 | 34 | |
| 40 | 35 | # 首页 |
| 41 | 36 | s.subspec 'NetHome' do |ss| |
| ... | ... | @@ -62,6 +57,16 @@ TODO: Add long description of the pod here. |
| 62 | 57 | ss.source_files = 'CNLiveServices/Classes/Login/*.{h,m}' |
| 63 | 58 | end |
| 64 | 59 | |
| 60 | + # 二维码 | |
| 61 | + s.subspec 'QrCode' do |ss| | |
| 62 | + ss.source_files = 'CNLiveServices/Classes/QrCode/*.{h,m}' | |
| 63 | + end | |
| 64 | + | |
| 65 | + # 积分 | |
| 66 | + s.subspec 'Integral' do |ss| | |
| 67 | + ss.source_files = 'CNLiveServices/Classes/Integral/*.{h,m}' | |
| 68 | + end | |
| 69 | + | |
| 65 | 70 | # s.resource_bundles = { |
| 66 | 71 | # 'CNLiveServices' => ['CNLiveServices/Assets/*.png'] |
| 67 | 72 | # } | ... | ... |
CNLiveServices/Classes/CNLiveServices.h
| ... | ... | @@ -11,23 +11,41 @@ |
| 11 | 11 | |
| 12 | 12 | #import <CNLiveBeeHive/CNLiveBeeHive.h> |
| 13 | 13 | |
| 14 | -// 页面跳转 | |
| 15 | -#import "CNLivePageJumpManager.h" | |
| 16 | - | |
| 14 | +#pragma mark - 首页 | |
| 17 | 15 | // 首页 |
| 18 | 16 | #import "CNLiveNetHomeServiceProtocol.h" |
| 17 | +#import "CNLiveSendPositionProtocol.h" | |
| 19 | 18 | |
| 19 | +#pragma mark - 分类/视讯 | |
| 20 | 20 | // 分类/视讯 |
| 21 | 21 | #import "CNLiveCategoryServiceProtocol.h" |
| 22 | 22 | |
| 23 | +#pragma mark - 服务 | |
| 23 | 24 | // 服务 |
| 24 | 25 | #import "CNLiveServiceServiceProtocol.h" |
| 25 | 26 | |
| 27 | +#pragma mark - 我的 | |
| 26 | 28 | // 我的 |
| 27 | 29 | #import "CNLiveMineServiceProtocol.h" |
| 28 | - | |
| 30 | +// 订单 | |
| 31 | +#import "CNLiveOrderServiceProtocol.h" | |
| 32 | +// 设置 | |
| 33 | +#import "CNLiveSettingServiceProtocol.h" | |
| 34 | +// 我的收藏 | |
| 35 | +#import "CNLiveCollectionServiceProtocol.h" | |
| 36 | +// 补贴余额 | |
| 37 | +#import "CNLiveBalanceServiceProtocol.h" | |
| 38 | + | |
| 39 | +#pragma mark - 登录 | |
| 29 | 40 | // 登录 |
| 30 | 41 | #import "CNLiveLoginServiceProtocol.h" |
| 31 | 42 | |
| 43 | +#pragma mark - 二维码 | |
| 44 | +// 二维码 | |
| 45 | +#import "CNLiveQrCodeServiceProtocol.h" | |
| 46 | + | |
| 47 | +#pragma mark - 积分 | |
| 48 | +// 积分 | |
| 49 | +#import "CNLiveIntegralServiceProtocol.h" | |
| 32 | 50 | |
| 33 | 51 | #endif /* CNLiveServices_h */ | ... | ... |
CNLiveServices/Classes/Category/CNLiveCategoryServiceProtocol.h
| ... | ... | @@ -6,6 +6,10 @@ |
| 6 | 6 | // Copyright (c) 2019 153993236@qq.com. All rights reserved. |
| 7 | 7 | // |
| 8 | 8 | |
| 9 | +/** | |
| 10 | + * 资讯/分类模块 | |
| 11 | + */ | |
| 12 | + | |
| 9 | 13 | #import <Foundation/Foundation.h> |
| 10 | 14 | #import <UIKit/UIKit.h> |
| 11 | 15 | #import "BHServiceProtocol.h" |
| ... | ... | @@ -14,6 +18,6 @@ |
| 14 | 18 | @optional |
| 15 | 19 | - (UIViewController *)getCategoryViewController; |
| 16 | 20 | |
| 17 | -- (void)selectItem:(NSInteger)item; | |
| 21 | +- (void)selectRowItem:(NSInteger)rowItem columnItem:(NSInteger)columnItem; | |
| 18 | 22 | |
| 19 | 23 | @end | ... | ... |
CNLiveServices/Classes/Integral/CNLiveIntegralServiceProtocol.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveIntegralServiceProtocol.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 | +/** | |
| 10 | + * 积分模块 | |
| 11 | + */ | |
| 12 | + | |
| 13 | +#import <Foundation/Foundation.h> | |
| 14 | +#import <UIKit/UIKit.h> | |
| 15 | +#import "BHServiceProtocol.h" | |
| 16 | + | |
| 17 | +#pragma mark - Block | |
| 18 | +typedef void(^RequestCompleted) (BOOL isSuccess, NSString *desc, NSString *score); | |
| 19 | + | |
| 20 | +#pragma mark - 协议 | |
| 21 | +// 增加积分 | |
| 22 | +@protocol CNLiveAddScoreViewDelegate <NSObject> | |
| 23 | +@optional | |
| 24 | +- (void)loginNow; | |
| 25 | +@end | |
| 26 | + | |
| 27 | +@protocol CNLiveIntegralServiceProtocol <NSObject, BHServiceProtocol> | |
| 28 | + | |
| 29 | +#pragma mark - 任务列表 | |
| 30 | +// 任务列表 | |
| 31 | +- (UIViewController *)getTaskListViewController; | |
| 32 | +- (void)pushToTaskListViewController; | |
| 33 | +- (void)pushToTaskListViewController:(NSString *)isFrom; | |
| 34 | + | |
| 35 | +#pragma mark - 增加积分 | |
| 36 | +// 请求 | |
| 37 | +//延时调用 | |
| 38 | +- (void)requestTime:(NSInteger)time taskId:(NSString *)taskId contentId:(NSString *)contentId block:(RequestCompleted _Nullable)block; | |
| 39 | +//取消延时 | |
| 40 | +- (void)cancelSendRequest; | |
| 41 | + | |
| 42 | +//首次登录加积分 | |
| 43 | +- (void)firstLogin:(RequestCompleted _Nullable)block; | |
| 44 | + | |
| 45 | +//直接调用 | |
| 46 | +- (void)requestTaskId:(NSString *)taskId contentId:(NSString *)contentId block:(RequestCompleted _Nullable)block; | |
| 47 | + | |
| 48 | + | |
| 49 | +// 视图 | |
| 50 | +// 默认展示添加积分视图 | |
| 51 | +- (void)showAddScoreViewWithDesc:(NSString *)desc score:(NSString *)score; | |
| 52 | + | |
| 53 | +// 游客模式浏览加积分 | |
| 54 | +- (void)showAddScoreViewWithDesc:(NSString *)desc score:(NSString *)score delegate:(id<CNLiveAddScoreViewDelegate>)delegate; | |
| 55 | + | |
| 56 | +- (void)hideAddScoreView; | |
| 57 | + | |
| 58 | +#pragma mark - 金币下落 | |
| 59 | +// 游客模式浏览加积分 | |
| 60 | +- (void)showGoldWhereaboutsViewWithDesc:(NSString *)desc delegate:(id)delegate; | |
| 61 | + | |
| 62 | +// 默认展示添加积分视图 | |
| 63 | +- (void)showGoldWhereaboutsViewWithDesc:(NSString *)desc score:(NSString *)score; | |
| 64 | + | |
| 65 | +// 默认签到 | |
| 66 | +- (void)showGoldWhereaboutsViewWithDic:(NSDictionary *)dic; | |
| 67 | + | |
| 68 | +- (void)hideGoldWhereaboutsView; | |
| 69 | + | |
| 70 | +#pragma mark - 签到 | |
| 71 | +- (void)showSignInViewWithDic:(NSDictionary *)dic; | |
| 72 | + | |
| 73 | +@end | |
| 74 | + | ... | ... |
CNLiveServices/Classes/Login/CNLiveLoginServiceProtocol.h
| ... | ... | @@ -6,6 +6,10 @@ |
| 6 | 6 | // Copyright (c) 2019 153993236@qq.com. All rights reserved. |
| 7 | 7 | // |
| 8 | 8 | |
| 9 | +/** | |
| 10 | + * 登录模块 | |
| 11 | + */ | |
| 12 | + | |
| 9 | 13 | #import <Foundation/Foundation.h> |
| 10 | 14 | #import <UIKit/UIKit.h> |
| 11 | 15 | #import "BHServiceProtocol.h" |
| ... | ... | @@ -14,10 +18,10 @@ |
| 14 | 18 | @optional |
| 15 | 19 | - (UIViewController *)getLoginViewController; |
| 16 | 20 | - (void)pushToLoginViewController; |
| 17 | -- (void)pushToLoginViewController:(BOOL)isShow; | |
| 21 | +- (void)pushToLoginViewController:(BOOL)isShowClose; | |
| 18 | 22 | |
| 19 | 23 | - (void)presentToLoginViewController; |
| 20 | -- (void)presentToLoginViewController:(BOOL)isShow; | |
| 24 | +- (void)presentToLoginViewController:(BOOL)isShowClose; | |
| 21 | 25 | |
| 22 | 26 | - (void)loginIfNeedWithCompleteBlock:(void (^)(BOOL))completeBlock; |
| 23 | 27 | ... | ... |
CNLiveServices/Classes/Manager/CNLivePageJumpManager.h deleted
100644 → 0
| 1 | -// | |
| 2 | -// CNLivePageJumpManager.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 <Foundation/Foundation.h> | |
| 10 | -#import <UIKit/UIKit.h> | |
| 11 | - | |
| 12 | -NS_ASSUME_NONNULL_BEGIN | |
| 13 | - | |
| 14 | -@interface CNLivePageJumpManager : NSObject | |
| 15 | -// 获取跟控制器 | |
| 16 | -+ (UIViewController *)getRootController; | |
| 17 | - | |
| 18 | -// 获取导航控制器 | |
| 19 | -+ (UINavigationController *)getNavigationController; | |
| 20 | - | |
| 21 | -// jump | |
| 22 | -+ (void)jumpViewController:(UIViewController *)controller; | |
| 23 | -+ (void)jumpViewController:(UIViewController *)controller animated:(BOOL)animated; | |
| 24 | - | |
| 25 | -// back | |
| 26 | -+ (void)backViewController; | |
| 27 | -+ (void)backViewController:(BOOL)animated; | |
| 28 | - | |
| 29 | -// push | |
| 30 | -+ (void)pushViewController:(UIViewController *)controller; | |
| 31 | -+ (void)pushViewController:(UIViewController *)controller animated:(BOOL)animated; | |
| 32 | - | |
| 33 | -// pop | |
| 34 | -+ (void)popViewController; | |
| 35 | -+ (void)popViewControllerAnimated:(BOOL)animated; | |
| 36 | -+ (void)popToViewController:(UIViewController *)viewController animated:(BOOL)animated; | |
| 37 | -+ (void)popToRootViewControllerAnimated:(BOOL)animated; | |
| 38 | - | |
| 39 | -// present | |
| 40 | -+ (void)presentViewController:(UIViewController *)controller; | |
| 41 | -+ (void)presentViewController:(UIViewController *)controller animated:(BOOL)animated; | |
| 42 | -+ (void)presentViewController:(UIViewController *)controller animated:(BOOL)animated completion:(nullable void(^)(void))completion; | |
| 43 | - | |
| 44 | -// dismiss | |
| 45 | -+ (void)dismissViewController; | |
| 46 | -+ (void)dismissViewControllerAnimated:(BOOL)animated completion:(nullable void(^)(void))completion; | |
| 47 | - | |
| 48 | -@end | |
| 49 | - | |
| 50 | -NS_ASSUME_NONNULL_END |
CNLiveServices/Classes/Manager/CNLivePageJumpManager.m deleted
100644 → 0
| 1 | -// | |
| 2 | -// CNLivePageJumpManager.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 "CNLivePageJumpManager.h" | |
| 10 | - | |
| 11 | -@interface CNLivePageJumpManager () | |
| 12 | - | |
| 13 | -@end | |
| 14 | - | |
| 15 | -@implementation CNLivePageJumpManager | |
| 16 | -#pragma mark - 获取跟控制器 | |
| 17 | -+ (UIViewController *)getRootController{ | |
| 18 | - UIViewController *vc = [UIApplication sharedApplication].delegate.window.rootViewController; | |
| 19 | - return vc; | |
| 20 | -} | |
| 21 | - | |
| 22 | -#pragma mark - 获取导航控制器 | |
| 23 | -+ (UINavigationController *)getNavigationController{ | |
| 24 | - UIViewController *vc = [UIApplication sharedApplication].delegate.window.rootViewController; | |
| 25 | - if ([vc isKindOfClass:[UINavigationController class]]){ | |
| 26 | - return (UINavigationController *)vc; | |
| 27 | - } | |
| 28 | - else if ([vc isKindOfClass:[UITabBarController class]]){ | |
| 29 | - UIViewController *select = [((UITabBarController *)vc) selectedViewController]; | |
| 30 | - if ([select isKindOfClass:[UINavigationController class]]){ | |
| 31 | - return (UINavigationController *)select; | |
| 32 | - } | |
| 33 | - } | |
| 34 | - return nil; | |
| 35 | -} | |
| 36 | - | |
| 37 | -#pragma mark - jump | |
| 38 | -+ (void)jumpViewController:(UIViewController *)controller{ | |
| 39 | - [self jumpViewController:controller animated:YES]; | |
| 40 | -} | |
| 41 | -+ (void)jumpViewController:(UIViewController *)controller animated:(BOOL)animated{ | |
| 42 | - UINavigationController *nav = [self getNavigationController]; | |
| 43 | - if(nav){ | |
| 44 | - [nav pushViewController:controller animated:animated]; | |
| 45 | - } | |
| 46 | - else{ | |
| 47 | - UIViewController *vc = [UIApplication sharedApplication].delegate.window.rootViewController; | |
| 48 | - [vc presentViewController:controller animated:animated completion:nil]; | |
| 49 | - } | |
| 50 | -} | |
| 51 | - | |
| 52 | -#pragma mark - back | |
| 53 | -+ (void)backViewController{ | |
| 54 | - [self backViewController:YES]; | |
| 55 | -} | |
| 56 | -+ (void)backViewController:(BOOL)animated{ | |
| 57 | - UINavigationController *nav = [self getNavigationController]; | |
| 58 | - if(nav){ | |
| 59 | - [nav popViewControllerAnimated:animated]; | |
| 60 | - } | |
| 61 | - else{ | |
| 62 | - UIViewController *vc = [UIApplication sharedApplication].delegate.window.rootViewController; | |
| 63 | - [vc dismissViewControllerAnimated:animated completion:nil]; | |
| 64 | - } | |
| 65 | -} | |
| 66 | - | |
| 67 | -#pragma mark - Push | |
| 68 | -+ (void)pushViewController:(UIViewController *)controller{ | |
| 69 | - [self pushViewController:controller animated:YES]; | |
| 70 | -} | |
| 71 | -+ (void)pushViewController:(UIViewController *)controller animated:(BOOL)animated{ | |
| 72 | - [[self getNavigationController] pushViewController:controller animated:animated]; | |
| 73 | -} | |
| 74 | - | |
| 75 | -#pragma mark - Pop | |
| 76 | -+ (void)popViewController{ | |
| 77 | - [self popViewControllerAnimated:YES]; | |
| 78 | -} | |
| 79 | -+ (void)popViewControllerAnimated:(BOOL)animated{ | |
| 80 | - [[self getNavigationController] popViewControllerAnimated:animated]; | |
| 81 | -} | |
| 82 | -+ (void)popToViewController:(UIViewController *)viewController animated:(BOOL)animated{ | |
| 83 | - [[self getNavigationController] popToViewController:viewController animated:animated]; | |
| 84 | -} | |
| 85 | -+ (void)popToRootViewControllerAnimated:(BOOL)animated{ | |
| 86 | - [[self getNavigationController] popToRootViewControllerAnimated:animated]; | |
| 87 | -} | |
| 88 | - | |
| 89 | -#pragma mark - Present | |
| 90 | -+ (void)presentViewController:(UIViewController *)controller{ | |
| 91 | - [self presentViewController:controller animated:YES]; | |
| 92 | -} | |
| 93 | -+ (void)presentViewController:(UIViewController *)controller animated:(BOOL)animated{ | |
| 94 | - [self presentViewController:controller animated:animated completion:nil]; | |
| 95 | -} | |
| 96 | -+ (void)presentViewController:(UIViewController *)controller animated:(BOOL)animated completion:(nullable void(^)(void))completion{ | |
| 97 | - [[self getNavigationController] presentViewController:controller animated:animated completion:completion]; | |
| 98 | -} | |
| 99 | - | |
| 100 | -#pragma mark - Dismiss | |
| 101 | -+ (void)dismissViewController{ | |
| 102 | - [self dismissViewControllerAnimated:YES completion:nil]; | |
| 103 | -} | |
| 104 | -+ (void)dismissViewControllerAnimated:(BOOL)animated completion:(nullable void(^)(void))completion{ | |
| 105 | - [[self getNavigationController] dismissViewControllerAnimated:animated completion:completion]; | |
| 106 | - | |
| 107 | -} | |
| 108 | - | |
| 109 | -@end |
CNLiveServices/Classes/Mine/CNLiveBalanceServiceProtocol.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveBalanceServiceProtocol.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 | +/** | |
| 10 | + * 余额模块 | |
| 11 | + */ | |
| 12 | + | |
| 13 | +#import <Foundation/Foundation.h> | |
| 14 | +#import <UIKit/UIKit.h> | |
| 15 | +#import "BHServiceProtocol.h" | |
| 16 | + | |
| 17 | +@protocol CNLiveBalanceServiceProtocol <NSObject, BHServiceProtocol> | |
| 18 | + | |
| 19 | +// 补贴余额 | |
| 20 | +- (UIViewController *)getBalanceViewControllerWithType:(NSString *)type ID:(NSString *)ID; | |
| 21 | + | |
| 22 | +- (void)pushToBalanceViewControllerWithType:(NSString *)type ID:(NSString *)ID; | |
| 23 | + | |
| 24 | + | |
| 25 | +@end | ... | ... |
CNLiveServices/Classes/Mine/CNLiveCollectionServiceProtocol.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveCollectionServiceProtocol.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 | +/** | |
| 10 | + * 我的收藏模块 | |
| 11 | + */ | |
| 12 | + | |
| 13 | +#import <Foundation/Foundation.h> | |
| 14 | +#import <UIKit/UIKit.h> | |
| 15 | +#import "BHServiceProtocol.h" | |
| 16 | + | |
| 17 | +@protocol CNLiveCollectionServiceProtocol <NSObject, BHServiceProtocol> | |
| 18 | + | |
| 19 | +// 我的收藏 | |
| 20 | +- (UIViewController *)getCollectionViewController; | |
| 21 | +- (void)pushToCollectionViewController; | |
| 22 | + | |
| 23 | + | |
| 24 | +@end | ... | ... |
CNLiveServices/Classes/Mine/CNLiveMineServiceProtocol.h
CNLiveServices/Classes/Mine/CNLiveOrderServiceProtocol.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveOrderServiceProtocol.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 | +/** | |
| 10 | + * 订单模块 | |
| 11 | + */ | |
| 12 | + | |
| 13 | +#import <Foundation/Foundation.h> | |
| 14 | +#import <UIKit/UIKit.h> | |
| 15 | +#import "BHServiceProtocol.h" | |
| 16 | + | |
| 17 | +@protocol CNLiveOrderServiceProtocol <NSObject, BHServiceProtocol> | |
| 18 | + | |
| 19 | +// 订单 | |
| 20 | +- (UIViewController *)getOrderViewController; | |
| 21 | +- (void)pushToOrderViewController:(NSInteger)index; | |
| 22 | + | |
| 23 | +// 售后 | |
| 24 | +- (UIViewController *)getRefundViewController; | |
| 25 | +- (void)pushToRefundViewController:(NSInteger)index; | |
| 26 | + | |
| 27 | +// 地址 | |
| 28 | +- (UIViewController *)getAddressViewController; | |
| 29 | +- (void)pushToAddressViewController; | |
| 30 | + | |
| 31 | +// 我的礼盒 | |
| 32 | +- (UIViewController *)getGiftBoxViewController; | |
| 33 | +- (void)pushToGiftBoxViewController; | |
| 34 | + | |
| 35 | +@end | ... | ... |
CNLiveServices/Classes/Mine/CNLiveSettingServiceProtocol.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveSettingServiceProtocol.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 | +/** | |
| 10 | + * 设置模块 | |
| 11 | + */ | |
| 12 | + | |
| 13 | +#import <Foundation/Foundation.h> | |
| 14 | +#import <UIKit/UIKit.h> | |
| 15 | +#import "BHServiceProtocol.h" | |
| 16 | + | |
| 17 | +@protocol CNLiveSettingServiceProtocol <NSObject, BHServiceProtocol> | |
| 18 | + | |
| 19 | +- (UIViewController *)getSettingViewController; | |
| 20 | +- (void)pushToSettingViewController; | |
| 21 | + | |
| 22 | +@end | ... | ... |
CNLiveServices/Classes/NetHome/CNLiveNetHomeServiceProtocol.h
CNLiveServices/Classes/NetHome/CNLiveSendPositionProtocol.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveSendPositionProtocol.h | |
| 3 | +// CNLiveBeeHive | |
| 4 | +// | |
| 5 | +// Created by open on 2019/11/22. | |
| 6 | +// | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * 发送位置模块 | |
| 10 | + */ | |
| 11 | + | |
| 12 | +#import <Foundation/Foundation.h> | |
| 13 | +#import "BHServiceProtocol.h" | |
| 14 | +#import <MapKit/MapKit.h> | |
| 15 | + | |
| 16 | +//////发送位置delegate/////// | |
| 17 | +@protocol CNLiveMapPositionDelegate <NSObject> | |
| 18 | + | |
| 19 | +- (void)sendCurrentLocation:(CLLocationCoordinate2D)location image:(NSString *)img addressName:(NSArray *)arr; | |
| 20 | +- (void)forwardingLocation:(CLLocationCoordinate2D)location image:(NSString *)img addressName:(NSArray *)arr; | |
| 21 | +@end | |
| 22 | + | |
| 23 | +//////////// | |
| 24 | + | |
| 25 | +@protocol CNLiveSendPositionProtocol <NSObject,BHServiceProtocol> | |
| 26 | + | |
| 27 | +- (void)pushToMapViewController:(id)delegate; | |
| 28 | +//位置信息详情VC | |
| 29 | +- (void)pushToMapDetailViewController:(id)delegate location:(CLLocationCoordinate2D)location image:(NSString *)img addressName:(NSArray *)arr; | |
| 30 | +@end | |
| 31 | + | ... | ... |
CNLiveServices/Classes/QrCode/CNLiveQrCodeServiceProtocol.h
0 → 100644
| 1 | +// | |
| 2 | +// CNLiveQrCodeServiceProtocol.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 | +/** | |
| 10 | + * 二维码模块 | |
| 11 | + */ | |
| 12 | + | |
| 13 | +#import <Foundation/Foundation.h> | |
| 14 | +#import <UIKit/UIKit.h> | |
| 15 | +#import "BHServiceProtocol.h" | |
| 16 | + | |
| 17 | +@protocol CNLiveQrCodeServiceProtocol <NSObject, BHServiceProtocol> | |
| 18 | + | |
| 19 | +// 扫一扫 | |
| 20 | +- (UIViewController *)getScanQrCodeController; | |
| 21 | +- (void)pushToScanQrCodeController:(BOOL)isMyCode; | |
| 22 | + | |
| 23 | +// 我的二维码 | |
| 24 | +- (UIViewController *)getMyQrCodeController; | |
| 25 | +- (void)pushToMyQrCodeController:(BOOL)isScanCode; | |
| 26 | + | |
| 27 | +// 群组二维码 | |
| 28 | +- (UIViewController *)getGroupQrCodeController; | |
| 29 | +- (void)pushToGroupQrCodeController; | |
| 30 | + | |
| 31 | +// 生成二维码 | |
| 32 | +- (UIViewController *)getGenerateQrCodeController; | |
| 33 | +- (void)pushToGenerateQrCodeController:(NSString *)ID; | |
| 34 | + | |
| 35 | +@end | ... | ... |
CNLiveServices/Classes/Service/CNLiveServiceServiceProtocol.h
Example/CNLiveServices.xcodeproj/project.pbxproj
| ... | ... | @@ -365,12 +365,10 @@ |
| 365 | 365 | inputPaths = ( |
| 366 | 366 | "${PODS_ROOT}/Target Support Files/Pods-CNLiveServices_Example/Pods-CNLiveServices_Example-frameworks.sh", |
| 367 | 367 | "${BUILT_PRODUCTS_DIR}/CNLiveBeeHive/CNLiveBeeHive.framework", |
| 368 | - "${BUILT_PRODUCTS_DIR}/CNLiveServices/CNLiveServices.framework", | |
| 369 | 368 | ); |
| 370 | 369 | name = "[CP] Embed Pods Frameworks"; |
| 371 | 370 | outputPaths = ( |
| 372 | 371 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBeeHive.framework", |
| 373 | - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveServices.framework", | |
| 374 | 372 | ); |
| 375 | 373 | runOnlyForDeploymentPostprocessing = 0; |
| 376 | 374 | shellPath = /bin/sh; | ... | ... |