Skip to content

Commit

Permalink
Release 17.1.0 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyaganeh authored Jul 25, 2023
1 parent 98a7431 commit e30dda8
Show file tree
Hide file tree
Showing 30 changed files with 98 additions and 59 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: CI
on: [pull_request]

env:
DEVELOPER_DIR: /Applications/Xcode.app
DEVELOPER_DIR: /Applications/Xcode_14.3.1.app
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1

jobs:
ci:
runs-on: macOS-latest
runs-on: macOS-13
steps:
- uses: actions/checkout@v2

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:
- "[0-9]+.[0-9]+.[0-9]+*"

env:
DEVELOPER_DIR: /Applications/Xcode.app
DEVELOPER_DIR: /Applications/Xcode_14.3.1.app
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1

jobs:
release:
runs-on: macOS-latest
runs-on: macOS-13
steps:
- uses: actions/checkout@v2

Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Airship Xamarin Changelog

## Version 17.1.0 - July 24, 2023
Minor release that updates Airship SDKs to the latest 16.x releases and fixes issues with bitcode for iOS.

### Changes
- Android SDK version 16.11.1
- iOS SDK version 16.12.3

## Version 17.0.0 - March 17, 2023
Major release to support MAUI. The Airship .NET SDK targets .NET 6.0, and is compatible with
Android 5.0+ (API 21+) and iOS 13+, using the latest supported release of Xcode (currently 14.2).
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" == 16.11.3
github "urbanairship/ios-library" == 16.12.3
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>16.9.1</AirshipAndroidVersion>
<AirshipAndroidNugetVersion>16.9.1</AirshipAndroidNugetVersion>
<AirshipAndroidVersion>16.11.1</AirshipAndroidVersion>
<AirshipAndroidNugetVersion>16.11.1</AirshipAndroidNugetVersion>

<AirshipIosVersion>16.11.3</AirshipIosVersion>
<AirshipIosNugetVersion>16.11.3</AirshipIosNugetVersion>
<AirshipIosVersion>16.12.3</AirshipIosVersion>
<AirshipIosNugetVersion>16.12.3</AirshipIosNugetVersion>

<!-- Airship.Net version -->
<AirshipCrossPlatformVersion>17.0.0</AirshipCrossPlatformVersion>
<AirshipCrossPlatformNugetVersion>17.0.0</AirshipCrossPlatformNugetVersion>
<AirshipCrossPlatformVersion>17.1.0</AirshipCrossPlatformVersion>
<AirshipCrossPlatformNugetVersion>17.1.0</AirshipCrossPlatformNugetVersion>
</PropertyGroup>

<!-- Nuget packaging metadata -->
Expand Down
9 changes: 6 additions & 3 deletions airship.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Airship native SDK versions
iosVersion = 16.11.3
androidVersion = 16.9.1
iosVersion = 16.12.3
androidVersion = 16.11.1

# Airship.Net cross-platform version
crossPlatformVersion = 17.0.0
crossPlatformVersion = 17.1.0

# Filename of the iOS SDK zip file
iosFrameworkZip = Airship-Xcode14.zip

# NuGet package revision numbers
# If > 0, the revision number will be added to the versions
Expand Down
15 changes: 12 additions & 3 deletions binderator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,17 @@ tasks {
}

register<Delete>("clean") {
delete(file("build").listFiles())
delete(file("externals").listFiles())
delete(file(binderatorGeneratedDir).listFiles())
val buildDir = file("build")
if (buildDir.exists()) {
delete(buildDir.listFiles())
}

val externalsDir = file("externals")
delete(externalsDir.listFiles())

val generatedDir = file(binderatorGeneratedDir)
if (generatedDir.exists()) {
delete(generatedDir.listFiles())
}
}
}
28 changes: 14 additions & 14 deletions binderator/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,56 +17,56 @@
{
"groupId": "com.urbanairship.android",
"artifactId": "urbanairship-adm",
"version": "16.9.1",
"nugetVersion": "16.9.1",
"version": "16.11.1",
"nugetVersion": "16.11.1",
"nugetId": "Airship.Net.Android.Adm",
"dependencyOnly": false
},
{
"groupId": "com.urbanairship.android",
"artifactId": "urbanairship-automation",
"version": "16.9.1",
"nugetVersion": "16.9.1",
"version": "16.11.1",
"nugetVersion": "16.11.1",
"nugetId": "Airship.Net.Android.Automation",
"dependencyOnly": false
},
{
"groupId": "com.urbanairship.android",
"artifactId": "urbanairship-core",
"version": "16.9.1",
"nugetVersion": "16.9.1",
"version": "16.11.1",
"nugetVersion": "16.11.1",
"nugetId": "Airship.Net.Android.Core",
"dependencyOnly": false
},
{
"groupId": "com.urbanairship.android",
"artifactId": "urbanairship-fcm",
"version": "16.9.1",
"nugetVersion": "16.9.1",
"version": "16.11.1",
"nugetVersion": "16.11.1",
"nugetId": "Airship.Net.Android.Fcm",
"dependencyOnly": false
},
{
"groupId": "com.urbanairship.android",
"artifactId": "urbanairship-layout",
"version": "16.9.1",
"nugetVersion": "16.9.1",
"version": "16.11.1",
"nugetVersion": "16.11.1",
"nugetId": "Airship.Net.Android.Layout",
"dependencyOnly": false
},
{
"groupId": "com.urbanairship.android",
"artifactId": "urbanairship-message-center",
"version": "16.9.1",
"nugetVersion": "16.9.1",
"version": "16.11.1",
"nugetVersion": "16.11.1",
"nugetId": "Airship.Net.Android.MessageCenter",
"dependencyOnly": false
},
{
"groupId": "com.urbanairship.android",
"artifactId": "urbanairship-preference-center",
"version": "16.9.1",
"nugetVersion": "16.9.1",
"version": "16.11.1",
"nugetVersion": "16.11.1",
"nugetId": "Airship.Net.Android.PreferenceCenter",
"dependencyOnly": false
},
Expand Down
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ tasks.register('createLocalFeed') {
mustRunAfter('pack')

doLast() {
// add doesn't have a "-force" option, so first remove all the nuget packages from the local feed
// add doesn't have a "--force" option and "--skip-duplicates" doesn't work with pushes to local feeds,
// so first remove all the nuget packages from the local feed
File localNugetFeed = file("${rootDir}/local-nuget-feed")
localNugetFeed.deleteDir()
localNugetFeed.mkdirs()

// get all the nuget packages from the build directory
def nupkgs = buildDir.listFiles(new FilenameFilter() {
Expand All @@ -71,13 +73,13 @@ tasks.register('createLocalFeed') {
nupkgs.each { nupkg ->
// add the package to the local nuget feed
exec {
commandLine "nuget", "add", "$nupkg", "-source", "$localNugetFeed"
commandLine "dotnet", "nuget", "push", "$nupkg", "-s", "$localNugetFeed"
}
}

// clear the local nuget cache (so new packages with unchanged versions are used)
exec {
commandLine "nuget", "locals", "all", "-clear"
commandLine "dotnet", "nuget", "locals", "all", "--clear"
}
}
}
Expand Down Expand Up @@ -245,7 +247,7 @@ class PublishTask extends DefaultTask {
nupkgs.each { nupkg ->
// publish the package
getProject().exec {
commandLine "nuget", "push", "$nupkg", "-Source", "${nugetRepoURL}", "-ApiKey", "${nugetApiKey}", "-SkipDuplicate", "-NonInteractive"
commandLine "dotnet", "nuget", "push", "$nupkg", "--source", "${nugetRepoURL}", "--api-key", "${nugetApiKey}", "--skip-duplicate"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<RootNamespace>AirshipDotNet.MessageCenter</RootNamespace>
<IsTrimmable>false</IsTrimmable>

<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">13.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
Expand Down
12 changes: 6 additions & 6 deletions src/Airship.Net.MessageCenter/AirshipMessageCenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

namespace AirshipDotNet.MessageCenter
{
/// <summary>
/// Helper extensions to allow easy integration of Airship's built-in UIs.
/// </summary>
/// <summary>
/// Helper extensions to allow easy integration of Airship's built-in UIs.
/// </summary>
public static class MauiAppBuilderExtensions
{
/// <summary>
/// <c>MauiAppBuilder</c> extension that configures Airship Message Center handlers.
/// </summary>
/// <summary>
/// <c>MauiAppBuilder</c> extension that configures Airship Message Center handlers.
/// </summary>
public static MauiAppBuilder UseAirshipMessageCenter(this MauiAppBuilder builder)
{
builder.ConfigureMauiHandlers((h) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace AirshipDotNet.MessageCenter.Handlers;
/// <summary>
/// Handler responsible for displaying a single Message Center message via the platform MessageWebView.
/// </summary>
[Preserve(AllMembers = true)]
public partial class MessageViewHandler : ViewHandler<IMessageView, MessageWebView>
{
private UrbanAirship.MessageCenter.Message? message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace AirshipDotNet.MessageCenter.Handlers;
/// <summary>
/// Handler responsible for displaying a single Message Center message via the platform WKWebView.
/// </summary>
[Preserve(AllMembers = true)]
public partial class MessageViewHandler : ViewHandler<IMessageView, WKWebView>
{
public static PropertyMapper<IMessageView, MessageViewHandler> MessageViewMapper = new(ViewHandler.ViewMapper)
Expand Down
1 change: 1 addition & 0 deletions src/Airship.Net/Airship.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<RootNamespace>AirshipDotNet</RootNamespace>
<IsTrimmable>false</IsTrimmable>

<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">13.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
Expand Down
1 change: 1 addition & 0 deletions src/Airship.Net/MessageCenter/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace AirshipDotNet.MessageCenter
/// <summary>
/// A Message model object.
/// </summary>
[Preserve(AllMembers = true)]
public partial class Message
{
/// <summary>
Expand Down
13 changes: 13 additions & 0 deletions src/Airship.Net/PreserveAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;

namespace AirshipDotNet
{
/// Adds `Preserve` attribute support to control the linker.
[AttributeUsage(AttributeTargets.All)]
public sealed class PreserveAttribute : Attribute
{
public bool AllMembers;
public bool Conditional;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<IsBindingProject>true</IsBindingProject>
<IsTrimmable>true</IsTrimmable>
<IsTrimmable>false</IsTrimmable>
<AssemblyVersion>$(AirshipIosVersion)</AssemblyVersion>
<PackageVersion>$(AirshipIosNugetVersion)</PackageVersion>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<IsBindingProject>true</IsBindingProject>
<IsTrimmable>true</IsTrimmable>
<IsTrimmable>false</IsTrimmable>
<AssemblyVersion>$(AirshipIosVersion)</AssemblyVersion>
<PackageVersion>$(AirshipIosNugetVersion)</PackageVersion>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<IsBindingProject>true</IsBindingProject>
<IsTrimmable>true</IsTrimmable>
<IsTrimmable>false</IsTrimmable>
<AssemblyVersion>$(AirshipIosVersion)</AssemblyVersion>
<PackageVersion>$(AirshipIosNugetVersion)</PackageVersion>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<IsBindingProject>true</IsBindingProject>
<IsTrimmable>true</IsTrimmable>
<IsTrimmable>false</IsTrimmable>
<AssemblyVersion>$(AirshipIosVersion)</AssemblyVersion>
<PackageVersion>$(AirshipIosNugetVersion)</PackageVersion>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<IsBindingProject>true</IsBindingProject>
<IsTrimmable>true</IsTrimmable>
<IsTrimmable>false</IsTrimmable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AssemblyVersion>$(AirshipIosVersion)</AssemblyVersion>
<PackageVersion>$(AirshipIosNugetVersion)</PackageVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<TargetFramework>net6.0-ios</TargetFramework>
<DisableExtraReferences>true</DisableExtraReferences>
<Nullable>enable</Nullable>
<IsTrimmable>true</IsTrimmable>
<IsTrimmable>false</IsTrimmable>
<AssemblyVersion>$(AirshipIosVersion)</AssemblyVersion>
<PackageVersion>$(AirshipIosNugetVersion)</PackageVersion>
<ImplicitUsings>true</ImplicitUsings>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<IsBindingProject>true</IsBindingProject>
<IsTrimmable>true</IsTrimmable>
<IsTrimmable>false</IsTrimmable>
<AssemblyVersion>$(AirshipIosVersion)</AssemblyVersion>
<PackageVersion>$(AirshipIosNugetVersion)</PackageVersion>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<DisableExtraReferences>true</DisableExtraReferences>
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<IsTrimmable>true</IsTrimmable>
<IsTrimmable>false</IsTrimmable>
<AssemblyVersion>$(AirshipIosVersion)</AssemblyVersion>
<PackageVersion>$(AirshipIosNugetVersion)</PackageVersion>
<SupportedOSPlatformVersion>13.0</SupportedOSPlatformVersion>
Expand Down
3 changes: 2 additions & 1 deletion src/AirshipBindings.iOS.PreferenceCenter/ApiDefinitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ interface UAPreferenceAlertItem : IUAPreferenceItem
IUAPreferenceConditions[] Conditions { get; set; }
}

// @interface UAPreferenceAlertItemButton : NSObject
// @interface UAPreferenceAlertItemButton : NSObject
[Preserve(AllMembers = true)]
[BaseType(typeof(NSObject))]
interface UAPreferenceAlertItemButton
{
Expand Down
6 changes: 3 additions & 3 deletions src/AirshipBindings.iOS.common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ task syncVersion {

task downloadFrameworks {
doLast() {
def path = new File("${rootDir}/frameworks/Airship.zip")
def path = new File("${rootDir}/frameworks/${airshipProperties.iosFrameworkZip}")

if ( !path.exists() ) {
def url = new URL("https://github.com/urbanairship/ios-library/releases/download/${airshipProperties.iosVersion}/Airship.zip")
def url = new URL("https://github.com/urbanairship/ios-library/releases/download/${airshipProperties.iosVersion}/${airshipProperties.iosFrameworkZip}")
HttpURLConnection huc = (HttpURLConnection) url.openConnection()
huc.setRequestMethod("GET")
huc.connect();
Expand All @@ -41,7 +41,7 @@ task downloadFrameworks {
exec {
workingDir "${rootDir}/frameworks"
executable "unzip"
args "-u", "Airship.zip"
args "-u", "${airshipProperties.iosFrameworkZip}"
}
}
}
Expand Down
Loading

0 comments on commit e30dda8

Please sign in to comment.