Skip to content

Commit

Permalink
feat(templates): set server handled urls excludes for Android, iOS an…
Browse files Browse the repository at this point in the history
…d macOS in Boilerplate #7600 (#7601)
  • Loading branch information
ysmoradi authored May 27, 2024
1 parent 2396eaf commit 7bdc689
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,34 @@
"details": [
{
"appID": "76WD644YU8.com.bitplatform.AdminPanel.Template",
"paths": [ "*", "/*" ],
"components": [
{
"/": "/*",
"comment": "Matches any URL with a path that starts with /"
}
"paths": [
"NOT /api*",
"NOT /odata*",
"NOT /jobs*",
"NOT /core*",
"NOT /signalr*",
"NOT /healthchecks-ui*",
"NOT /healthz*",
"NOT /swagger*",
"NOT /signin*",
"NOT /.well-known*",
"*"
]
},
{
"appID": "76WD644YU8.com.bitplatform.Todo.Template",
"paths": [ "*", "/*" ],
"components": [
{
"/": "/*",
"comment": "Matches any URL with a path that starts with /"
}
"paths": [
"NOT /api*",
"NOT /odata*",
"NOT /jobs*",
"NOT /core*",
"NOT /signalr*",
"NOT /healthchecks-ui*",
"NOT /healthz*",
"NOT /swagger*",
"NOT /signin*",
"NOT /.well-known*",
"*"
]
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
using Android.App;
//+:cnd:noEmit
using Android.OS;
using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.OS;
using Boilerplate.Client.Core;
using Java.Net;

namespace Boilerplate.Client.Maui.Platforms.Android;

[IntentFilter([Intent.ActionView],
DataSchemes = ["https", "http"],
DataHost = "bp.bitplatform.dev",
DataPathPrefix = "/",
DataHosts = ["bp.bitplatform.dev"],
// the following app links will be opened in app instead of browser if the app is installed on Android device.
DataPaths = ["/"],
DataPathPrefixes = [
"/confirm", "/forgot-password","/profile", "/reset-password", "/sign-in", "/sign-up", "/not-authorized", "/not-found","/terms", "/about",
//#if (sample == "Admin")
"/add-edit-category", "/categories", "/dashboard", "/products",
//#elif (sample == "Todo")
"/todo",
//#endif
//#if (offlineDb == true)
"/offline-edit-profile"
//#endif
],
AutoVerify = true,
Categories = [Intent.ActionView, Intent.CategoryDefault, Intent.CategoryBrowsable])]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ self.serverHandledUrls = [
/\/signalr\//,
/\/healthchecks-ui/,
/\/healthz/,
/\/swagger/
/\/swagger/,
/\/signin-/,
/\/.well-known/
];

self.defaultUrl = "/";
Expand Down

0 comments on commit 7bdc689

Please sign in to comment.