html2apk 0.8.0 → 0.11.0
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/README.md +340 -4
- package/package.json +15 -4
- package/src/desktop/main.js +902 -0
- package/src/desktop/preload.js +1 -0
- package/src/desktop/renderer/index.html +12 -6
- package/src/desktop/renderer/renderer.js +1164 -59
- package/src/desktop/renderer/styles.css +199 -30
- package/src/runtime-manager/index.js +79 -17
- package/src/templates/cordova-plugin-html2apk-bridge/plugin.xml +50 -0
- package/src/templates/cordova-plugin-html2apk-bridge/src/android/FloatingIconService.java +33 -0
- package/src/templates/cordova-plugin-html2apk-bridge/src/android/Html2ApkBridge.java +5929 -403
- package/src/templates/cordova-plugin-html2apk-bridge/src/android/xml/html2apk_file_paths.xml +6 -0
- package/src/templates/cordova-plugin-html2apk-bridge/www/html2apk-bridge.js +882 -4
- package/src/templates/html2apk-early-bridge.js +879 -4
- package/src/templates/html2apk-runtime-console.js +321 -29
- package/examples/minimal/dist/MeuApp-1.0.0-debug.apk +0 -0
- package/examples/minimal/dist/MeuApp-1.0.0-release.aab +0 -0
package/src/desktop/preload.js
CHANGED
|
@@ -18,6 +18,7 @@ contextBridge.exposeInMainWorld("html2apkDesktop", {
|
|
|
18
18
|
installAndroidRequirements: () => ipcRenderer.invoke("install:android-requirements"),
|
|
19
19
|
runBuild: (options) => ipcRenderer.invoke("build:run", options),
|
|
20
20
|
runUsbDebugBuild: (options) => ipcRenderer.invoke("build:run-usb-debug", options),
|
|
21
|
+
runNativeFunctionLab: () => ipcRenderer.invoke("codes:run-function-lab"),
|
|
21
22
|
openPath: (targetPath) => ipcRenderer.invoke("shell:open-path", targetPath),
|
|
22
23
|
showItem: (targetPath) => ipcRenderer.invoke("shell:show-item", targetPath),
|
|
23
24
|
openExternalUrl: (targetUrl) => ipcRenderer.invoke("shell:open-external", targetUrl),
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<img src="../../../html2apk.png" alt="" class="brand-icon">
|
|
50
50
|
<div>
|
|
51
51
|
<strong>html<span>2apk</span></strong>
|
|
52
|
-
<small id="appVersion">v0.
|
|
52
|
+
<small id="appVersion">v0.11.0</small>
|
|
53
53
|
</div>
|
|
54
54
|
</div>
|
|
55
55
|
|
|
@@ -322,10 +322,9 @@
|
|
|
322
322
|
<strong id="currentFileName" data-i18n="noFileSelected">Nenhum arquivo selecionado</strong>
|
|
323
323
|
<span id="fileLanguageBadge">text</span>
|
|
324
324
|
</div>
|
|
325
|
-
<
|
|
326
|
-
|
|
327
|
-
<
|
|
328
|
-
<pre id="fileHighlight" class="syntax-preview"><code></code></pre>
|
|
325
|
+
<div class="code-editor-shell">
|
|
326
|
+
<pre id="fileHighlight" class="file-editor-highlight" aria-hidden="true"><code></code></pre>
|
|
327
|
+
<textarea id="fileEditorInput" spellcheck="false" disabled placeholder="index.html"></textarea>
|
|
329
328
|
</div>
|
|
330
329
|
</section>
|
|
331
330
|
</div>
|
|
@@ -404,9 +403,16 @@
|
|
|
404
403
|
<p class="eyebrow" data-i18n="codesEyebrow">Bridge nativa</p>
|
|
405
404
|
<h1 data-i18n="codesTitle">Codigos interpretados</h1>
|
|
406
405
|
</div>
|
|
406
|
+
<button id="nativeFunctionLabButton" class="primary-action" type="button" data-i18n="testNativeFunctions">Testar funcoes</button>
|
|
407
407
|
</header>
|
|
408
408
|
<p class="view-intro" data-i18n="codesIntro">Estas funcoes chamadas no JavaScript do app sao interpretadas pelo plugin Cordova e executadas no Java Android.</p>
|
|
409
|
-
<div
|
|
409
|
+
<div class="code-browser">
|
|
410
|
+
<nav id="nativeCodeCategories" class="code-categories" aria-label="Categorias de codigos"></nav>
|
|
411
|
+
<section class="code-results">
|
|
412
|
+
<div id="nativeCodeSummary" class="code-summary"></div>
|
|
413
|
+
<div id="nativeCodeGrid" class="code-grid"></div>
|
|
414
|
+
</section>
|
|
415
|
+
</div>
|
|
410
416
|
</section>
|
|
411
417
|
|
|
412
418
|
<section id="view-help" class="view">
|