Skip to content
Chromium based Android WebView engine to be embedded in Ridibooks-Android
Java
Branch: master
Clone or download
Latest commit f44cf63 Sep 27, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper Initial commit with `armeabi-v7a` native library (without v8 snapshot) Apr 5, 2018
patches/chromium/src Add README.md Apr 11, 2018
src/main Correct invalid id type resources for AAPT 3.2.0 and cleanup unused i… Sep 28, 2018
.gitignore Add .gitignore Apr 5, 2018
.travis.yml
LICENSE Create LICENSE Apr 10, 2018
README.md Update README.md [skip ci] Nov 22, 2018
build.gradle Update build.gradle Nov 27, 2018
gradle.properties Initial commit with `armeabi-v7a` native library (without v8 snapshot) Apr 5, 2018
gradlew Initial commit with `armeabi-v7a` native library (without v8 snapshot) Apr 5, 2018
gradlew.bat Initial commit with `armeabi-v7a` native library (without v8 snapshot) Apr 5, 2018
proguard-rules.pro Add consumer progurard rules Apr 10, 2018

README.md

chromium-aw

Build Status

Chromium based Android WebView engine to be embedded in Ridibooks-Android

Getting started

This library is distributed by jitpack.

You should add jitpack maven repository to build.gradle file of your project.

repositories {
    ...
    maven { url 'https://jitpack.io' }
    ...
}

Then you can include this library by adding dependency script to build.gradle file of your project.

dependencies {
    ...
    compile 'com.github.ridi:chromium-aw:<version>'
    ...
}

IMPORTANT : Add following aaptOptions to prevent asset files being compressed.

android {
    ...
    aaptOptions {
        noCompress 'dat', 'pak'
    }
    ...
}

Chromium build information

Current version is based on 62.0.3202.101

Customizing

Native libraries

Patch files are here.

  • Unix domain socket name prefix for Devtools is changed.
  • V8 snapshot is disabled.
    • File names of snapshot binary might be same across architectures.

Java

  • Browser process' private data directory suffix is changed here.

Build instructions

References

Build steps

$ git checkout ...

$ gclient sync

$ gn gen --args='target_os="android" target_cpu="$TARGET" is_debug=false' out/$TARGET

$ ninja -C out/$TARGET webview_instrumentation_apk

In this project $TARGET must be one of arm, arm64, x86.

After building, there will be out/$TARGET/libstandalonelibchromiumwebview.so, out/$TARGET/libdrawgl.so.

License

See LICENSE file from Chromium project.

You can’t perform that action at this time.