Amir Heshmati
Amir Heshmati

Reputation: 648

How to change the permission in the manifest based on the app flavor?

I need to change the required permission of my app based on the app flavor. It's only one permission which should be replaced. How can i do it?

Edit

i'm releasing 2 version of my app for two different market. I'm using in app billing and the two market use different permission for the billing dialog so i need to use different permission to access the market's billing dialog.

Upvotes: 0

Views: 843

Answers (1)

Amir Heshmati
Amir Heshmati

Reputation: 648

Founded my answer here:

Android Studio two flavors with different manifest files

create a new manifest based on the app flavor and add your flavor specific permission to it.. they will be merged. enter image description here enter image description here

Upvotes: 1

Related Questions