From 532103788f3c3f7b662a124329116d1504d660da Mon Sep 17 00:00:00 2001 From: Josh Yaganeh <319444+jyaganeh@users.noreply.github.com> Date: Fri, 15 Mar 2024 11:50:07 -0700 Subject: [PATCH] Release 19.2.0 (#12) --- .github/workflows/release.yaml | 7 +- CHANGELOG.md | 11 ++- Cartfile | 2 +- Directory.Build.props | 12 +-- MauiSample/MauiSample.csproj | 3 +- MauiSample/MessagePage.xaml.cs | 9 +- .../Platforms/iOS/MessageCenterTheme.plist | 82 +++++++++++++++++++ airship.properties | 6 +- binderator/config.json | 36 ++++---- .../Airship.Net.MessageCenter.csproj | 2 +- src/Airship.Net/Airship.Net.csproj | 2 +- src/Airship.Net/Platforms/iOS/Airship.cs | 4 +- src/SharedAssemblyInfo.Common.cs | 2 +- src/SharedAssemblyInfo.CrossPlatform.cs | 2 +- src/SharedAssemblyInfo.iOS.cs | 2 +- 15 files changed, 140 insertions(+), 42 deletions(-) create mode 100644 MauiSample/Platforms/iOS/MessageCenterTheme.plist diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3d162025..949a2224 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -14,6 +14,8 @@ env: jobs: release: + permissions: + contents: write runs-on: macOS-13 steps: - uses: actions/checkout@v2 @@ -80,9 +82,8 @@ jobs: #run: ./gradlew build pack packageDocs - name: Create Github Release - uses: actions/create-release@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + id: create_release + uses: softprops/action-gh-release@v1 with: tag_name: ${{ steps.get_version.outputs.VERSION }} release_name: ${{ steps.get_version.outputs.VERSION }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 78fef251..dfcae5c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,16 @@ # Airship DotNet Changelog +## Version 19.2.0 - Mar 15, 2024 +Minor release that updates the Airship SDK to iOS 17.9.0 and Android 17.7.3, and expands plist theming options available for Message Center. + +### Changes +- Updated iOS SDK to 17.9.0 +- Updated Android SDK to 17.7.3 +- Support for dark mode and extended theming options for Message Center plist +- Fixed an iOS bug in the Message Center message delete and mark read methods in Airship.Net + ## Version 19.1.0 - Jan 25, 2024 -Minor release that updates to Airship SDK to iOS 17.7.3 and Android 17.7.2, fixes an iOS custom event properties reporting issue, and Android contact subscription list editing. Apps that target iOS and make use of custom events or Android and make use of contact subscription editing should update. +Minor release that updates the Airship SDK to iOS 17.7.3 and Android 17.7.2, fixes an iOS custom event properties reporting issue, and Android contact subscription list editing. Apps that target iOS and make use of custom events or Android and make use of contact subscription editing should update. ### Changes - Updated iOS SDK to 17.7.3 diff --git a/Cartfile b/Cartfile index 97145c53..17eaefdb 100644 --- a/Cartfile +++ b/Cartfile @@ -1 +1 @@ -github "urbanairship/ios-library" == 17.7.3 +github "urbanairship/ios-library" == 17.9.0 diff --git a/Directory.Build.props b/Directory.Build.props index 977d1ae5..818ac8ec 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -5,15 +5,15 @@ - 17.7.2 - 17.7.2 + 17.7.3 + 17.7.3 - 17.7.3 - 17.7.3 + 17.9.0 + 17.9.0 - 19.1.0 - 19.1.0 + 19.2.0 + 19.2.0 diff --git a/MauiSample/MauiSample.csproj b/MauiSample/MauiSample.csproj index 4fbfb704..c9ce1118 100644 --- a/MauiSample/MauiSample.csproj +++ b/MauiSample/MauiSample.csproj @@ -64,7 +64,7 @@ - + @@ -132,6 +132,7 @@ + diff --git a/MauiSample/MessagePage.xaml.cs b/MauiSample/MessagePage.xaml.cs index ba813f4b..f50abd2d 100644 --- a/MauiSample/MessagePage.xaml.cs +++ b/MauiSample/MessagePage.xaml.cs @@ -1,4 +1,5 @@ -using AirshipDotNet.MessageCenter.Controls; +using AirshipDotNet; +using AirshipDotNet.MessageCenter.Controls; namespace MauiSample; @@ -32,9 +33,13 @@ void MessageView_LoadStarted(object sender, MessageLoadStartedEventArgs args) => void MessageView_LoadFailed(object sender, MessageLoadFailedEventArgs args) => LoadFailed?.Invoke(this, args); - void MessageView_LoadFinished(object sender, MessageLoadFinishedEventArgs args) => + void MessageView_LoadFinished(object sender, MessageLoadFinishedEventArgs args) + { LoadFinished?.Invoke(this, args); + Airship.Instance.MarkMessageRead(MessageId); + } + void MessageView_Closed(object sender, MessageClosedEventArgs args) => Closed?.Invoke(this, args); } diff --git a/MauiSample/Platforms/iOS/MessageCenterTheme.plist b/MauiSample/Platforms/iOS/MessageCenterTheme.plist new file mode 100644 index 00000000..b4db3fa5 --- /dev/null +++ b/MauiSample/Platforms/iOS/MessageCenterTheme.plist @@ -0,0 +1,82 @@ + + + + + refreshTintColor + #333333 + refreshTintColorDark + #DDDDDD + iconsEnabled + + placeholderIcon + placeholderIcon + cellTitleFont + + fontName + ChalkboardSE-Regular + fontSize + 16 + + cellDateFont + + fontName + ChalkboardSE-Regular + fontSize + 14 + + cellColor + #DDDDDD + cellColorDark + #333333 + cellTitleColor + #000000 + cellTitleColorDark + #FFFFFF + cellDateColor + #222222 + cellDateColorDark + #CCCCCC + cellSeparatorStyle + none + cellSeparatorColor + #FFFFFF + cellSeparatorColorDark + #000000 + cellTintColor + #FF0000 + cellTintColorDark + #00FF00 + unreadIndicatorColor + #FF0000 + unreadIndicatorColorDark + #FF0000 + selectAllButtonTitleColor + #333333 + selectAllButtonTitleColorDark + #DDDDDD + deleteButtonTitleColor + #333333 + deleteButtonTitleColorDark + #DDDDDD + markAsReadButtonTitleColor + #333333 + markAsReadButtonTitleColorDark + #DDDDDD + hideDeleteButton + + editButtonTitleColor + #333333 + editButtonTitleColorDark + #DDDDDD + cancelButtonTitleColor + #333333 + cancelButtonTitleColorDark + #DDDDDD + backButtonColor + #333333 + backButtonColorDark + #DDDDDD + navigationBarTitle + Test Navigation Bar Title + + diff --git a/airship.properties b/airship.properties index 9c65235d..d80ab266 100644 --- a/airship.properties +++ b/airship.properties @@ -1,9 +1,9 @@ # Airship native SDK versions -iosVersion = 17.7.3 -androidVersion = 17.7.2 +iosVersion = 17.9.0 +androidVersion = 17.7.3 # Airship.Net cross-platform version -crossPlatformVersion = 19.1.0 +crossPlatformVersion = 19.2.0 # Filename of the iOS SDK zip file iosFrameworkZip = Airship-Xcode15.zip diff --git a/binderator/config.json b/binderator/config.json index ef6d0814..8935a6b2 100644 --- a/binderator/config.json +++ b/binderator/config.json @@ -17,72 +17,72 @@ { "groupId": "com.urbanairship.android", "artifactId": "urbanairship-adm", - "version": "17.7.2", - "nugetVersion": "17.7.2", + "version": "17.7.3", + "nugetVersion": "17.7.3", "nugetId": "Airship.Net.Android.Adm", "dependencyOnly": false }, { "groupId": "com.urbanairship.android", "artifactId": "urbanairship-automation", - "version": "17.7.2", - "nugetVersion": "17.7.2", + "version": "17.7.3", + "nugetVersion": "17.7.3", "nugetId": "Airship.Net.Android.Automation", "dependencyOnly": false }, { "groupId": "com.urbanairship.android", "artifactId": "urbanairship-core", - "version": "17.7.2", - "nugetVersion": "17.7.2", + "version": "17.7.3", + "nugetVersion": "17.7.3", "nugetId": "Airship.Net.Android.Core", "dependencyOnly": false }, { "groupId": "com.urbanairship.android", "artifactId": "urbanairship-fcm", - "version": "17.7.2", - "nugetVersion": "17.7.2", + "version": "17.7.3", + "nugetVersion": "17.7.3", "nugetId": "Airship.Net.Android.Fcm", "dependencyOnly": false }, { "groupId": "com.urbanairship.android", "artifactId": "urbanairship-feature-flag", - "version": "17.7.2", - "nugetVersion": "17.7.2", + "version": "17.7.3", + "nugetVersion": "17.7.3", "nugetId": "Airship.Net.Android.FeatureFlag", "dependencyOnly": false }, { "groupId": "com.urbanairship.android", "artifactId": "urbanairship-layout", - "version": "17.7.2", - "nugetVersion": "17.7.2", + "version": "17.7.3", + "nugetVersion": "17.7.3", "nugetId": "Airship.Net.Android.Layout", "dependencyOnly": false }, { "groupId": "com.urbanairship.android", "artifactId": "urbanairship-live-update", - "version": "17.7.2", - "nugetVersion": "17.7.2", + "version": "17.7.3", + "nugetVersion": "17.7.3", "nugetId": "Airship.Net.Android.LiveUpdate", "dependencyOnly": false }, { "groupId": "com.urbanairship.android", "artifactId": "urbanairship-message-center", - "version": "17.7.2", - "nugetVersion": "17.7.2", + "version": "17.7.3", + "nugetVersion": "17.7.3", "nugetId": "Airship.Net.Android.MessageCenter", "dependencyOnly": false }, { "groupId": "com.urbanairship.android", "artifactId": "urbanairship-preference-center", - "version": "17.7.2", - "nugetVersion": "17.7.2", + "version": "17.7.3", + "nugetVersion": "17.7.3", "nugetId": "Airship.Net.Android.PreferenceCenter", "dependencyOnly": false }, diff --git a/src/Airship.Net.MessageCenter/Airship.Net.MessageCenter.csproj b/src/Airship.Net.MessageCenter/Airship.Net.MessageCenter.csproj index 523b84c8..43b82df9 100644 --- a/src/Airship.Net.MessageCenter/Airship.Net.MessageCenter.csproj +++ b/src/Airship.Net.MessageCenter/Airship.Net.MessageCenter.csproj @@ -46,7 +46,7 @@ - + diff --git a/src/Airship.Net/Airship.Net.csproj b/src/Airship.Net/Airship.Net.csproj index 61d2e3f2..06d41b13 100644 --- a/src/Airship.Net/Airship.Net.csproj +++ b/src/Airship.Net/Airship.Net.csproj @@ -36,7 +36,7 @@ - + diff --git a/src/Airship.Net/Platforms/iOS/Airship.cs b/src/Airship.Net/Platforms/iOS/Airship.cs index b8bf0bdd..d4e3281b 100644 --- a/src/Airship.Net/Platforms/iOS/Airship.cs +++ b/src/Airship.Net/Platforms/iOS/Airship.cs @@ -306,13 +306,13 @@ public void AssociateIdentifier(string key, string identifier) public void MarkMessageRead(string messageId) { string[] toRead = { messageId }; - UAMessageCenter.Shared.Inbox.MarkReadWithMessageIDs(toRead, null); + UAMessageCenter.Shared.Inbox.MarkReadWithMessageIDs(toRead, () => { }); } public void DeleteMessage(string messageId) { string[] toDelete = { messageId }; - UAMessageCenter.Shared.Inbox.DeleteWithMessageIDs(toDelete, null); + UAMessageCenter.Shared.Inbox.DeleteWithMessageIDs(toDelete, () => { }); } public void MessageCenterUnreadCount(Action messageCount) diff --git a/src/SharedAssemblyInfo.Common.cs b/src/SharedAssemblyInfo.Common.cs index 738615d9..c3dafba2 100644 --- a/src/SharedAssemblyInfo.Common.cs +++ b/src/SharedAssemblyInfo.Common.cs @@ -6,4 +6,4 @@ // Change them to the values specific to your project. // Cross-platform version of the plugin -[assembly: UACrossPlatformVersion ("19.1.0")] +[assembly: UACrossPlatformVersion ("19.2.0")] diff --git a/src/SharedAssemblyInfo.CrossPlatform.cs b/src/SharedAssemblyInfo.CrossPlatform.cs index 1f1e4093..0574c731 100644 --- a/src/SharedAssemblyInfo.CrossPlatform.cs +++ b/src/SharedAssemblyInfo.CrossPlatform.cs @@ -12,5 +12,5 @@ // The form "{Major}.{Minor}.*" will automatically update the build and revision, // and "{Major}.{Minor}.{Build}.*" will update just the revision. -[assembly: AssemblyVersion ("19.1.0")] +[assembly: AssemblyVersion ("19.2.0")] diff --git a/src/SharedAssemblyInfo.iOS.cs b/src/SharedAssemblyInfo.iOS.cs index 7560a646..553b465b 100644 --- a/src/SharedAssemblyInfo.iOS.cs +++ b/src/SharedAssemblyInfo.iOS.cs @@ -17,4 +17,4 @@ // The form "{Major}.{Minor}.*" will automatically update the build and revision, // and "{Major}.{Minor}.{Build}.*" will update just the revision. -[assembly: AssemblyVersion ("19.1.0")] +[assembly: AssemblyVersion ("19.2.0")]