Skip to content

Commit

Permalink
Enable Local storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Laux committed Jun 24, 2019
1 parent 19b1092 commit 8033a93
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ zhv : {
}
```

## Note Regarding Localstorage

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.

## Building ZHV
Debug build:

Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
// don't go bellow 19, otherwise you may introduce web-view security risks
minSdkVersion 19
targetSdkVersion 28
versionCode 3
versionName "1.2"
versionCode 4
versionName "1.3"
}
signingConfigs {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ private void handleIntent() {
webSettings.setJavaScriptEnabled(true);
webSettings.setSupportZoom(true);
webSettings.setBuiltInZoomControls(true);
webSettings.setDomStorageEnabled(true);
class JsObject {
@JavascriptInterface
public int getVersion() { return BuildConfig.VERSION_CODE; }
Expand Down

0 comments on commit 8033a93

Please sign in to comment.