Skip to content

Commit

Permalink
Android: Allow clearnet connections with DEBUG flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisreimann committed Apr 30, 2024
1 parent c9ba7ac commit 9657762
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions BTCPayApp.Maui/Platforms/Android/MainApplication.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
using Android.App;
using Android.Runtime;

namespace BTCPayApp.Maui.Platforms.Android;
namespace BTCPayApp.Maui;

#if DEBUG
[Application(UsesCleartextTraffic = true)]
#else
[Application]
public class MainApplication : MauiApplication
#endif
public class MainApplication(IntPtr handle, JniHandleOwnership ownership) : MauiApplication(handle, ownership)
{
public MainApplication(IntPtr handle, JniHandleOwnership ownership)
: base(handle, ownership)
{
}

protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
}

0 comments on commit 9657762

Please sign in to comment.