Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

extend @HttpsClient to support resName (library project) #1028

@toshe

Description

@toshe

related: #20, #306

We tried creating a custom HttpClient in our library project. BTW today is 5th June - check out https://www.resetthenet.org/ - makes you want to secure all your apps :)

@HttpsClient(trustStore=R.raw.mycacerts,
        trustStorePwd="changeit2")
    HttpClient httpsClient;

Using the latest 3.1 SNAPSHOT we cannot compile because the Resource is in a library project and since resources in library projects are not final static we cannot specify our truststore directly as a resource (in this case R.raw.mycacerts).

https://github.com/excilys/androidannotations/wiki/Library-projects#referencing-ids-by-name suggests referencing the resources by resName, however that is mostly possible for layouts but not for Annotations such as @HttpsClient. Can we please add a support for resName as well? resName would reference the truststore and/or the keystore resources.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions