Skip to content

Set cargo release profile for different buildTypes #38

@ErikBjare

Description

@ErikBjare

I have two build types release and debug, and I'd like to set the cargo release profile depending on the build type (instead of using debug, which is bad in production, or using release, which is slow when developing or running in CI).

Example of my build types:

android {
    ...
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        debug {
            applicationIdSuffix ".debug"
        }
    }
}

I noticed that https://github.com/willir/cargo-ndk-android-gradle did what I want by default, and supported additional configuration per-buildType. Is there a way to work around this? Or is the fix to support it easy?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions