Skip to content

Is it possible to add specific properties to gradle.properties file from config.xml? #481

@PeterHdd

Description

@PeterHdd

Hello Cordova android community,

First thank you for all the effort in the android platform! I have a question, is there a way to add properties to the gradle.properties file automatically? So basically when doing cordova build android I want a specific property to be added there so the build passes in the CI. I know for androidx we can just add this in the config.xml:

<preference name="AndroidXEnabled" value="true" />

But what if some other property needs to be added how would we do that?

For example if i wanna ignore jetifying the jackson-core library:

android.jetifier.ignorelist = jackson-core

Can this somehow be added in the config.xml or the plugin.xml and then it gets added to the gradle.properties? If so how can this be done?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions