-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add options for initializing MSNotificationHub (#108)
* Update to 3.1.3
- Loading branch information
1 parent
75ca732
commit d6a0856
Showing
26 changed files
with
288 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
BUILD_NUMBER = 1 | ||
VERSION_STRING = 3.1.2 | ||
VERSION_STRING = 3.1.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// swift-tools-version:5.3 | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "WindowsAzureMessaging", | ||
defaultLocalization: "en", | ||
platforms: [ | ||
.iOS(.v9), | ||
.macOS(.v10_10), | ||
.tvOS(.v11) | ||
], | ||
products: [ | ||
.library( | ||
name: "WindowsAzureMessaging", | ||
type: .static, | ||
targets: ["WindowsAzureMessaging"]), | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.target( | ||
name: "WindowsAzureMessaging", | ||
path: "WindowsAzureMessaging/WindowsAzureMessaging", | ||
exclude: ["Support"], | ||
cSettings: [ | ||
.define("NH_C_VERSION", to:"\"3.1.3\""), | ||
.define("NH_C_BUILD", to:"\"1\""), | ||
.headerSearchPath("**"), | ||
], | ||
linkerSettings: [ | ||
.linkedFramework("Foundation"), | ||
.linkedFramework("SystemConfiguration"), | ||
.linkedFramework("UserNotifications"), | ||
.linkedFramework("AppKit", .when(platforms: [.macOS])), | ||
.linkedFramework("UIKit", .when(platforms: [.iOS, .tvOS])) | ||
] | ||
) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/bin/sh | ||
|
||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
|
||
# Updates SDK version. | ||
# Usage: update-version.sh -v <new-version> | ||
|
@@ -32,12 +33,22 @@ PROJECT_DIR="$(dirname "$0")/.." | |
DOCUMENT_DIR="$PROJECT_DIR/Documentation" | ||
PODSPEC_FILE="$PROJECT_DIR/AzureNotificationHubs-iOS.podspec" | ||
SWIFTPM_FILE="$PROJECT_DIR/Package.swift" | ||
SWIFTPM_5_3_FILE="$PROJECT_DIR/[email protected]" | ||
|
||
# Update framework version | ||
$(dirname "$0")/framework-version.sh $new_version | ||
|
||
# Update documentation version | ||
for file in `find $DOCUMENT_DIR -name '.jazzy.yaml' -type f`; do | ||
sed -i '' 's/\(module_version: \).*/\1'$new_version'/g' $file | ||
done | ||
|
||
# Update CocoaPods version | ||
sed -i '' "s/\(\.version[[:space:]]*= \)\'.*\'$/\1'$new_version'/1" $PODSPEC_FILE | ||
|
||
# Update SwiftPM version | ||
sed -i '' 's/\(define("NH_C_VERSION",[[:space:]]*to:*\).*/\1''"\\"'$new_version'\\""),''/g' $SWIFTPM_FILE | ||
updateSwiftPMVersion() { | ||
sed -i '' 's/\(define("NH_C_VERSION",[[:space:]]*to:*\).*/\1''"\\"'$new_version'\\""),''/g' $1 | ||
} | ||
updateSwiftPMVersion $SWIFTPM_FILE | ||
updateSwiftPMVersion $SWIFTPM_5_3_FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.