Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 19.2.0 #12

Merged
merged 5 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ env:

jobs:
release:
permissions:
contents: write
runs-on: macOS-13
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -80,9 +82,8 @@ jobs:
#run: ./gradlew build pack packageDocs

- name: Create Github Release
uses: actions/[email protected]
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 }}
Expand Down
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "urbanairship/ios-library" == 17.7.3
github "urbanairship/ios-library" == 17.9.0
12 changes: 6 additions & 6 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
<!-- Versions -->
<PropertyGroup>
<!-- Airship native SDK versions -->
<AirshipAndroidVersion>17.7.2</AirshipAndroidVersion>
<AirshipAndroidNugetVersion>17.7.2</AirshipAndroidNugetVersion>
<AirshipAndroidVersion>17.7.3</AirshipAndroidVersion>
<AirshipAndroidNugetVersion>17.7.3</AirshipAndroidNugetVersion>

<AirshipIosVersion>17.7.3</AirshipIosVersion>
<AirshipIosNugetVersion>17.7.3</AirshipIosNugetVersion>
<AirshipIosVersion>17.9.0</AirshipIosVersion>
<AirshipIosNugetVersion>17.9.0</AirshipIosNugetVersion>

<!-- Airship.Net version -->
<AirshipCrossPlatformVersion>19.1.0</AirshipCrossPlatformVersion>
<AirshipCrossPlatformNugetVersion>19.1.0</AirshipCrossPlatformNugetVersion>
<AirshipCrossPlatformVersion>19.2.0</AirshipCrossPlatformVersion>
<AirshipCrossPlatformNugetVersion>19.2.0</AirshipCrossPlatformNugetVersion>
</PropertyGroup>

<!-- Nuget packaging metadata -->
Expand Down
3 changes: 2 additions & 1 deletion MauiSample/MauiSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.3" />
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.6" />
</ItemGroup>

<ItemGroup Label="Common Package Dependencies" Condition="!$(UseProjectReferences)">
Expand Down Expand Up @@ -132,6 +132,7 @@

<ItemGroup Label="iOS Resources" Condition="'$(TargetFramework)' == 'net8.0-ios'">
<BundleResource Include="Platforms\iOS\AirshipConfig.plist" Link="AirshipConfig.plist" />
<BundleResource Include="Platforms\iOS\MessageCenterTheme.plist" Link="MessageCenterTheme.plist" />
</ItemGroup>

<ItemGroup Label="Android Resources" Condition="'$(TargetFramework)' == 'net8.0-android'">
Expand Down
9 changes: 7 additions & 2 deletions MauiSample/MessagePage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using AirshipDotNet.MessageCenter.Controls;
using AirshipDotNet;
using AirshipDotNet.MessageCenter.Controls;

namespace MauiSample;

Expand Down Expand Up @@ -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);
}
82 changes: 82 additions & 0 deletions MauiSample/Platforms/iOS/MessageCenterTheme.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>refreshTintColor</key>
<string>#333333</string>
<key>refreshTintColorDark</key>
<string>#DDDDDD</string>
<key>iconsEnabled</key>
<true/>
<key>placeholderIcon</key>
<string>placeholderIcon</string>
<key>cellTitleFont</key>
<dict>
<key>fontName</key>
<string>ChalkboardSE-Regular</string>
<key>fontSize</key>
<integer>16</integer>
</dict>
<key>cellDateFont</key>
<dict>
<key>fontName</key>
<string>ChalkboardSE-Regular</string>
<key>fontSize</key>
<integer>14</integer>
</dict>
<key>cellColor</key>
<string>#DDDDDD</string>
<key>cellColorDark</key>
<string>#333333</string>
<key>cellTitleColor</key>
<string>#000000</string>
<key>cellTitleColorDark</key>
<string>#FFFFFF</string>
<key>cellDateColor</key>
<string>#222222</string>
<key>cellDateColorDark</key>
<string>#CCCCCC</string>
<key>cellSeparatorStyle</key>
<string>none</string>
<key>cellSeparatorColor</key>
<string>#FFFFFF</string>
<key>cellSeparatorColorDark</key>
<string>#000000</string>
<key>cellTintColor</key>
<string>#FF0000</string>
<key>cellTintColorDark</key>
<string>#00FF00</string>
<key>unreadIndicatorColor</key>
<string>#FF0000</string>
<key>unreadIndicatorColorDark</key>
<string>#FF0000</string>
<key>selectAllButtonTitleColor</key>
<string>#333333</string>
<key>selectAllButtonTitleColorDark</key>
<string>#DDDDDD</string>
<key>deleteButtonTitleColor</key>
<string>#333333</string>
<key>deleteButtonTitleColorDark</key>
<string>#DDDDDD</string>
<key>markAsReadButtonTitleColor</key>
<string>#333333</string>
<key>markAsReadButtonTitleColorDark</key>
<string>#DDDDDD</string>
<key>hideDeleteButton</key>
<true/>
<key>editButtonTitleColor</key>
<string>#333333</string>
<key>editButtonTitleColorDark</key>
<string>#DDDDDD</string>
<key>cancelButtonTitleColor</key>
<string>#333333</string>
<key>cancelButtonTitleColorDark</key>
<string>#DDDDDD</string>
<key>backButtonColor</key>
<string>#333333</string>
<key>backButtonColorDark</key>
<string>#DDDDDD</string>
<key>navigationBarTitle</key>
<string>Test Navigation Bar Title</string>
</dict>
</plist>
6 changes: 3 additions & 3 deletions airship.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down
36 changes: 18 additions & 18 deletions binderator/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

<!-- Dependencies -->
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.3" />
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.6" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Airship.Net\Airship.Net.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion src/Airship.Net/Airship.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<!-- Dependencies -->

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.3" />
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.6" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-android'">
<ProjectReference Include="..\..\binderator\generated\Airship.Net.Android.Automation\Airship.Net.Android.Automation.csproj" />
Expand Down
4 changes: 2 additions & 2 deletions src/Airship.Net/Platforms/iOS/Airship.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<int> messageCount)
Expand Down
2 changes: 1 addition & 1 deletion src/SharedAssemblyInfo.Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
2 changes: 1 addition & 1 deletion src/SharedAssemblyInfo.CrossPlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

2 changes: 1 addition & 1 deletion src/SharedAssemblyInfo.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Loading