This sample application demonstrates the implementation of WootzWebView with extension support. The project showcases how to integrate and use WootzWebView extensions in your Android application.
- Android Studio
- Android device or emulator (ARM64)
- ADB (Android Debug Bridge) installed and configured
- WootzWebview library (v1.0.0)
- Clone this repository to your local machine
- Open the project in Android Studio
- Add the WootzWebview library to your project:
- Copy
wootzview-v1.0.0.arm64.aar
to theapp/libs
directory - Add the following to your app's
build.gradle
:
dependencies { implementation files('libs/wootzview-v1.0.0.arm64.aar') }
- Copy
After building and running the application, you need to push the extension files to the device using ADB:
adb push exts/ext-demo /data/local/tmp/ext-test
├── app/
│ ├── libs/
│ │ └── wootzview-v1.0.0.arm64.aar
│ ├── src/
│ │ └── main/
│ │ ├── java/
│ │ └── res/
└── exts/
└── ext-demo/
- Demonstrates basic WebView functionality
- Shows extension integration
- Provides sample extension implementation
- Includes extension loading and initialization
- Build and run the application on your device/emulator
- Push the required extensions using ADB as shown above
- Launch the application
- The WebView will load with the extensions enabled
- Test the extension functionality using the provided demo interface
If you encounter issues:
- Verify that the AAR library is correctly added to your project
- Ensure the extension files are properly pushed to the device
- Check logcat for any error messages
- Verify that your device architecture matches (ARM64)
Feel free to submit issues and enhancement requests.