@livx.cc/appwrap 0.61.21 → 0.61.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import { Utils, isIOS, isAndroid, Application } from '@nativescript/core';
|
|
|
2
2
|
import { bridge } from './bridge';
|
|
3
3
|
import { createUiDelegate } from './ios-ui-delegate';
|
|
4
4
|
import { handleWebPermissionRequest } from './android-helpers';
|
|
5
|
+
import { SHELL_CONFIG } from './config';
|
|
5
6
|
|
|
6
7
|
const err = (code: string, message: string) => Object.assign(new Error(message), { code });
|
|
7
8
|
|
|
@@ -274,7 +275,7 @@ function registerAndroid(): void {
|
|
|
274
275
|
(view as any)._appwrapClients = [client, chrome]; // keep JS peers alive (NS GC doesn't see the native hold)
|
|
275
276
|
const bg = host?.getBackground?.();
|
|
276
277
|
if (bg instanceof android.graphics.drawable.ColorDrawable) view.setBackgroundColor(bg.getColor());
|
|
277
|
-
android.webkit.WebView.setWebContentsDebuggingEnabled(true);
|
|
278
|
+
if (SHELL_CONFIG.debug) android.webkit.WebView.setWebContentsDebuggingEnabled(true); // remote DevTools only in debug builds, never store builds
|
|
278
279
|
wv = view;
|
|
279
280
|
frame.addView(view);
|
|
280
281
|
layout();
|