-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android: Allow clearnet connections with DEBUG flag
- Loading branch information
1 parent
c9ba7ac
commit 9657762
Showing
1 changed file
with
6 additions
and
7 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
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(); | ||
} |