Skip to content

Commit

Permalink
Merge pull request #1591 from Microsoft/develop
Browse files Browse the repository at this point in the history
Merge into master
  • Loading branch information
iamclement authored May 3, 2019
2 parents 07be938 + 23c883d commit 1c6f396
Show file tree
Hide file tree
Showing 20 changed files with 36 additions and 20 deletions.
2 changes: 1 addition & 1 deletion AppCenter.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'AppCenter'
s.version = '2.0.0'
s.version = '2.0.1'

s.summary = 'Visual Studio App Center is your continuous integration, delivery and learning solution for iOS and macOS apps.'
s.description = <<-DESC
Expand Down
6 changes: 5 additions & 1 deletion AppCenter/AppCenter/Internals/HttpClient/Util/MSHttpUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ + (NSString *)hideSecret:(NSString *)secret {
+ (NSString *)hideAuthToken:(NSString *)token {

// Hide token value.
NSString *prefix = [[token componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] firstObject];
NSArray<NSString *> *tokenArray = [token componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];
if (tokenArray.count == 1) {
return @"***";
}
NSString *prefix = [tokenArray firstObject];
return [prefix stringByAppendingString:@" ***"];
}

Expand Down
12 changes: 12 additions & 0 deletions AppCenter/AppCenterTests/MSHttpUtilTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ - (void)testHideAuthToken {
assertThat(hiddenToken, is(@"Bearer ***"));
}

- (void)testHideAuthTokenThatHasNoSpaces {

// If
NSString *token = @"type%3Dresource%26ver%3D1%26sig%3pjGyKiHTIwDwAaZywx9xj1AkvbaA%2";

// When
NSString *hiddenToken = [MSHttpUtil hideAuthToken:token];

// Then
assertThat(hiddenToken, is(@"***"));
}

- (void)testIsNoInternetConnectionError {

// When
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# App Center SDK for iOS and macOS Change Log

## Version 2.0.0
## Version 2.0.1

Version 2.0.0 of the App Center SDK includes two new modules: Auth and Data. This version has a **breaking change**, it only supports Xcode 10.0.0+.
Version 2.0.1 of the App Center SDK includes two new modules: Auth and Data. This version has a **breaking change**, it only supports Xcode 10.0.0+.

### AppCenterAuth

Expand Down
2 changes: 1 addition & 1 deletion Config/Version.xcconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
BUILD_NUMBER = 1
VERSION_STRING = 2.0.0
VERSION_STRING = 2.0.1
2 changes: 1 addition & 1 deletion Documentation/iOS/AppCenter/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sdk: iphonesimulator
theme: ../../Themes/apple

module: AppCenter
module_version: 2.0.0
module_version: 2.0.1
author: Microsoft Corp
author_url: http://www.microsoft.com

Expand Down
2 changes: 1 addition & 1 deletion Documentation/iOS/AppCenterAnalytics/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sdk: iphonesimulator
theme: ../../Themes/apple

module: AppCenterAnalytics
module_version: 2.0.0
module_version: 2.0.1
author: Microsoft Corp
author_url: http://www.microsoft.com

Expand Down
2 changes: 1 addition & 1 deletion Documentation/iOS/AppCenterAuth/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sdk: iphonesimulator
theme: ../../Themes/apple

module: AppCenterAuth
module_version: 2.0.0
module_version: 2.0.1
author: Microsoft Corp
author_url: http://www.microsoft.com

Expand Down
2 changes: 1 addition & 1 deletion Documentation/iOS/AppCenterCrashes/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sdk: iphonesimulator
theme: ../../Themes/apple

module: AppCenterCrashes
module_version: 2.0.0
module_version: 2.0.1
author: Microsoft Corp
author_url: http://www.microsoft.com

Expand Down
2 changes: 1 addition & 1 deletion Documentation/iOS/AppCenterData/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sdk: iphonesimulator
theme: ../../Themes/apple

module: AppCenterData
module_version: 2.0.0
module_version: 2.0.1
author: Microsoft Corp
author_url: http://www.microsoft.com

Expand Down
2 changes: 1 addition & 1 deletion Documentation/iOS/AppCenterDistribute/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sdk: iphonesimulator
theme: ../../Themes/apple

module: AppCenterDistribute
module_version: 2.0.0
module_version: 2.0.1
author: Microsoft Corp
author_url: http://www.microsoft.com

Expand Down
2 changes: 1 addition & 1 deletion Documentation/iOS/AppCenterPush/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sdk: iphonesimulator
theme: ../../Themes/apple

module: AppCenterPush
module_version: 2.0.0
module_version: 2.0.1
author: Microsoft Corp
author_url: http://www.microsoft.com

Expand Down
2 changes: 1 addition & 1 deletion Documentation/macOS/AppCenter/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sdk: macosx
theme: ../../Themes/apple

module: AppCenter
module_version: 2.0.0
module_version: 2.0.1
author: Microsoft Corp
author_url: http://www.microsoft.com

Expand Down
2 changes: 1 addition & 1 deletion Documentation/macOS/AppCenterAnalytics/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sdk: macosx
theme: ../../Themes/apple

module: AppCenterAnalytics
module_version: 2.0.0
module_version: 2.0.1
author: Microsoft Corp
author_url: http://www.microsoft.com

Expand Down
2 changes: 1 addition & 1 deletion Documentation/macOS/AppCenterAuth/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sdk: macosx
theme: ../../Themes/apple

module: AppCenterAuth
module_version: 2.0.0
module_version: 2.0.1
author: Microsoft Corp
author_url: http://www.microsoft.com

Expand Down
2 changes: 1 addition & 1 deletion Documentation/macOS/AppCenterCrashes/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sdk: macosx
theme: ../../Themes/apple

module: AppCenterCrashes
module_version: 2.0.0
module_version: 2.0.1
author: Microsoft Corp
author_url: http://www.microsoft.com

Expand Down
2 changes: 1 addition & 1 deletion Documentation/macOS/AppCenterPush/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sdk: macosx
theme: ../../Themes/apple

module: AppCenterPush
module_version: 2.0.0
module_version: 2.0.1
author: Microsoft Corp
author_url: http://www.microsoft.com

Expand Down
2 changes: 1 addition & 1 deletion Documentation/tvOS/AppCenter/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sdk: appletvsimulator
theme: ../../Themes/apple

module: AppCenter
module_version: 2.0.0
module_version: 2.0.1
author: Microsoft Corp
author_url: http://www.microsoft.com

Expand Down
2 changes: 1 addition & 1 deletion Documentation/tvOS/AppCenterAnalytics/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sdk: appletvsimulator
theme: ../../Themes/apple

module: AppCenterAnalytics
module_version: 2.0.0
module_version: 2.0.1
author: Microsoft Corp
author_url: http://www.microsoft.com

Expand Down
2 changes: 1 addition & 1 deletion Documentation/tvOS/AppCenterCrashes/.jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sdk: appletvsimulator
theme: ../../Themes/apple

module: AppCenterCrashes
module_version: 2.0.0
module_version: 2.0.1
author: Microsoft Corp
author_url: http://www.microsoft.com

Expand Down

0 comments on commit 1c6f396

Please sign in to comment.