Skip to content

HtmlUnit/htmlunit-android

Repository files navigation

HtmlUnit Android package

Version 2.64.0 / August 18, 2022

❤️ Sponsor

Maven Central

Homepage

htmlunit.sourceforge.io

News

HtmlUnit@Twitter

Download

For maven, you simply use this dependency instead of the usual htmlunit dependency:

<dependency>
    <groupId>net.sourceforge.htmlunit</groupId>
    <artifactId>htmlunit-android</artifactId>
    <version>2.64.0</version>
</dependency>

Overview

HtmlUnit is a "GUI-Less browser for Java programs" usually runs on every platform supported by java.

But Android is a bit different because the Android SDK already includes some (old) classes from the Apache HttpClient. HtmlUnit uses a more recent version HttpClient; and this is where the problem begins.

To solve the conflicts, this package uses shading and includes the HttpClient in the jar file itself but with a modified package name. There are no changes done to the implementation.

Or to be more detailed, this packages includes

  • HtmlUnit itself

  • htmlunit-core-js

  • htmlunit-cssparser

  • neko-htmlunit

  • xml-apis/xml-apis:jar

  • xerces/xercesImpl

  • httpcomponents/httpmime:jar (shaded)

  • httpcomponents/httpclient (shaded)

  • httpcomponents/httpcore (shaded)

  • commons-codec/commons-codec (shaded)

All the other dependencies are still dependencies of this package (see the pom.xml for more).

Contributing

Pull Requests and and all other Community Contributions are essential for open source software. Every contribution - from bug reports to feature requests, typos to full new features - are greatly appreciated.

Latest CI build

Usually snapshot builds are available based on the latest HtmlUnit code.

If you use maven please add:

<dependency>
    <groupId>net.sourceforge.htmlunit</groupId>
    <artifactId>htmlunit-android</artifactId>
    <version>2.65.0-SNAPSHOT</version>
</dependency>

You have to add the sonatype snapshot repository to your pom distributionManagement section also:

<snapshotRepository>
    <id>sonatype-nexus-snapshots</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>

License

This project is licensed under the Apache 2.0 License

About

HtmlUnit packaged for Android

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages