diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6b7d17c7..d11a3235 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,9 +10,11 @@ env: jobs: release: + permissions: + contents: write runs-on: macOS-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Get Version id: get_version @@ -77,12 +79,11 @@ jobs: gsutil cp docs/build/$VERSION.tar.gz gs://ua-web-ci-prod-docs-transfer/libraries/xamarin/$VERSION.tar.gz - name: Create Github Release - uses: actions/create-release@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v1 with: tag_name: ${{ steps.get_version.outputs.VERSION }} - release_name: ${{ steps.get_version.outputs.VERSION }} + name: ${{ steps.get_version.outputs.VERSION }} body: ${{ steps.get_release_notes.outputs.NOTES }} draft: false prerelease: false + make_latest: true diff --git a/Airship.Android.ADM.nuspec b/Airship.Android.ADM.nuspec index d77a58ad..27f15169 100644 --- a/Airship.Android.ADM.nuspec +++ b/Airship.Android.ADM.nuspec @@ -2,7 +2,7 @@ airship.android.adm - 17.7.1 + 17.7.3 Airship Android SDK - ADM Push Provider Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -10,7 +10,7 @@ A full suite of mobile engagement tools for building next-generation apps - + diff --git a/Airship.Android.Automation.nuspec b/Airship.Android.Automation.nuspec index 61915dc2..54049172 100644 --- a/Airship.Android.Automation.nuspec +++ b/Airship.Android.Automation.nuspec @@ -2,7 +2,7 @@ airship.android.automation - 17.7.1 + 17.7.3 Airship Android SDK Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -11,8 +11,8 @@ - - + + diff --git a/Airship.Android.Core.nuspec b/Airship.Android.Core.nuspec index 526f838d..10abfda5 100644 --- a/Airship.Android.Core.nuspec +++ b/Airship.Android.Core.nuspec @@ -2,7 +2,7 @@ airship.android.core - 17.7.1 + 17.7.3 Airship Android SDK Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin diff --git a/Airship.Android.FCM.nuspec b/Airship.Android.FCM.nuspec index 64f97b05..158a4923 100644 --- a/Airship.Android.FCM.nuspec +++ b/Airship.Android.FCM.nuspec @@ -2,7 +2,7 @@ airship.android.fcm - 17.7.1 + 17.7.3 Airship Android SDK - FCM Push Provider Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -11,7 +11,7 @@ - + diff --git a/Airship.Android.FeatureFlag.nuspec b/Airship.Android.FeatureFlag.nuspec index b862274f..de29c6e7 100644 --- a/Airship.Android.FeatureFlag.nuspec +++ b/Airship.Android.FeatureFlag.nuspec @@ -2,7 +2,7 @@ airship.android.featureflag - 17.7.1 + 17.7.3 Airship Android SDK - Feature Flags Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -11,7 +11,7 @@ - + diff --git a/Airship.Android.Layout.nuspec b/Airship.Android.Layout.nuspec index 05ca5a38..fa5b2084 100644 --- a/Airship.Android.Layout.nuspec +++ b/Airship.Android.Layout.nuspec @@ -2,7 +2,7 @@ airship.android.layout - 17.7.1 + 17.7.3 Airship Android SDK Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -11,7 +11,7 @@ - + diff --git a/Airship.Android.LiveUpdate.nuspec b/Airship.Android.LiveUpdate.nuspec index 300e98ab..26720d59 100644 --- a/Airship.Android.LiveUpdate.nuspec +++ b/Airship.Android.LiveUpdate.nuspec @@ -2,7 +2,7 @@ airship.android.liveupdate - 17.7.1 + 17.7.3 Airship Android SDK Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -11,7 +11,7 @@ - + diff --git a/Airship.Android.MessageCenter.nuspec b/Airship.Android.MessageCenter.nuspec index 870249d4..76421131 100644 --- a/Airship.Android.MessageCenter.nuspec +++ b/Airship.Android.MessageCenter.nuspec @@ -2,7 +2,7 @@ airship.android.messagecenter - 17.7.1 + 17.7.3 Airship Android SDK Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -12,7 +12,7 @@ - + diff --git a/Airship.Android.PreferenceCenter.nuspec b/Airship.Android.PreferenceCenter.nuspec index be49c372..1de3d8de 100644 --- a/Airship.Android.PreferenceCenter.nuspec +++ b/Airship.Android.PreferenceCenter.nuspec @@ -2,7 +2,7 @@ airship.android.preferencecenter - 17.7.1 + 17.7.3 Airship Android SDK Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -11,7 +11,7 @@ - + diff --git a/Airship.NETStandard.nuspec b/Airship.NETStandard.nuspec index 56fffec7..8c77945a 100644 --- a/Airship.NETStandard.nuspec +++ b/Airship.NETStandard.nuspec @@ -2,7 +2,7 @@ airship.netstandard - 18.1.0 + 18.2.0 Airship SDK .NET Standard Library Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -13,15 +13,15 @@ - - - + + + - - - + + + diff --git a/Airship.iOS.Automation.nuspec b/Airship.iOS.Automation.nuspec index 38b238b2..e071e46c 100644 --- a/Airship.iOS.Automation.nuspec +++ b/Airship.iOS.Automation.nuspec @@ -2,7 +2,7 @@ airship.ios.automation - 17.7.1 + 17.9.0 Airship iOS SDK - Automation Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -10,7 +10,7 @@ Automation support for Airship SDK - + diff --git a/Airship.iOS.Basement.nuspec b/Airship.iOS.Basement.nuspec index 0c4ac3d0..c7c29d61 100644 --- a/Airship.iOS.Basement.nuspec +++ b/Airship.iOS.Basement.nuspec @@ -2,7 +2,7 @@ airship.ios.basement - 17.7.1 + 17.9.0 Airship iOS SDK - Basement Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin diff --git a/Airship.iOS.Core.nuspec b/Airship.iOS.Core.nuspec index 3a54cd1e..d33d8669 100644 --- a/Airship.iOS.Core.nuspec +++ b/Airship.iOS.Core.nuspec @@ -2,7 +2,7 @@ airship.ios.core - 17.7.1 + 17.9.0 Airship iOS SDK - Core Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -10,7 +10,7 @@ Core of Airship SDK - + diff --git a/Airship.iOS.MessageCenter.nuspec b/Airship.iOS.MessageCenter.nuspec index f2ae35df..b0b5e341 100644 --- a/Airship.iOS.MessageCenter.nuspec +++ b/Airship.iOS.MessageCenter.nuspec @@ -2,7 +2,7 @@ airship.ios.messagecenter - 17.7.1 + 17.9.0 Airship iOS SDK - MessageCenter Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -10,7 +10,7 @@ Message center support for Airship SDK - + diff --git a/Airship.iOS.NotificationContentExtension.nuspec b/Airship.iOS.NotificationContentExtension.nuspec index 6df2c4f1..dfc07940 100644 --- a/Airship.iOS.NotificationContentExtension.nuspec +++ b/Airship.iOS.NotificationContentExtension.nuspec @@ -2,7 +2,7 @@ airship.ios.notificationcontentextension - 17.7.1 + 17.9.0 Airship iOS SDK - Notification Content Extension Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -10,7 +10,7 @@ Notification content extension support for iOS - + diff --git a/Airship.iOS.NotificationServiceExtension.nuspec b/Airship.iOS.NotificationServiceExtension.nuspec index bc3eff42..011fe0cd 100644 --- a/Airship.iOS.NotificationServiceExtension.nuspec +++ b/Airship.iOS.NotificationServiceExtension.nuspec @@ -2,7 +2,7 @@ airship.ios.notificationserviceextension - 17.7.1 + 17.9.0 Airship iOS SDK - Notification Service Extension Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -10,7 +10,7 @@ Notification service extension support for iOS - + diff --git a/Airship.iOS.PreferenceCenter.nuspec b/Airship.iOS.PreferenceCenter.nuspec index e781f046..2794c005 100644 --- a/Airship.iOS.PreferenceCenter.nuspec +++ b/Airship.iOS.PreferenceCenter.nuspec @@ -2,7 +2,7 @@ airship.ios.preferencecenter - 17.7.1 + 17.9.0 Airship iOS SDK - Preference Center Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -10,7 +10,7 @@ Preference Center support for Airship SDK - + diff --git a/Airship.iOS.nuspec b/Airship.iOS.nuspec index ecc7ebc1..aed18e04 100644 --- a/Airship.iOS.nuspec +++ b/Airship.iOS.nuspec @@ -2,7 +2,7 @@ airship.ios - 17.7.1 + 17.9.0 Airship iOS SDK Airship, Inc. https://github.com/urbanairship/urbanairship-xamarin @@ -11,11 +11,11 @@ - - - - - + + + + + diff --git a/CHANGELOG.md b/CHANGELOG.md index 37b4f713..ba6115c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,15 @@ # Airship Xamarin Changelog -## Version 18.1.0 - January 22, 2024 +## Version 18.2.0 - March 15, 2024 +Minor release that updates the Airship SDK to iOS 17.9.0 and Android 17.7.3, expands plist theming options available for Message Center, and fixes the cross-platform `MarkMessageRead` and `DeleteMessage` methods. + +### 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 18.1.0 - January 22, 2024 Minor release that updates to Airship SDK 17.7.1 and fixes an iOS custom event properties reporting issue. Apps that target iOS and make use of custom events should update. ### Changes diff --git a/Cartfile b/Cartfile index de93d325..17eaefdb 100644 --- a/Cartfile +++ b/Cartfile @@ -1 +1 @@ -github "urbanairship/ios-library" == 17.7.1 +github "urbanairship/ios-library" == 17.9.0 diff --git a/SampleApp/SampleApp.Android/SampleApp.Android.csproj b/SampleApp/SampleApp.Android/SampleApp.Android.csproj index 3195c41b..c6ca19a7 100644 --- a/SampleApp/SampleApp.Android/SampleApp.Android.csproj +++ b/SampleApp/SampleApp.Android/SampleApp.Android.csproj @@ -61,7 +61,7 @@ 1.3.0.8 - 1.2.0 + 1.3.0 1.4.0.4 @@ -76,25 +76,25 @@ 1.3.1.3 - 17.7.1 + 17.7.3 - 17.7.1 + 17.7.3 - 17.7.1 + 17.7.3 - 17.7.1 + 17.7.3 - 17.7.1 + 17.7.3 - 17.7.1 + 17.7.3 - 17.7.1 + 17.7.3 diff --git a/SampleApp/SampleApp.iOS/MessageCenterTheme.plist b/SampleApp/SampleApp.iOS/MessageCenterTheme.plist new file mode 100644 index 00000000..b4db3fa5 --- /dev/null +++ b/SampleApp/SampleApp.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/SampleApp/SampleApp.iOS/SampleApp.iOS.csproj b/SampleApp/SampleApp.iOS/SampleApp.iOS.csproj index 7dc75325..685a6676 100644 --- a/SampleApp/SampleApp.iOS/SampleApp.iOS.csproj +++ b/SampleApp/SampleApp.iOS/SampleApp.iOS.csproj @@ -91,7 +91,7 @@ - 17.7.1 + 17.9.0 @@ -114,6 +114,7 @@ + diff --git a/SampleApp/SampleApp/App.xaml.cs b/SampleApp/SampleApp/App.xaml.cs index 65578ba8..0575c06a 100644 --- a/SampleApp/SampleApp/App.xaml.cs +++ b/SampleApp/SampleApp/App.xaml.cs @@ -25,7 +25,6 @@ protected override void OnStart() { Airship.Instance.OnDeepLinkReceived += OnDeepLinkReceived; Airship.Instance.OnMessageCenterUpdated += OnMessageCenterUpdated; - Airship.Instance.OnMessageCenterDisplay += OnMessageCenterDisplay; } protected override void OnSleep() @@ -45,20 +44,6 @@ static void OnMessageCenterUpdated(object sender, EventArgs e) { Console.WriteLine("onMessageCenterUpdated"); } - static void OnMessageCenterDisplay(object sender, MessageCenterEventArgs e) - { - TabbedPage originalRootPage = (TabbedPage)App.Current.MainPage.Navigation.NavigationStack.Last(); - - originalRootPage.CurrentPage = originalRootPage.Children[1]; - - if (e.MessageId != null) - { - var messagePage = new MessagePage(); - messagePage.MessageId = e.MessageId; - messagePage.Closed += OnMessageClosed; - originalRootPage.Navigation.PushAsync(messagePage); - } - } static void OnMessageClosed(object sender, MessageClosedEventArgs e) { diff --git a/SampleApp/SampleApp/AppResources.resx b/SampleApp/SampleApp/AppResources.resx index f03032cb..79547c41 100644 --- a/SampleApp/SampleApp/AppResources.resx +++ b/SampleApp/SampleApp/AppResources.resx @@ -25,7 +25,7 @@ ENABLE PUSH - DISPLAY MESSAGE CENTER + DISPLAY DEFAULT MESSAGE CENTER DISPLAY PREFERENCE CENTER diff --git a/SampleApp/SampleApp/MessageCenterViewController.xaml.cs b/SampleApp/SampleApp/MessageCenterViewController.xaml.cs index 751ed1c5..4d3711db 100644 --- a/SampleApp/SampleApp/MessageCenterViewController.xaml.cs +++ b/SampleApp/SampleApp/MessageCenterViewController.xaml.cs @@ -61,6 +61,8 @@ private void onLoadStarted(object sender, MessageLoadStartedEventArgs e) private void onLoaded(object sender, MessageLoadedEventArgs e) { Console.WriteLine("onLoaded was reached."); + + Airship.Instance.MarkMessageRead(e.MessageId); } private void onClosed(object sender, MessageClosedEventArgs e) diff --git a/SampleApp/SampleApp/SampleApp.csproj b/SampleApp/SampleApp/SampleApp.csproj index de65ff03..34afd059 100644 --- a/SampleApp/SampleApp/SampleApp.csproj +++ b/SampleApp/SampleApp/SampleApp.csproj @@ -15,7 +15,7 @@ - + diff --git a/airship.properties b/airship.properties index 5799d7cf..90c32886 100644 --- a/airship.properties +++ b/airship.properties @@ -1,4 +1,4 @@ -crossPlatformVersion = 18.1.0 -iosNugetVersion = 17.7.1 -iosVersion = 17.7.1 -androidVersion = 17.7.1 +crossPlatformVersion = 18.2.0 +iosNugetVersion = 17.9.0 +iosVersion = 17.9.0 +androidVersion = 17.7.3 diff --git a/src/AirshipBindings.Android.ADM/AirshipBindings.Android.ADM.csproj b/src/AirshipBindings.Android.ADM/AirshipBindings.Android.ADM.csproj index 52437d6e..21db4311 100644 --- a/src/AirshipBindings.Android.ADM/AirshipBindings.Android.ADM.csproj +++ b/src/AirshipBindings.Android.ADM/AirshipBindings.Android.ADM.csproj @@ -68,7 +68,7 @@ - + diff --git a/src/AirshipBindings.Android.Automation/AirshipBindings.Android.Automation.csproj b/src/AirshipBindings.Android.Automation/AirshipBindings.Android.Automation.csproj index 79752c7b..7ad87e86 100644 --- a/src/AirshipBindings.Android.Automation/AirshipBindings.Android.Automation.csproj +++ b/src/AirshipBindings.Android.Automation/AirshipBindings.Android.Automation.csproj @@ -151,7 +151,7 @@ - + diff --git a/src/AirshipBindings.Android.Automation/Transforms/Metadata.xml b/src/AirshipBindings.Android.Automation/Transforms/Metadata.xml index 629adf71..db62f573 100644 --- a/src/AirshipBindings.Android.Automation/Transforms/Metadata.xml +++ b/src/AirshipBindings.Android.Automation/Transforms/Metadata.xml @@ -13,6 +13,8 @@ UrbanAirship.Iam.Tags UrbanAirship.Iam.View + java.lang.Object + diff --git a/src/AirshipBindings.Android.Core/AirshipBindings.Android.Core.csproj b/src/AirshipBindings.Android.Core/AirshipBindings.Android.Core.csproj index 5f0c0eae..eecb6dd0 100644 --- a/src/AirshipBindings.Android.Core/AirshipBindings.Android.Core.csproj +++ b/src/AirshipBindings.Android.Core/AirshipBindings.Android.Core.csproj @@ -198,7 +198,7 @@ - + diff --git a/src/AirshipBindings.Android.FCM/AirshipBindings.Android.FCM.csproj b/src/AirshipBindings.Android.FCM/AirshipBindings.Android.FCM.csproj index da7ef47b..ed9729b5 100644 --- a/src/AirshipBindings.Android.FCM/AirshipBindings.Android.FCM.csproj +++ b/src/AirshipBindings.Android.FCM/AirshipBindings.Android.FCM.csproj @@ -207,7 +207,7 @@ - + diff --git a/src/AirshipBindings.Android.FeatureFlag/AirshipBindings.Android.FeatureFlag.csproj b/src/AirshipBindings.Android.FeatureFlag/AirshipBindings.Android.FeatureFlag.csproj index eaad6918..41581f20 100644 --- a/src/AirshipBindings.Android.FeatureFlag/AirshipBindings.Android.FeatureFlag.csproj +++ b/src/AirshipBindings.Android.FeatureFlag/AirshipBindings.Android.FeatureFlag.csproj @@ -54,7 +54,7 @@ - + diff --git a/src/AirshipBindings.Android.Layout/AirshipBindings.Android.Layout.csproj b/src/AirshipBindings.Android.Layout/AirshipBindings.Android.Layout.csproj index 0bd66a8e..ecc31676 100644 --- a/src/AirshipBindings.Android.Layout/AirshipBindings.Android.Layout.csproj +++ b/src/AirshipBindings.Android.Layout/AirshipBindings.Android.Layout.csproj @@ -61,7 +61,7 @@ - + diff --git a/src/AirshipBindings.Android.LiveUpdate/AirshipBindings.Android.LiveUpdate.csproj b/src/AirshipBindings.Android.LiveUpdate/AirshipBindings.Android.LiveUpdate.csproj index 750a11d2..0f5e35ef 100644 --- a/src/AirshipBindings.Android.LiveUpdate/AirshipBindings.Android.LiveUpdate.csproj +++ b/src/AirshipBindings.Android.LiveUpdate/AirshipBindings.Android.LiveUpdate.csproj @@ -54,7 +54,7 @@ - + diff --git a/src/AirshipBindings.Android.MessageCenter/AirshipBindings.Android.MessageCenter.csproj b/src/AirshipBindings.Android.MessageCenter/AirshipBindings.Android.MessageCenter.csproj index 96ffaafc..71c42a88 100644 --- a/src/AirshipBindings.Android.MessageCenter/AirshipBindings.Android.MessageCenter.csproj +++ b/src/AirshipBindings.Android.MessageCenter/AirshipBindings.Android.MessageCenter.csproj @@ -162,7 +162,7 @@ - +