akaita / easylauncher-gradle-plugin

Add a different ribbon to each of your Android app variants using this gradle plugin. Of course, configure it as you will
Apache License 2.0
959 stars 52 forks source link

Apply ribbon to build type that not is in your list of build types #14

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi,

I have debug, qa and release build types. For "debug" build type is work perfectly but for "qa" no ((

I have multi flavored app and each flavor is another application version. I cannot use "qa" as flavor because every flavored application need to have debug, qa and release versions.

Thanks!

akaita commented 6 years ago

Hi,

Easylauncher adds a ribbon to all debuggable buildTypes by default. I guess your qa type is not debuggable?

If I understand correctly, you just want to do this:

easylauncher {
    buildTypes {
        qa {
            filters = blueRibbonFilter()
        }
    }
}

Does that work?

ghost commented 6 years ago

Your are absolutely right!

I have something like this:

qa { initWith release }

and release build type is not debuggable ))

It should work then!

Thanks!

akaita commented 6 years ago

Happy to help :)