Giter Site home page Giter Site logo

roozbehzarei / superwebview Goto Github PK

View Code? Open in Web Editor NEW
31.0 3.0 14.0 177 KB

A fully functional WebView app for Android built entirely with Kotlin and Jetpack Compose

Home Page: https://roozbehzarei.me/project/superwebview

License: The Unlicense

Kotlin 100.00%
android android-webview kotlin webview webview-android jetpack-compose

superwebview's Introduction

SuperWebView

License License Code of Conduct

If you want to create an Android app from any website without writing code, SuperWebView is the perfect solution for you. It is a ready-made WebView template that saves you time and hassle.

NOTE: In case you prefer the old View-based design over Jetpack Compose, refer to the legacy version.

Features

  • Support Android 6.0+
  • Based on Material You design
  • Progress bar to indicate a webpage is being loaded
  • Swipe down to refresh current webpage
  • Protect WebView's state from configuration changes

Build

  1. Click the Code button, which brings up a dialog.
  2. In the dialog, click the Download ZIP button to save the project to your computer. Wait for the download to complete.
  3. Locate the file on your computer (likely in the Downloads folder).
  4. Double-click the ZIP file to unpack it. This creates a new folder that contains the project files.
  5. Start Android Studio.
  6. In the Welcome to Android Studio window, click Open an existing Android Studio project.
  7. In the Import Project dialog, navigate to where the unzipped project folder is located.
  8. Double-click on that project folder.
  9. Wait for Android Studio to open the project.
  10. Click the Make Project button to build the app.

Customize

  1. In MainActivity.kt, put your own website URL as the value of WEBSITE constant.
  2. Replace default app icons and name with your own.

superwebview's People

Contributors

roozbehzarei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

superwebview's Issues

Widevine

It is possible to add DMR to this project? I saw solution in java, but quite couldn't implement it

@Override
    public void onPermissionRequest(PermissionRequest request) {
        String[] resources = request.getResources();
        for (int i = 0; i < resources.length; i++) {
            if (PermissionRequest.RESOURCE_PROTECTED_MEDIA_ID.equals(resources[i])) {
                request.grant(resources);
                return;
            }
        }

        super.onPermissionRequest(request);
    }

Local

Is it possible to load a local build-in file instead?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.