Skip to content

Commit 602a492

Browse files
author
karisli
committed
删除MTA
1 parent 86d5d75 commit 602a492

File tree

7 files changed

+9
-827
lines changed

7 files changed

+9
-827
lines changed

QCloudCOSXMLDemo/AppDelegate.m

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
#import <UserNotifications/UserNotifications.h>
1313
#import "SecretStorage.h"
14-
#import "MTAConfig.h"
1514
#import "QCloudMyBucketListCtor.h"
1615
//#import <QCloudCOSXML/QCloudLogManager.h>
1716
//#define USE_TEMPERATE_SECRET
@@ -29,7 +28,7 @@ @interface AppDelegate () <QCloudSignatureProvider>
2928
@implementation AppDelegate
3029

3130
- (void) fenceQueue:(QCloudCredentailFenceQueue *)queue requestCreatorWithContinue:(QCloudCredentailFenceQueueContinue)continueBlock
32-
{
31+
{
3332
QCloudCredential* credential = [QCloudCredential new];
3433
credential.secretID = @"secretID";
3534
credential.secretKey = @"secretKey";
@@ -50,11 +49,11 @@ - (void) signatureWithFields:(QCloudSignatureFields*)fileds
5049
continueBlock(nil, error);
5150
} else {
5251
QCloudSignature* signature = [creator signatureForData:urlRequst];
53-
continueBlock(signature, nil);
52+
continueBlock(signature, nil);
5453
}
5554
}];
5655
#else
57-
QCloudCredential* credential = [QCloudCredential new];
56+
QCloudCredential* credential = [QCloudCredential new];
5857
credential.secretID = [SecretStorage sharedInstance].secretID;
5958
credential.secretKey = [SecretStorage sharedInstance].secretKey;
6059
QCloudAuthentationV5Creator* creator = [[QCloudAuthentationV5Creator alloc] initWithCredential:credential];
@@ -72,7 +71,7 @@ - (void) setupCOSXMLShareService {
7271
endpoint.regionName = kRegion;
7372
endpoint.useHTTPS = YES;
7473
configuration.endpoint = endpoint;
75-
74+
7675
[QCloudCOSXMLService registerDefaultCOSXMLWithConfiguration:configuration];
7776
[QCloudCOSTransferMangerService registerDefaultCOSTransferMangerWithConfiguration:configuration];
7877

@@ -82,21 +81,20 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
8281
[self setupCOSXMLShareService];
8382
self.credentialFenceQueue = [QCloudCredentailFenceQueue new];
8483
self.credentialFenceQueue.delegate = self;
85-
[[TACMTAConfig getInstance] setDebugEnable:YES];
86-
84+
8785
[QCloudCOSXMLConfiguration sharedInstance].currentRegion = kRegion;
8886
QCloudServiceConfiguration* configuration = [[QCloudCOSXMLService defaultCOSXML].configuration copy];
8987
configuration.endpoint.regionName = kRegion;
9088
[QCloudCOSTransferMangerService registerCOSTransferMangerWithConfiguration:configuration withKey:kRegion];
91-
89+
9290
[QCloudCOSXMLService registerCOSXMLWithConfiguration:configuration withKey:kRegion];
93-
91+
9492
QCloudMyBucketListCtor * bucketList = [[QCloudMyBucketListCtor alloc]init];
9593
_window = [[UIWindow alloc]initWithFrame:SCREEN_FRAME];
9694
[_window makeKeyAndVisible];
9795
UINavigationController * navRoot = [[UINavigationController alloc]initWithRootViewController:bucketList];
9896
_window.rootViewController = navRoot;
99-
97+
10098
return YES;
10199
}
102100
//后台上传要实现该方法

QCloudCore.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ QCloudCore--腾讯云iOS-SDK Foundation。提供腾讯云iOS相关SDK的基础
3838

3939
s.default_subspec = 'Default'
4040
s.subspec 'Default' do |default|
41-
default.source_files = 'QCloudCore/Classes/Base/**/*','QCloudCore/Classes/QualityAssurance/*'
41+
default.source_files = 'QCloudCore/Classes/Base/**/*'
4242
default.vendored_frameworks = 'QCloudCore/Classes/BeaconFramework/BeaconAPI_Base.framework','QCloudCore/Classes/BeaconFramework/BeaconId.framework'
4343
end
4444
s.subspec 'WithoutMTA' do |withoutMTA|

QCloudCore/Classes/QualityAssurance/MTA+Account.h

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)