Commit 0928f4d14074b17fcf788a9784de42d114bc5130

Authored by 梁星国
1 parent 065d5da1

提交

CNLiveDemoXGTestModule.podspec
@@ -39,4 +39,7 @@ TODO: Add long description of the pod here. @@ -39,4 +39,7 @@ TODO: Add long description of the pod here.
39 # s.public_header_files = 'Pod/Classes/**/*.h' 39 # s.public_header_files = 'Pod/Classes/**/*.h'
40 # s.frameworks = 'UIKit', 'MapKit' 40 # s.frameworks = 'UIKit', 'MapKit'
41 # s.dependency 'AFNetworking', '~> 2.3' 41 # s.dependency 'AFNetworking', '~> 2.3'
  42 +
  43 + s.dependency 'CNLiveBeeHive', '~> 0.1.1'
  44 +
42 end 45 end
CNLiveDemoXGTestModule/Classes/CNLiveCameraServiceProtocol.h 0 → 100644
  1 +//
  2 +// CNLiveCameraServiceProtocol.h
  3 +// CNLiveDemoXGTestModule
  4 +//
  5 +// Created by 梁星国 on 2019/11/5.
  6 +//
  7 +
  8 +#import <Foundation/Foundation.h>
  9 +
  10 +NS_ASSUME_NONNULL_BEGIN
  11 +
  12 +@protocol CNLiveCameraServiceProtocol <NSObject>
  13 +@optional
  14 +/** 获取我的页面信息 */
  15 +- (NSString *)mineInfoStr;
  16 +
  17 +/** 跳转 */
  18 +- (UIViewController *)mineViewController;
  19 +
  20 +
  21 +
  22 +@end
  23 +
  24 +
  25 +NS_ASSUME_NONNULL_END
CNLiveDemoXGTestModule/Classes/CNLiveXGTestModuleController.h 0 → 100644
  1 +//
  2 +// CNLiveXGTestModuleController.h
  3 +// CNLiveDemoXGTestModule
  4 +//
  5 +// Created by 梁星国 on 2019/11/5.
  6 +//
  7 +
  8 +#import <UIKit/UIKit.h>
  9 +
  10 +NS_ASSUME_NONNULL_BEGIN
  11 +
  12 +@interface CNLiveXGTestModuleController : UIViewController
  13 +
  14 +- (void)updateShopInfo:(NSString *)shopInfo;
  15 +
  16 +@end
  17 +
  18 +NS_ASSUME_NONNULL_END
CNLiveDemoXGTestModule/Classes/CNLiveXGTestModuleController.m 0 → 100644
  1 +//
  2 +// CNLiveXGTestModuleController.m
  3 +// CNLiveDemoXGTestModule
  4 +//
  5 +// Created by 梁星国 on 2019/11/5.
  6 +//
  7 +
  8 +#import "CNLiveXGTestModuleController.h"
  9 +
  10 +@interface CNLiveXGTestModuleController ()
  11 +
  12 +@end
  13 +
  14 +@implementation CNLiveXGTestModuleController
  15 +
  16 +- (void)viewDidLoad {
  17 + [super viewDidLoad];
  18 + // Do any additional setup after loading the view.
  19 +
  20 +
  21 +
  22 + UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
  23 + [self.view addSubview:button];
  24 + [button setTitle:@"跳转" forState:UIControlStateNormal];
  25 + [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
  26 + [button setBackgroundColor:[UIColor yellowColor]];
  27 + [self.view addSubview:button];
  28 + button.frame = CGRectMake(100, 100, 100, 100);
  29 + [button addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
  30 +}
  31 +
  32 +
  33 +- (void)updateShopInfo:(NSString *)shopInfo
  34 +{
  35 + NSLog(@"\n[HomeVC]shopInfo:%@",shopInfo);
  36 +}
  37 +
  38 +
  39 +
  40 +
  41 +- (void)buttonAction:(UIButton *)btn {
  42 +
  43 +
  44 +
  45 +}
  46 +
  47 +/*
  48 +#pragma mark - Navigation
  49 +
  50 +// In a storyboard-based application, you will often want to do a little preparation before navigation
  51 +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  52 + // Get the new view controller using [segue destinationViewController].
  53 + // Pass the selected object to the new view controller.
  54 +}
  55 +*/
  56 +
  57 +@end
CNLiveDemoXGTestModule/Classes/CNLiveXGTestService.h 0 → 100644
  1 +//
  2 +// CNLiveXGTestService.h
  3 +// CNLiveDemoXGTestModule
  4 +//
  5 +// Created by 梁星国 on 2019/11/5.
  6 +//
  7 +
  8 +#import <Foundation/Foundation.h>
  9 +
  10 +
  11 +
  12 +NS_ASSUME_NONNULL_BEGIN
  13 +
  14 +@interface CNLiveXGTestService : NSObject
  15 +
  16 +@end
  17 +
  18 +NS_ASSUME_NONNULL_END
CNLiveDemoXGTestModule/Classes/CNLiveXGTestService.m 0 → 100644
  1 +//
  2 +// CNLiveXGTestService.m
  3 +// CNLiveDemoXGTestModule
  4 +//
  5 +// Created by 梁星国 on 2019/11/5.
  6 +//
  7 +
  8 +#import "CNLiveXGTestService.h"
  9 +#import "CNLiveXGTestModuleController.h"
  10 +#import "CNLiveCameraServiceProtocol.h"
  11 +
  12 +
  13 +@interface CNLiveXGTestService ()<CNLiveCameraServiceProtocol>
  14 +
  15 +/** homeVC */
  16 +@property (nonatomic ,strong) CNLiveXGTestModuleController * homeVC;
  17 +
  18 +@end
  19 +
  20 +@implementation CNLiveXGTestService
  21 +
  22 +
  23 +- (void)updateHomeShopInfo:(NSString *)shopInfo
  24 +{
  25 + CNLiveXGTestModuleController *vc = (CNLiveXGTestModuleController *)[self homeViewController];
  26 + [vc updateShopInfo:shopInfo];
  27 +}
  28 +
  29 +/** 进入视图控制器 */
  30 +- (UIViewController *)homeViewController
  31 +{
  32 + if (!_homeVC) {
  33 + _homeVC = [[CNLiveXGTestModuleController alloc] init];
  34 + }
  35 + return _homeVC;
  36 +}
  37 +
  38 +@end
CNLiveDemoXGTestModule/Classes/ReplaceMe.m deleted 100644 → 0
Example/CNLiveDemoXGTestModule.xcodeproj/project.pbxproj
@@ -247,6 +247,9 @@ @@ -247,6 +247,9 @@
247 LastUpgradeCheck = 0720; 247 LastUpgradeCheck = 0720;
248 ORGANIZATIONNAME = jyyjkt; 248 ORGANIZATIONNAME = jyyjkt;
249 TargetAttributes = { 249 TargetAttributes = {
  250 + 6003F589195388D20070C39A = {
  251 + DevelopmentTeam = 94X49GG3ZW;
  252 + };
250 6003F5AD195388D20070C39A = { 253 6003F5AD195388D20070C39A = {
251 TestTargetID = 6003F589195388D20070C39A; 254 TestTargetID = 6003F589195388D20070C39A;
252 }; 255 };
@@ -494,6 +497,7 @@ @@ -494,6 +497,7 @@
494 baseConfigurationReference = 5C015D2532603E19D746407C /* Pods-CNLiveDemoXGTestModule_Example.debug.xcconfig */; 497 baseConfigurationReference = 5C015D2532603E19D746407C /* Pods-CNLiveDemoXGTestModule_Example.debug.xcconfig */;
495 buildSettings = { 498 buildSettings = {
496 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 499 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  500 + DEVELOPMENT_TEAM = 94X49GG3ZW;
497 GCC_PRECOMPILE_PREFIX_HEADER = YES; 501 GCC_PRECOMPILE_PREFIX_HEADER = YES;
498 GCC_PREFIX_HEADER = "CNLiveDemoXGTestModule/CNLiveDemoXGTestModule-Prefix.pch"; 502 GCC_PREFIX_HEADER = "CNLiveDemoXGTestModule/CNLiveDemoXGTestModule-Prefix.pch";
499 INFOPLIST_FILE = "CNLiveDemoXGTestModule/CNLiveDemoXGTestModule-Info.plist"; 503 INFOPLIST_FILE = "CNLiveDemoXGTestModule/CNLiveDemoXGTestModule-Info.plist";
@@ -510,6 +514,7 @@ @@ -510,6 +514,7 @@
510 baseConfigurationReference = 4134E9CFD5AC0E271C0FFA7A /* Pods-CNLiveDemoXGTestModule_Example.release.xcconfig */; 514 baseConfigurationReference = 4134E9CFD5AC0E271C0FFA7A /* Pods-CNLiveDemoXGTestModule_Example.release.xcconfig */;
511 buildSettings = { 515 buildSettings = {
512 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 516 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  517 + DEVELOPMENT_TEAM = 94X49GG3ZW;
513 GCC_PRECOMPILE_PREFIX_HEADER = YES; 518 GCC_PRECOMPILE_PREFIX_HEADER = YES;
514 GCC_PREFIX_HEADER = "CNLiveDemoXGTestModule/CNLiveDemoXGTestModule-Prefix.pch"; 519 GCC_PREFIX_HEADER = "CNLiveDemoXGTestModule/CNLiveDemoXGTestModule-Prefix.pch";
515 INFOPLIST_FILE = "CNLiveDemoXGTestModule/CNLiveDemoXGTestModule-Info.plist"; 520 INFOPLIST_FILE = "CNLiveDemoXGTestModule/CNLiveDemoXGTestModule-Info.plist";