* Fix build warning (ref #133) * Update GitHub Actions build settings for macos-12 / Xcode 13 * Update tvOS destination for CI build
This commit is contained in:
Родитель
35042e4dbe
Коммит
d38e2f7f15
|
@ -8,9 +8,9 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ios-analyze-test:
|
ios-analyze-test:
|
||||||
runs-on: macos-latest
|
runs-on: macos-12
|
||||||
env:
|
env:
|
||||||
XC_VERSION: ${{ '12.3' }}
|
XC_VERSION: ${{ '13.4.1' }}
|
||||||
XC_WORKSPACE: ${{ 'WindowsAzureMessaging.xcworkspace' }}
|
XC_WORKSPACE: ${{ 'WindowsAzureMessaging.xcworkspace' }}
|
||||||
XC_SCHEME: ${{ 'WindowsAzureMessaging iOS Framework' }}
|
XC_SCHEME: ${{ 'WindowsAzureMessaging iOS Framework' }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -28,9 +28,9 @@ jobs:
|
||||||
run: /usr/bin/xcodebuild test -workspace "$XC_WORKSPACE" -scheme "$XC_SCHEME" -destination 'platform=iOS Simulator,name=iPhone 11'
|
run: /usr/bin/xcodebuild test -workspace "$XC_WORKSPACE" -scheme "$XC_SCHEME" -destination 'platform=iOS Simulator,name=iPhone 11'
|
||||||
|
|
||||||
tvos-analyze-test:
|
tvos-analyze-test:
|
||||||
runs-on: macos-latest
|
runs-on: macos-12
|
||||||
env:
|
env:
|
||||||
XC_VERSION: ${{ '12.3' }}
|
XC_VERSION: ${{ '13.4.1' }}
|
||||||
XC_WORKSPACE: ${{ 'WindowsAzureMessaging.xcworkspace' }}
|
XC_WORKSPACE: ${{ 'WindowsAzureMessaging.xcworkspace' }}
|
||||||
XC_SCHEME: ${{ 'WindowsAzureMessaging tvOS Framework' }}
|
XC_SCHEME: ${{ 'WindowsAzureMessaging tvOS Framework' }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -42,15 +42,15 @@ jobs:
|
||||||
run: "sudo xcode-select -switch /Applications/Xcode_$XC_VERSION.app"
|
run: "sudo xcode-select -switch /Applications/Xcode_$XC_VERSION.app"
|
||||||
|
|
||||||
- name: iOS Analyze
|
- name: iOS Analyze
|
||||||
run: /usr/bin/xcodebuild analyze -workspace "$XC_WORKSPACE" -scheme "$XC_SCHEME" -destination 'platform=tvOS Simulator,name=Apple TV 4K'
|
run: /usr/bin/xcodebuild analyze -workspace "$XC_WORKSPACE" -scheme "$XC_SCHEME" -destination 'platform=tvOS Simulator,name=Apple TV 4K (2nd generation)'
|
||||||
|
|
||||||
- name: iOS Test
|
- name: iOS Test
|
||||||
run: /usr/bin/xcodebuild test -workspace "$XC_WORKSPACE" -scheme "$XC_SCHEME" -destination 'platform=tvOS Simulator,name=Apple TV 4K'
|
run: /usr/bin/xcodebuild test -workspace "$XC_WORKSPACE" -scheme "$XC_SCHEME" -destination 'platform=tvOS Simulator,name=Apple TV 4K (2nd generation)'
|
||||||
|
|
||||||
macos-analyze-test:
|
macos-analyze-test:
|
||||||
runs-on: macos-latest
|
runs-on: macos-12
|
||||||
env:
|
env:
|
||||||
XC_VERSION: ${{ '12.3' }}
|
XC_VERSION: ${{ '13.4.1' }}
|
||||||
XC_WORKSPACE: ${{ 'WindowsAzureMessaging.xcworkspace' }}
|
XC_WORKSPACE: ${{ 'WindowsAzureMessaging.xcworkspace' }}
|
||||||
XC_SCHEME: ${{ 'WindowsAzureMessaging macOS Framework' }}
|
XC_SCHEME: ${{ 'WindowsAzureMessaging macOS Framework' }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -68,9 +68,9 @@ jobs:
|
||||||
run: /usr/bin/xcodebuild test -workspace "$XC_WORKSPACE" -scheme "$XC_SCHEME" -destination 'platform=macOS'
|
run: /usr/bin/xcodebuild test -workspace "$XC_WORKSPACE" -scheme "$XC_SCHEME" -destination 'platform=macOS'
|
||||||
|
|
||||||
mac-catalyst-analyze-test:
|
mac-catalyst-analyze-test:
|
||||||
runs-on: macos-latest
|
runs-on: macos-12
|
||||||
env:
|
env:
|
||||||
XC_VERSION: ${{ '12.3' }}
|
XC_VERSION: ${{ '13.4.1' }}
|
||||||
XC_WORKSPACE: ${{ 'WindowsAzureMessaging.xcworkspace' }}
|
XC_WORKSPACE: ${{ 'WindowsAzureMessaging.xcworkspace' }}
|
||||||
XC_SCHEME: ${{ 'WindowsAzureMessaging iOS Framework' }}
|
XC_SCHEME: ${{ 'WindowsAzureMessaging iOS Framework' }}
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -8,9 +8,9 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-sdk:
|
build-sdk:
|
||||||
runs-on: macos-latest
|
runs-on: macos-12
|
||||||
env:
|
env:
|
||||||
XC_VERSION: ${{ '12.3' }}
|
XC_VERSION: ${{ '13.4.1' }}
|
||||||
XC_WORKSPACE: ${{ 'WindowsAzureMessaging.xcworkspace' }}
|
XC_WORKSPACE: ${{ 'WindowsAzureMessaging.xcworkspace' }}
|
||||||
XC_SCHEME: ${{ 'All Frameworks' }}
|
XC_SCHEME: ${{ 'All Frameworks' }}
|
||||||
XC_DOC_SCHEME: ${{ 'All Documentation' }}
|
XC_DOC_SCHEME: ${{ 'All Documentation' }}
|
||||||
|
|
|
@ -236,7 +236,6 @@ static const int defaultTimeToExpireinMins = 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSString *)ExtractToken:(NSData *)data {
|
+ (NSString *)ExtractToken:(NSData *)data {
|
||||||
NSString *expireInSeconds;
|
|
||||||
NSString *token;
|
NSString *token;
|
||||||
NSString *rawStr = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
|
NSString *rawStr = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
|
||||||
NSArray *fields = [rawStr componentsSeparatedByString:@"&"];
|
NSArray *fields = [rawStr componentsSeparatedByString:@"&"];
|
||||||
|
@ -253,8 +252,6 @@ static const int defaultTimeToExpireinMins = 20;
|
||||||
NSString *value = [SBNotificationHubHelper urlDecode:[subItems objectAtIndex:1]];
|
NSString *value = [SBNotificationHubHelper urlDecode:[subItems objectAtIndex:1]];
|
||||||
if ([key isEqualToString:@"wrap_access_token"]) {
|
if ([key isEqualToString:@"wrap_access_token"]) {
|
||||||
token = [NSString stringWithFormat:@"WRAP access_token=\"%@\"", value];
|
token = [NSString stringWithFormat:@"WRAP access_token=\"%@\"", value];
|
||||||
} else {
|
|
||||||
expireInSeconds = value;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче