Commit e685e882265968da01cbe1d7ada62f2bf08e8a4a
1 parent
fa7e4205
no message
Showing
2 changed files
with
14 additions
and
4 deletions
Example/CNLiveUserAgreementManager.xcodeproj/project.pbxproj
| ... | ... | @@ -39,7 +39,7 @@ |
| 39 | 39 | /* Begin PBXFileReference section */ |
| 40 | 40 | 1B87C1DF59CB27EC58BDD6F0 /* Pods-CNLiveUserAgreementManager_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveUserAgreementManager_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CNLiveUserAgreementManager_Example/Pods-CNLiveUserAgreementManager_Example.debug.xcconfig"; sourceTree = "<group>"; }; |
| 41 | 41 | 1BCDB240DCC82EE69DC172AF /* Pods-CNLiveUserAgreementManager_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveUserAgreementManager_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-CNLiveUserAgreementManager_Example/Pods-CNLiveUserAgreementManager_Example.release.xcconfig"; sourceTree = "<group>"; }; |
| 42 | - 3061390C7E2FF1FCDFBE251C /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; name = README.md; path = ../README.md; sourceTree = "<group>"; }; | |
| 42 | + 3061390C7E2FF1FCDFBE251C /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; }; | |
| 43 | 43 | 34D543342DE043BCD97B0DD6 /* Pods-CNLiveUserAgreementManager_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveUserAgreementManager_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-CNLiveUserAgreementManager_Tests/Pods-CNLiveUserAgreementManager_Tests.release.xcconfig"; sourceTree = "<group>"; }; |
| 44 | 44 | 6003F58A195388D20070C39A /* CNLiveUserAgreementManager_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CNLiveUserAgreementManager_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; |
| 45 | 45 | 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; |
| ... | ... | @@ -61,10 +61,10 @@ |
| 61 | 61 | 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = "<group>"; }; |
| 62 | 62 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = "<group>"; }; |
| 63 | 63 | 71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; |
| 64 | - 7A1C126D9A48DA93CC000266 /* CNLiveUserAgreementManager.podspec */ = {isa = PBXFileReference; includeInIndex = 1; name = CNLiveUserAgreementManager.podspec; path = ../CNLiveUserAgreementManager.podspec; sourceTree = "<group>"; }; | |
| 64 | + 7A1C126D9A48DA93CC000266 /* CNLiveUserAgreementManager.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = CNLiveUserAgreementManager.podspec; path = ../CNLiveUserAgreementManager.podspec; sourceTree = "<group>"; }; | |
| 65 | 65 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; |
| 66 | 66 | 919A11E2C0D5C88E34C935D4 /* Pods_CNLiveUserAgreementManager_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNLiveUserAgreementManager_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; |
| 67 | - AACA5F9B3491663272E37D89 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; }; | |
| 67 | + AACA5F9B3491663272E37D89 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; }; | |
| 68 | 68 | B968693F48B36FE100161DD7 /* Pods_CNLiveUserAgreementManager_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNLiveUserAgreementManager_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; |
| 69 | 69 | F05340994516635CF3C0356C /* Pods-CNLiveUserAgreementManager_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveUserAgreementManager_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CNLiveUserAgreementManager_Tests/Pods-CNLiveUserAgreementManager_Tests.debug.xcconfig"; sourceTree = "<group>"; }; |
| 70 | 70 | /* End PBXFileReference section */ |
| ... | ... | @@ -248,6 +248,9 @@ |
| 248 | 248 | LastUpgradeCheck = 0720; |
| 249 | 249 | ORGANIZATIONNAME = "153993236@qq.com"; |
| 250 | 250 | TargetAttributes = { |
| 251 | + 6003F589195388D20070C39A = { | |
| 252 | + DevelopmentTeam = 94X49GG3ZW; | |
| 253 | + }; | |
| 251 | 254 | 6003F5AD195388D20070C39A = { |
| 252 | 255 | TestTargetID = 6003F589195388D20070C39A; |
| 253 | 256 | }; |
| ... | ... | @@ -526,6 +529,7 @@ |
| 526 | 529 | baseConfigurationReference = 1B87C1DF59CB27EC58BDD6F0 /* Pods-CNLiveUserAgreementManager_Example.debug.xcconfig */; |
| 527 | 530 | buildSettings = { |
| 528 | 531 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
| 532 | + DEVELOPMENT_TEAM = 94X49GG3ZW; | |
| 529 | 533 | GCC_PRECOMPILE_PREFIX_HEADER = YES; |
| 530 | 534 | GCC_PREFIX_HEADER = "CNLiveUserAgreementManager/CNLiveUserAgreementManager-Prefix.pch"; |
| 531 | 535 | INFOPLIST_FILE = "CNLiveUserAgreementManager/CNLiveUserAgreementManager-Info.plist"; |
| ... | ... | @@ -541,6 +545,7 @@ |
| 541 | 545 | baseConfigurationReference = 1BCDB240DCC82EE69DC172AF /* Pods-CNLiveUserAgreementManager_Example.release.xcconfig */; |
| 542 | 546 | buildSettings = { |
| 543 | 547 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
| 548 | + DEVELOPMENT_TEAM = 94X49GG3ZW; | |
| 544 | 549 | GCC_PRECOMPILE_PREFIX_HEADER = YES; |
| 545 | 550 | GCC_PREFIX_HEADER = "CNLiveUserAgreementManager/CNLiveUserAgreementManager-Prefix.pch"; |
| 546 | 551 | INFOPLIST_FILE = "CNLiveUserAgreementManager/CNLiveUserAgreementManager-Info.plist"; | ... | ... |
Example/CNLiveUserAgreementManager/CNLiveViewController.m
| ... | ... | @@ -7,7 +7,7 @@ |
| 7 | 7 | // |
| 8 | 8 | |
| 9 | 9 | #import "CNLiveViewController.h" |
| 10 | - | |
| 10 | +#import "CNUserAgreementManager.h" | |
| 11 | 11 | @interface CNLiveViewController () |
| 12 | 12 | |
| 13 | 13 | @end |
| ... | ... | @@ -18,6 +18,11 @@ |
| 18 | 18 | { |
| 19 | 19 | [super viewDidLoad]; |
| 20 | 20 | // Do any additional setup after loading the view, typically from a nib. |
| 21 | + [[CNUserAgreementManager shared] getAgreementH5WithType:CNAgreementUser success:^(NSString * _Nonnull h5, NSString * _Nonnull title) { | |
| 22 | + | |
| 23 | + } failure:^(NSError * _Nonnull error) { | |
| 24 | + | |
| 25 | + }]; | |
| 21 | 26 | } |
| 22 | 27 | |
| 23 | 28 | - (void)didReceiveMemoryWarning | ... | ... |