diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3d16202..949a222 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 78fef25..dfcae5c 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 97145c5..17eaefd 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 977d1ae..818ac8e 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 4fbfb70..c9ce111 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 ba813f4..f50abd2 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 0000000..b4db3fa --- /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 9c65235..d80ab26 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 ef6d081..8935a6b 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 523b84c..43b82df 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 61d2e3f..06d41b1 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 b8bf0bd..d4e3281 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 738615d..c3dafba 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 1f1e409..0574c73 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 7560a64..553b465 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")]