0

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.

Amir Heshmati
  • 550
  • 1
  • 8
  • 19

1 Answers1

1

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

Community
  • 1
  • 1
Amir Heshmati
  • 550
  • 1
  • 8
  • 19