I have An app with tow flavors ... only one of them needs some permissions. How can I request these permissions only for this flavor during building apk?
These are the permissions needed:
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.INTERNET" />