Check Android compatibility using AnimalSniffer

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Check Android compatibility using AnimalSniffer

Florian Schmaus
Would the legion be interested in a little patch that introduces Android
compatibility verification to the test suite?

I've created a GitHub pull request at

which adds the AninimalSniffer [1] Gradle plugin to the Gradle build
process and activates Android 8 compatibility verification for all

I know that Bouncycastle is used a lot on Android (OpenKeychain, …) and
I'm mentoring a GSOC project which will use Bouncycastle on Android too.
Therefore it appears to be a good idea to check for Android
compatibility to avoid runtime errors because of linkage errors.

Since this is my first contribution to the Bouncycastle project, I'm
happy to hear your thoughts on this matter.

As a related side note: After cloning Bouncycastle, issuing "gradle
check" does not succeed as the S/MIME junit tests fail. I think the root
cause is

java.lang.NoClassDefFoundError: Could not initialize class
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.lang.reflect.Constructor.newInstance(
        at junit.framework.TestSuite.createTest(
        at junit.framework.TestSuite.addTestMethod(
        at junit.framework.TestSuite.addTestsFromTestCase(
        at junit.framework.TestSuite.<init>(
        at junit.framework.TestSuite.addTestSuite(
        at org.bouncycastle.mail.smime.test.AllTests.suite(

Is there any special setup needed prior running the tests?

- Florian


signature.asc (631 bytes) Download Attachment