-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating Xamarin plugins for version 1.27.0
- Loading branch information
Showing
171 changed files
with
938 additions
and
511 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-25.5 KB
(98%)
appboy-component/lib/android/AppboyPlatform.AndroidBinding.dll
Binary file not shown.
Binary file modified
BIN
-10.9 KB
(95%)
appboy-component/lib/android/AppboyPlatform.AndroidBinding.pdb
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+7.99 KB
(100%)
appboy-component/lib/android/AppboyPlatform.AndroidCore.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-480 Bytes
(99%)
appboy-component/lib/android/Xamarin.AndroidX.Annotation.Experimental.dll
Binary file not shown.
Binary file modified
BIN
+176 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Annotation.Experimental.pdb
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+3.86 KB
(110%)
appboy-component/lib/android/Xamarin.AndroidX.Annotation.pdb
Binary file not shown.
Binary file modified
BIN
-16 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Arch.Core.Common.dll
Binary file not shown.
Binary file modified
BIN
+172 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Arch.Core.Common.pdb
Binary file not shown.
Binary file modified
BIN
-16 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Arch.Core.Runtime.dll
Binary file not shown.
Binary file modified
BIN
+172 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Arch.Core.Runtime.pdb
Binary file not shown.
Binary file modified
BIN
-16 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Collection.dll
Binary file not shown.
Binary file modified
BIN
+176 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Collection.pdb
Binary file not shown.
Binary file modified
BIN
-16 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Concurrent.Futures.dll
Binary file not shown.
Binary file modified
BIN
+176 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Concurrent.Futures.pdb
Binary file not shown.
Binary file modified
BIN
+48 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Core.Core.Ktx.dll
Binary file not shown.
Binary file modified
BIN
+168 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Core.Core.Ktx.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-8 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.CustomView.dll
Binary file not shown.
Binary file modified
BIN
+172 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.CustomView.pdb
Binary file not shown.
Binary file modified
BIN
+32 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.DocumentFile.dll
Binary file not shown.
Binary file modified
BIN
+176 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.DocumentFile.pdb
Binary file not shown.
Binary file modified
BIN
+496 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Fragment.dll
Binary file not shown.
Binary file modified
BIN
+752 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Fragment.pdb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Interpolator.dll
Binary file not shown.
Binary file modified
BIN
+176 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Interpolator.pdb
Binary file not shown.
Binary file modified
BIN
-480 Bytes
(98%)
appboy-component/lib/android/Xamarin.AndroidX.Legacy.Support.Core.Utils.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Legacy.Support.Core.Utils.pdb
Binary file not shown.
Binary file modified
BIN
+40 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Lifecycle.Common.dll
Binary file not shown.
Binary file modified
BIN
+176 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Lifecycle.Common.pdb
Binary file not shown.
Binary file modified
BIN
-488 Bytes
(99%)
appboy-component/lib/android/Xamarin.AndroidX.Lifecycle.LiveData.Core.dll
Binary file not shown.
Binary file modified
BIN
+176 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Lifecycle.LiveData.Core.pdb
Binary file not shown.
Binary file modified
BIN
-16 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Lifecycle.Runtime.dll
Binary file not shown.
Binary file modified
BIN
+172 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Lifecycle.Runtime.pdb
Binary file not shown.
Binary file modified
BIN
+17 KB
(140%)
appboy-component/lib/android/Xamarin.AndroidX.Lifecycle.ViewModel.dll
Binary file not shown.
Binary file modified
BIN
+7.3 KB
(130%)
appboy-component/lib/android/Xamarin.AndroidX.Lifecycle.ViewModel.pdb
Binary file not shown.
Binary file modified
BIN
+8 KB
(130%)
appboy-component/lib/android/Xamarin.AndroidX.Lifecycle.ViewModelSavedState.dll
Binary file not shown.
Binary file modified
BIN
+4.89 KB
(130%)
appboy-component/lib/android/Xamarin.AndroidX.Lifecycle.ViewModelSavedState.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-520 Bytes
(98%)
appboy-component/lib/android/Xamarin.AndroidX.LocalBroadcastManager.dll
Binary file not shown.
Binary file modified
BIN
+172 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.LocalBroadcastManager.pdb
Binary file not shown.
Binary file modified
BIN
-512 Bytes
(97%)
appboy-component/lib/android/Xamarin.AndroidX.MultiDex.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-488 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.RecyclerView.dll
Binary file not shown.
Binary file modified
BIN
+172 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.RecyclerView.pdb
Binary file not shown.
Binary file modified
BIN
+2.98 KB
(110%)
appboy-component/lib/android/Xamarin.AndroidX.SavedState.dll
Binary file not shown.
Binary file modified
BIN
+1.47 KB
(110%)
appboy-component/lib/android/Xamarin.AndroidX.SavedState.pdb
Binary file not shown.
Binary file modified
BIN
-16 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.SwipeRefreshLayout.dll
Binary file not shown.
Binary file modified
BIN
+172 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.SwipeRefreshLayout.pdb
Binary file not shown.
Binary file modified
BIN
-16 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Tracing.Tracing.dll
Binary file not shown.
Binary file modified
BIN
+172 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.Tracing.Tracing.pdb
Binary file not shown.
Binary file modified
BIN
+24 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.VersionedParcelable.dll
Binary file not shown.
Binary file modified
BIN
+172 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.VersionedParcelable.pdb
Binary file not shown.
Binary file modified
BIN
+40 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.ViewPager.dll
Binary file not shown.
Binary file modified
BIN
+172 Bytes
(100%)
appboy-component/lib/android/Xamarin.AndroidX.ViewPager.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+2.52 KB
(110%)
appboy-component/lib/android/Xamarin.Firebase.Annotations.dll
Binary file not shown.
Binary file modified
BIN
+812 Bytes
(110%)
appboy-component/lib/android/Xamarin.Firebase.Annotations.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+5.5 KB
(110%)
appboy-component/lib/android/Xamarin.Firebase.Components.dll
Binary file not shown.
Binary file modified
BIN
+2.06 KB
(110%)
appboy-component/lib/android/Xamarin.Firebase.Components.pdb
Binary file not shown.
Binary file modified
BIN
-1008 Bytes
(97%)
appboy-component/lib/android/Xamarin.Firebase.Datatransport.dll
Binary file not shown.
Binary file modified
BIN
+316 Bytes
(100%)
appboy-component/lib/android/Xamarin.Firebase.Datatransport.pdb
Binary file not shown.
Binary file modified
BIN
+8 Bytes
(100%)
appboy-component/lib/android/Xamarin.Firebase.Encoders.JSON.dll
Binary file not shown.
Binary file modified
BIN
+12 Bytes
(100%)
appboy-component/lib/android/Xamarin.Firebase.Encoders.JSON.pdb
Binary file not shown.
Binary file modified
BIN
+32 Bytes
(100%)
appboy-component/lib/android/Xamarin.Firebase.Encoders.Proto.dll
Binary file not shown.
Binary file modified
BIN
+20 Bytes
(100%)
appboy-component/lib/android/Xamarin.Firebase.Encoders.Proto.pdb
Binary file not shown.
Binary file modified
BIN
+24 Bytes
(100%)
appboy-component/lib/android/Xamarin.Firebase.Encoders.dll
Binary file not shown.
Binary file modified
BIN
+24 Bytes
(100%)
appboy-component/lib/android/Xamarin.Firebase.Encoders.pdb
Binary file not shown.
Binary file modified
BIN
-488 Bytes
(99%)
appboy-component/lib/android/Xamarin.Firebase.Iid.Interop.dll
Binary file not shown.
Binary file modified
BIN
+12 Bytes
(100%)
appboy-component/lib/android/Xamarin.Firebase.Iid.Interop.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-1000 Bytes
(98%)
appboy-component/lib/android/Xamarin.Firebase.Installations.InterOp.dll
Binary file not shown.
Binary file modified
BIN
+244 Bytes
(100%)
appboy-component/lib/android/Xamarin.Firebase.Installations.InterOp.pdb
Binary file not shown.
Binary file modified
BIN
-496 Bytes
(100%)
appboy-component/lib/android/Xamarin.Firebase.Installations.dll
Binary file not shown.
Binary file modified
BIN
+240 Bytes
(100%)
appboy-component/lib/android/Xamarin.Firebase.Installations.pdb
Binary file not shown.
Binary file modified
BIN
+62 KB
(200%)
appboy-component/lib/android/Xamarin.Firebase.Measurement.Connector.dll
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
appboy-component/lib/android/Xamarin.Firebase.Measurement.Connector.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+32 Bytes
(100%)
appboy-component/lib/android/Xamarin.Google.Android.DataTransport.TransportApi.dll
Binary file not shown.
Binary file modified
BIN
+8 Bytes
(100%)
appboy-component/lib/android/Xamarin.Google.Android.DataTransport.TransportBackendCct.dll
Binary file not shown.
Binary file modified
BIN
+3.52 KB
(100%)
appboy-component/lib/android/Xamarin.Google.Android.DataTransport.TransportRuntime.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
appboy-component/lib/android/Xamarin.Google.AutoValue.Annotations.dll
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+99.4 KB
appboy-component/lib/android/Xamarin.Google.ErrorProne.Annotations.dll
Binary file not shown.
8 changes: 8 additions & 0 deletions
8
appboy-component/lib/android/Xamarin.Google.ErrorProne.Annotations.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
appboy-component/lib/android/Xamarin.Google.Guava.ListenableFuture.dll
Binary file not shown.
Binary file modified
BIN
+127 KB
(110%)
appboy-component/lib/android/Xamarin.GooglePlayServices.Base.dll
Binary file not shown.
Binary file modified
BIN
+25.1 KB
(110%)
appboy-component/lib/android/Xamarin.GooglePlayServices.Base.pdb
Binary file not shown.
Binary file modified
BIN
+15.5 KB
(100%)
appboy-component/lib/android/Xamarin.GooglePlayServices.Basement.dll
Binary file not shown.
Binary file modified
BIN
+3.94 KB
(100%)
appboy-component/lib/android/Xamarin.GooglePlayServices.Basement.pdb
Binary file not shown.
Binary file modified
BIN
+24 Bytes
(100%)
appboy-component/lib/android/Xamarin.GooglePlayServices.CloudMessaging.dll
Binary file not shown.
Binary file modified
BIN
+16 Bytes
(100%)
appboy-component/lib/android/Xamarin.GooglePlayServices.CloudMessaging.pdb
Binary file not shown.
Binary file modified
BIN
-16 Bytes
(100%)
appboy-component/lib/android/Xamarin.GooglePlayServices.Stats.dll
Binary file not shown.
Binary file modified
BIN
+16 Bytes
(100%)
appboy-component/lib/android/Xamarin.GooglePlayServices.Stats.pdb
Binary file not shown.
Binary file modified
BIN
+6.01 KB
(100%)
appboy-component/lib/android/Xamarin.GooglePlayServices.Tasks.dll
Binary file not shown.
Binary file modified
BIN
+32 Bytes
(100%)
appboy-component/lib/android/Xamarin.GooglePlayServices.Tasks.pdb
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+4.52 KB
(100%)
appboy-component/lib/android/Xamarin.Jetbrains.Annotations.dll
Binary file not shown.
Binary file modified
BIN
+32 Bytes
(100%)
appboy-component/lib/android/Xamarin.Kotlin.StdLib.Common.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-472 Bytes
(98%)
appboy-component/lib/android/Xamarin.KotlinX.Coroutines.Android.dll
Binary file not shown.
Binary file modified
BIN
-1.48 KB
(100%)
appboy-component/lib/android/Xamarin.KotlinX.Coroutines.Core.Jvm.dll
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
appboy-component/nuget/BrazePlatform.BrazeAndroidBinding.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> | ||
<metadata> | ||
<id>BrazePlatform.BrazeAndroidBinding</id> | ||
<version>1.27.0</version> | ||
<authors>Braze</authors> | ||
<owners>Braze</owners> | ||
<projectUrl>https://github.com/Appboy/appboy-xamarin-bindings</projectUrl> | ||
<license type="file">LICENSE.txt</license> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>Braze Xamarin Android .NET-6 Binding</description> | ||
<releaseNotes></releaseNotes> | ||
<copyright>Copyright 2023</copyright> | ||
<tags>Braze Appboy</tags> | ||
<dependencies> | ||
<group targetFramework="net6.0-android33.0"> | ||
<dependency id="Xamarin.AndroidX.Fragment" version="1.5.5.1" /> | ||
<dependency id="Xamarin.AndroidX.SwipeRefreshLayout" version="1.1.0.11" /> | ||
<dependency id="Xamarin.Firebase.Messaging" version="123.1.1" /> | ||
<dependency id="Xamarin.Kotlin.StdLib" version="1.8.0.1" /> | ||
<dependency id="Xamarin.KotlinX.Coroutines.Android" version="1.6.4.2" /> | ||
<dependency id="Xamarin.AndroidX.WebKit" version="1.5.0.2" /> | ||
<dependency id="Xamarin.AndroidX.RecyclerView" version="1.2.1.9" /> | ||
</group> | ||
</dependencies> | ||
</metadata> | ||
<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-24.2.0.aar" target="lib/net6.0-android33.0/android-sdk-base-24.2.0.aar" /> | ||
<file src="../src/androidnet6/BrazeAndroidNet6Binding/android-sdk-ui-24.2.0.aar" target="lib/net6.0-android33.0/android-sdk-ui-24.2.0.aar" /> | ||
<file src="../../Public/braze-logo.png" target="images/" /> | ||
<file src="../../Public/LICENSE.txt" target="" /> | ||
</files> | ||
</package> |
31 changes: 31 additions & 0 deletions
31
...omponent/samples/android-net-maui/BrazeAndroidMauiSampleApp/BrazeAndroidMauiSampleApp.sln
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 25.0.1704.4 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrazeAndroidMauiSampleApp", "BrazeAndroidMauiSampleApp\BrazeAndroidMauiSampleApp.csproj", "{1FD2A5D8-6857-4C08-971C-A61617837906}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BrazeAndroidBinding", "..\..\..\src\androidnet6\BrazeAndroidNet6Binding\BrazeAndroidBinding.csproj", "{B30F7AA0-BB3D-4BE1-ACC4-548F7B678E50}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{1FD2A5D8-6857-4C08-971C-A61617837906}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{1FD2A5D8-6857-4C08-971C-A61617837906}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{1FD2A5D8-6857-4C08-971C-A61617837906}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{1FD2A5D8-6857-4C08-971C-A61617837906}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{B30F7AA0-BB3D-4BE1-ACC4-548F7B678E50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{B30F7AA0-BB3D-4BE1-ACC4-548F7B678E50}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{B30F7AA0-BB3D-4BE1-ACC4-548F7B678E50}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{B30F7AA0-BB3D-4BE1-ACC4-548F7B678E50}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {5B5D1CCE-E83B-4408-B961-DAFFDFE0E4E2} | ||
EndGlobalSection | ||
EndGlobal |
14 changes: 14 additions & 0 deletions
14
.../android-net-maui/BrazeAndroidMauiSampleApp/BrazeAndroidMauiSampleApp/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.braze.xamarinnet6" android:versionCode="1" android:versionName="1.0"> | ||
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:label="@string/app_name" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"> | ||
<service | ||
android:name="com.braze.push.BrazeFirebaseMessagingService" | ||
android:exported="false"> | ||
<intent-filter> | ||
<action android:name="com.google.firebase.MESSAGING_EVENT" /> | ||
</intent-filter> | ||
</service> | ||
</application> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="33" /> | ||
</manifest> |
33 changes: 33 additions & 0 deletions
33
...maui/BrazeAndroidMauiSampleApp/BrazeAndroidMauiSampleApp/BrazeAndroidMauiSampleApp.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0-android33.0</TargetFramework> | ||
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion> | ||
<OutputType>Exe</OutputType> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<ApplicationId>com.braze.xamarinnet6</ApplicationId> | ||
<ApplicationVersion>1</ApplicationVersion> | ||
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " /> | ||
<ItemGroup> | ||
<PackageReference Include="Xamarin.Kotlin.StdLib" Version="1.8.0.1" /> | ||
<PackageReference Include="Xamarin.KotlinX.Coroutines.Android" Version="1.6.4.2" /> | ||
<PackageReference Include="Xamarin.Firebase.Messaging" Version="123.1.1" /> | ||
<PackageReference Include="Xamarin.AndroidX.SwipeRefreshLayout" Version="1.1.0.11" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Remove="Xamarin.Firebase.Messaging" /> | ||
<None Remove="Xamarin.AndroidX.Fragment" /> | ||
<None Remove="Xamarin.AndroidX.SwipeRefreshLayout" /> | ||
<None Remove="BrazeAndroidBinding" /> | ||
<None Remove="Xamarin.AndroidX.AppCompat" /> | ||
<None Remove="BrazePlatform.BrazeAndroidBinding" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\..\..\src\androidnet6\BrazeAndroidNet6Binding\BrazeAndroidBinding.csproj" /> | ||
</ItemGroup> | ||
</Project> |
108 changes: 108 additions & 0 deletions
108
...ples/android-net-maui/BrazeAndroidMauiSampleApp/BrazeAndroidMauiSampleApp/MainActivity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
using Android.Content.PM; | ||
using Com.Braze.UI; | ||
using Com.Braze.Enums; | ||
using Com.Braze.Models.Outgoing; | ||
using Com.Braze; | ||
using Com.Braze.Enums.Inappmessage; | ||
using Com.Braze.Push; | ||
using Com.Braze.Models.Inappmessage; | ||
using Com.Braze.UI.Contentcards; | ||
using Com.Braze.UI.Inappmessage; | ||
using Com.Braze.Models; | ||
using Com.Braze.Support; | ||
using Com.Braze.UI.Activities; | ||
using Android.Gms.Common; | ||
using Android.Content; | ||
using Java.Lang; | ||
|
||
namespace BrazeAndroidMauiSampleApp; | ||
|
||
[Activity(Label = "@string/app_name", MainLauncher = true)] | ||
public class MainActivity : Activity | ||
{ | ||
protected override void OnCreate(Bundle? savedInstanceState) | ||
{ | ||
base.OnCreate(savedInstanceState); | ||
|
||
// Set our view from the "main" layout resource | ||
SetContentView(Resource.Layout.activity_main); | ||
ContentCardsFragment fragment = new ContentCardsFragment(); | ||
BrazeFirebaseMessagingService brazeFirebaseMessagingService = new BrazeFirebaseMessagingService(); | ||
IList<FeatureFlag> allFeatureFlags = Braze.GetInstance(this).AllFeatureFlags; | ||
BrazeLogger.D("HomeFragment num feature flags", allFeatureFlags.Count.ToString()); | ||
|
||
// Change User | ||
FindViewById<Button>(Resource.Id.changeUserButton).Click += delegate | ||
{ | ||
System.String userId = "xam-" + (new Random().Next() % 1001); | ||
Braze.GetInstance(this).ChangeUser(userId); | ||
FindViewById<TextView>(Resource.Id.userId).Text = "UserId: " + userId; | ||
}; | ||
|
||
// Set User Properties | ||
FindViewById<Button>(Resource.Id.userPropertyButton).Click += delegate | ||
{ | ||
Braze.GetInstance(this).CurrentUser.SetCountry("USA"); | ||
Braze.GetInstance(this).CurrentUser.SetDateOfBirth(1987, Month.September, 21); | ||
Braze.GetInstance(this).CurrentUser.SetEmail("[email protected]"); | ||
Braze.GetInstance(this).CurrentUser.SetFirstName("Brian"); | ||
Braze.GetInstance(this).CurrentUser.SetLastName("Wheeler"); | ||
Braze.GetInstance(this).CurrentUser.SetHomeCity("Mountain View"); | ||
Braze.GetInstance(this).CurrentUser.SetPhoneNumber("5555555555"); | ||
Braze.GetInstance(this).CurrentUser.SetCustomUserAttribute("customAttributeKey", true); | ||
Braze.GetInstance(this).CurrentUser.SetEmailNotificationSubscriptionType(NotificationSubscriptionType.OptedIn); | ||
Braze.GetInstance(this).CurrentUser.SetGender(Gender.Male); | ||
Braze.GetInstance(this).CurrentUser.SetAttributionData(new AttributionData("a", "b", "c", "d")); | ||
Braze.GetInstance(this).CurrentUser.AddToSubscriptionGroup("group-id-here"); | ||
Braze.GetInstance(this).CurrentUser.RemoveFromSubscriptionGroup("another-group-id"); | ||
}; | ||
|
||
// Events and purchases | ||
FindViewById<Button>(Resource.Id.eventsAndPurchasesButton).Click += delegate | ||
{ | ||
Braze.GetInstance(this).LogCustomEvent("myCustomEvent"); | ||
Braze.GetInstance(this).LogPurchase("myProduct", "USD", new Java.Math.BigDecimal(3.50)); | ||
}; | ||
|
||
// Content Cards | ||
FindViewById<Button>(Resource.Id.launchContentCardsButton).Click += delegate | ||
{ | ||
ContentCardsActivity contentCards = new ContentCardsActivity(); | ||
Intent intent = new Intent(this, contentCards.Class); | ||
StartActivity(intent); | ||
}; | ||
|
||
// In-App Message | ||
FindViewById<Button>(Resource.Id.addInAppMessageButton).Click += delegate | ||
{ | ||
InAppMessageSlideup slideup = new InAppMessageSlideup(); | ||
slideup.Message = "This is the message"; | ||
slideup.SetClickBehavior(ClickAction.Uri, Android.Net.Uri.Parse("http://braze.com")); | ||
BrazeInAppMessageManager.Instance.AddInAppMessage(slideup); | ||
}; | ||
|
||
// Request Data Flush | ||
FindViewById<Button>(Resource.Id.dataFlushButton).Click += delegate | ||
{ | ||
Braze.GetInstance(this).RequestImmediateDataFlush(); | ||
}; | ||
|
||
// Wipe Data | ||
FindViewById<Button>(Resource.Id.wipeDataButton).Click += delegate | ||
{ | ||
Braze.WipeData(this); | ||
}; | ||
|
||
// Disable SDK | ||
FindViewById<Button>(Resource.Id.disableSDKButton).Click += delegate | ||
{ | ||
Braze.DisableSdk(this); | ||
}; | ||
|
||
// Enable SDK | ||
FindViewById<Button>(Resource.Id.enableSDKButton).Click += delegate | ||
{ | ||
Braze.EnableSdk(this); | ||
}; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...s/android-net-maui/BrazeAndroidMauiSampleApp/BrazeAndroidMauiSampleApp/MainApplication.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Android.Runtime; | ||
using Com.Braze; | ||
|
||
namespace BrazeAndroidMauiSampleApp; | ||
|
||
[Application] | ||
public class MainApplication : Application | ||
{ | ||
protected MainApplication(System.IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer) | ||
{ | ||
} | ||
|
||
public override void OnCreate() | ||
{ | ||
base.OnCreate(); | ||
RegisterActivityLifecycleCallbacks(new BrazeActivityLifecycleCallbackListener()); | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
...ui/BrazeAndroidMauiSampleApp/BrazeAndroidMauiSampleApp/Resources/layout/activity_main.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:orientation="vertical" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:minWidth="25px" | ||
android:minHeight="25px"> | ||
<TextView | ||
android:id="@+id/userId" | ||
android:text="@string/userId" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" /> | ||
<Button | ||
android:id="@+id/changeUserButton" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/changeUser" /> | ||
<Button | ||
android:text="@string/setUserProperties" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/userPropertyButton" /> | ||
<Button | ||
android:text="@string/eventsAndPurchases" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/eventsAndPurchasesButton" /> | ||
<Button | ||
android:text="@string/trackSocialData" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/trackSocialDataButton" /> | ||
<Button | ||
android:text="@string/launchContentCards" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/launchContentCardsButton" /> | ||
<Button | ||
android:text="@string/addNewInAppMessage" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/addInAppMessageButton" /> | ||
<Button | ||
android:text="@string/dataFlush" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/dataFlushButton" /> | ||
<Button | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/wipeDataButton" | ||
android:text="Wipe Data" /> | ||
<Button | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/enableSDKButton" | ||
android:text="Enable SDK" /> | ||
<Button | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/disableSDKButton" | ||
android:text="Disable SDK" /> | ||
</LinearLayout> |
5 changes: 5 additions & 0 deletions
5
...azeAndroidMauiSampleApp/BrazeAndroidMauiSampleApp/Resources/mipmap-anydpi-v26/appicon.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@mipmap/appicon_background" /> | ||
<foreground android:drawable="@mipmap/appicon_foreground" /> | ||
</adaptive-icon> | ||
|
5 changes: 5 additions & 0 deletions
5
...roidMauiSampleApp/BrazeAndroidMauiSampleApp/Resources/mipmap-anydpi-v26/appicon_round.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@mipmap/appicon_background" /> | ||
<foreground android:drawable="@mipmap/appicon_foreground" /> | ||
</adaptive-icon> | ||
|
Binary file added
BIN
+688 Bytes
...ndroidMauiSampleApp/BrazeAndroidMauiSampleApp/Resources/mipmap-hdpi/appicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+97 Bytes
...ampleApp/BrazeAndroidMauiSampleApp/Resources/mipmap-hdpi/appicon_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.25 KB
...ampleApp/BrazeAndroidMauiSampleApp/Resources/mipmap-hdpi/appicon_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+604 Bytes
...ndroidMauiSampleApp/BrazeAndroidMauiSampleApp/Resources/mipmap-mdpi/appicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+92 Bytes
...ampleApp/BrazeAndroidMauiSampleApp/Resources/mipmap-mdpi/appicon_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.24 KB
...ampleApp/BrazeAndroidMauiSampleApp/Resources/mipmap-mdpi/appicon_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+830 Bytes
...droidMauiSampleApp/BrazeAndroidMauiSampleApp/Resources/mipmap-xhdpi/appicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+100 Bytes
...mpleApp/BrazeAndroidMauiSampleApp/Resources/mipmap-xhdpi/appicon_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.76 KB
...mpleApp/BrazeAndroidMauiSampleApp/Resources/mipmap-xhdpi/appicon_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+978 Bytes
...roidMauiSampleApp/BrazeAndroidMauiSampleApp/Resources/mipmap-xxhdpi/appicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+108 Bytes
...pleApp/BrazeAndroidMauiSampleApp/Resources/mipmap-xxhdpi/appicon_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.88 KB
...pleApp/BrazeAndroidMauiSampleApp/Resources/mipmap-xxhdpi/appicon_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.26 KB
...oidMauiSampleApp/BrazeAndroidMauiSampleApp/Resources/mipmap-xxxhdpi/appicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+117 Bytes
...leApp/BrazeAndroidMauiSampleApp/Resources/mipmap-xxxhdpi/appicon_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.74 KB
...leApp/BrazeAndroidMauiSampleApp/Resources/mipmap-xxxhdpi/appicon_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.