问题
I have free and paid versions of an app. I need to configure with gradle a prop on BuildConfig that is different for each buildType / productFlavor combination.
- free-debug -> prop1=value1
- free-release -> prop1=value2
- paid-debug -> prop1=value3
- paid-release -> prop1=value4
My build types are debug / release, and my product flavors are free / paid
Could you help me with this?
来源:https://stackoverflow.com/questions/27405301/buildconfig-prop-for-each-buildtype-productflavor-combination