This is an Android app.
Opens files with the extention .html.zip
or .htmlzip
and displays their content in a webview.
The app can also open plain html and even markdown files.
It doesn't allow loading resources from the web. Assets must be inline because it only loads from the index html file for now.
Has extention .html.zip
(for backwards compatibility) or .htmlzip
(that automatic renaming don't break the extention).
It is an zip file with following content:
example.html.zip
└── index.html
The app exposes the global zhv
object, it can currently be used to check if the site was opened in ZHV and get the version code of ZHV for new functionality that may come in the future.
zhv : {
getVersion:()=>number
}
If you use local storage please prefix your variables with an unique prefix (your webapp name + random uuid should do it) to avoid collision with other web apps.
Also don't use clear()
as it clears everything for every webapp.
Debug build:
run ./gradlew build
on linux or gradlew.bat build
on windows