Skip to content

[Android] The CertificateVerifier class not included in the output apk #36

Closed
@neevek

Description

@neevek

I followed the steps in the README to have added the rustls-platform-verifier module to my Android project, the rustls project and the rustls-platform-verifier module appear in the project view as expected. Then I tried ./gradlew assembleRelease from command line and directly build the project from inside Android Studio, all showed "BUILD SUCCESSFUL", but when I unzip the apk I can see all the class files from main project, but there's no org.rustls.platformverifier.CertificateVerifier class.

I don't know how the rustls-platform-verifier module can be picked up when building my main module, there seems no connection between the verifier module and my main module.

I tried adding the following in my app's build.gradle:

implementation project(path: ':rustls-platform-verifier')

Android Studio failed to build with:

Project with path ':rustls-platform-verifier' could not be found in project ':app'

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-AndroidWork related to the Android verifier implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions