Skip to content

Commit

Permalink
Updating Xamarin SDK for version 3.0.0
Browse files Browse the repository at this point in the history
hokstuff committed Jan 10, 2024
1 parent 88993af commit d8371ed
Showing 1,134 changed files with 49,393 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -41,4 +41,4 @@ build

# Visual Studio
**/.vs
*.code-workspace
*.code-workspace
24 changes: 23 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
## 3.0.0

#### Breaking
- The NuGet package has been renamed from `AppboyPlatformXamariniOSBinding` to [`BrazePlatform.BrazeiOSBinding`](https://www.nuget.org/packages/BrazePlatform.BrazeiOSBinding/).
- To use the updated package, replace any instances of `using AppboyPlatformXamariniOSBinding;` with:
```
using Braze;
```
- Updated the Android binding from [Braze Android SDK 26.3.2 to 29.0.1](https://github.com/braze-inc/braze-android-sdk/compare/v26.3.1...v29.0.1#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed).

##### Fixed
- Fixed an issue where some Android `set` methods were being hidden by the Xamarin framework.

##### Added
- Added support for .NET 6 (or newer) and support for projects using [.NET MAUI](https://learn.microsoft.com/en-us/dotnet/maui/what-is-maui?view=net-maui-8.0).
- For a reference iOS implementation, see `BrazeiOSMauiSampleApp.sln`.
- Updated the iOS binding from [Braze iOS SDK 4.4.1 to 4.6.0](https://github.com/Appboy/appboy-ios-sdk/compare/4.4.1...4.6.0#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed).
- The underlying iOS assets have been updated to use XCFrameworks:
- `Appboy_iOS_SDK.framework` -> `Appboy_iOS_SDK.xcframework`
- `SDWebImage.framework` -> `SDWebImage.xcframework`

## 2.0.1

##### Fixed
@@ -13,7 +34,8 @@
## 1.27.0

##### Added
- Added `BrazePlatform.BrazeAndroidBinding` which introduces .NET-6 framework support for MAUI.
- Added `BrazePlatform.BrazeAndroidBinding` which introduces .NET 6+ framework support for MAUI.
- This package is available [here on Nuget](https://www.nuget.org/packages/BrazePlatform.BrazeAndroidBinding/).
- Updated the Android binding to use [Braze Android SDK 24.2.0](https://github.com/Appboy/appboy-android-sdk/blob/master/CHANGELOG.md#2420).

## 1.26.0
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -22,6 +22,15 @@ contain:
- samples: Xamarin applications that show how to use the bindings to access the Braze feature set.
- nuget: Nuspec files for our Xamarin Nuget packages.

## Versioning

| Binding file name | Supported Xamarin Frameworks | Native Braze framework | Braze Xamarin SDK version|
|-|-|-|-|
|`BrazeAndroidBinding.sln`|.NET 6+ |Android SDK 24.2.0+|1.27.0+
|`AppboyPlatform.XamarinAndroidBinding.sln`|Xamarin.Android,<br/>Xamarin.Forms,<br/>.NET 5 and before| Android SDK 23.3.0 and before| 1.26.0 and before|
|`BrazeiOSBinding.sln`|.NET 6+|`Appboy_iOS_SDK.xcframework` version 4.6.0+|1.28.0+
|`AppboyPlatformXamariniOSBinding.sln`|Xamarin.iOS,<br/>Xamarin.Forms,<br/>.NET 5 and before|`Appboy_iOS_SDK.framework` version 4.4.1 and before| 1.27.0 and before

## Questions?

If you have questions, please contact [support@braze.com](mailto:support@braze.com).
Binary file modified appboy-component/lib/android/AppboyPlatform.AndroidCore.dll
Binary file not shown.
Binary file modified appboy-component/lib/android/AppboyPlatform.AndroidCore.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>BrazePlatform.BrazeAndroidBinding</id>
<version>2.0.0</version>
<version>3.0.0</version>
<authors>Braze</authors>
<owners>Braze</owners>
<projectUrl>https://github.com/braze-inc/braze-xamarin-sdk</projectUrl>
@@ -27,8 +27,8 @@
<files>
<file src="../src/androidnet6/BrazeAndroidNet6Binding/bin/Debug/net6.0-android33.0/BrazeAndroidBinding.dll" target="lib/net6.0-android33.0/BrazeAndroidBinding.dll" />
<file src="../src/androidnet6/BrazeAndroidNet6Binding/bin/Debug/net6.0-android33.0/BrazeAndroidBinding.xml" target="lib/net6.0-android33.0/BrazeAndroidBinding.xml" />
<file src="../src/androidnet6/BrazeAndroidNet6Binding/android-sdk-base-26.3.2.aar" target="lib/net6.0-android33.0/android-sdk-base-26.3.2.aar" />
<file src="../src/androidnet6/BrazeAndroidNet6Binding/android-sdk-ui-26.3.2.aar" target="lib/net6.0-android33.0/android-sdk-ui-26.3.2.aar" />
<file src="../src/androidnet6/BrazeAndroidNet6Binding/android-sdk-base-29.0.1.aar" target="lib/net6.0-android33.0/android-sdk-base-29.0.1.aar" />
<file src="../src/androidnet6/BrazeAndroidNet6Binding/android-sdk-ui-29.0.1.aar" target="lib/net6.0-android33.0/android-sdk-ui-29.0.1.aar" />
<file src="../../Public/braze-logo.png" target="images/" />
<file src="../../Public/LICENSE.txt" target="" />
</files>
27 changes: 27 additions & 0 deletions appboy-component/nuget/BrazePlatform.BrazeiOSBinding.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<package>
<metadata>
<id>BrazePlatform.BrazeiOSBinding</id>
<version>3.0.0</version>
<authors>Braze</authors>
<owners>Braze</owners>
<projectUrl>https://github.com/braze-inc/braze-xamarin-sdk</projectUrl>
<license type="file">LICENSE.txt</license>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Braze Xamarin iOS .NET-6 Binding</description>
<releaseNotes></releaseNotes>
<copyright>Copyright 2023</copyright>
<tags>Braze Appboy</tags>
<dependencies>
<group targetFramework="net6.0-ios11.0" />
</dependencies>
</metadata>
<files>
<file src="../src/iosnet6/BrazeiOSNet6Binding/bin/Debug/net6.0-ios11.0/BrazeiOSBinding.dll" target="lib/net6.0-ios11.0" />
<file src="../src/iosnet6/BrazeiOSNet6Binding/bin/Debug/net6.0-ios11.0/BrazeiOSBinding.pdb" target="lib/net6.0-ios11.0" />
<file src="../src/iosnet6/BrazeiOSNet6Binding/bin/Debug/net6.0-ios11.0/BrazeiOSBinding.resources/**/*" target="res/ios" />
<file src="../src/iosnet6/BrazePlatform.BrazeiOSBinding.targets" target="build/net6.0-ios11.0/" />
<file src="../../Public/braze-logo.png" target="images/" />
<file src="../../Public/LICENSE.txt" target="" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 17.0.31611.283
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrazeiOSMauiSampleApp", "BrazeiOSMauiSampleApp\BrazeiOSMauiSampleApp.csproj", "{F8E54375-8503-4804-AF19-B07766AC4580}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrazeiOSBinding", "..\..\..\src\iosnet6\BrazeiOSNet6Binding\BrazeiOSBinding.csproj", "{1FBB2702-B2CE-48A1-8EE0-112636BBB524}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F8E54375-8503-4804-AF19-B07766AC4580}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F8E54375-8503-4804-AF19-B07766AC4580}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F8E54375-8503-4804-AF19-B07766AC4580}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{F8E54375-8503-4804-AF19-B07766AC4580}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F8E54375-8503-4804-AF19-B07766AC4580}.Release|Any CPU.Build.0 = Release|Any CPU
{F8E54375-8503-4804-AF19-B07766AC4580}.Release|Any CPU.Deploy.0 = Release|Any CPU
{1FBB2702-B2CE-48A1-8EE0-112636BBB524}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1FBB2702-B2CE-48A1-8EE0-112636BBB524}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1FBB2702-B2CE-48A1-8EE0-112636BBB524}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1FBB2702-B2CE-48A1-8EE0-112636BBB524}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {61F7FB11-1E47-470C-91E2-47F8143E1572}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version = "1.0" encoding = "UTF-8" ?>
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:BrazeiOSMauiSampleApp"
x:Class="BrazeiOSMauiSampleApp.App">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resources/Styles/Colors.xaml" />
<ResourceDictionary Source="Resources/Styles/Styles.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace BrazeiOSMauiSampleApp;

public partial class App : Application
{
public App()
{
InitializeComponent();

MainPage = new NavigationPage(new MainPage());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0-ios</TargetFrameworks>

<OutputType>Exe</OutputType>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>

<!-- App Identifier -->
<ApplicationTitle>BrazeiOSMauiSampleApp</ApplicationTitle>
<ApplicationId>com.braze.BrazeiOSMauiSampleApp</ApplicationId>
<ApplicationIdGuid>38a0e2f7-8154-4ac3-b3eb-0a90679a4fe0</ApplicationIdGuid>

<!-- Versions -->
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>
<SupportedOSPlatformVersion>11.0</SupportedOSPlatformVersion>
</PropertyGroup>

<PropertyGroup>
<CreatePackage>false</CreatePackage>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\..\src\iosnet6\BrazeiOSNet6Binding\BrazeiOSBinding.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="BrazeiOSMauiSampleApp.MainPage">
<!--Nothing here because we add views programmatically in the c# file-->

</ContentPage>
Loading

0 comments on commit d8371ed

Please sign in to comment.