Last active
August 29, 2015 14:04
-
-
Save icastell/0e429de6857bceb3c35b to your computer and use it in GitHub Desktop.
ContentProvider authority renaming
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="package.name" > | |
<application | |
android:icon="@drawable/ic_launcher" | |
android:label="@string/app_name" | |
android:theme="@style/AppTheme" > | |
<provider android:name=".contentprovider.Provider" android:authorities="@string/authority" /> | |
</application> | |
</manifest> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
... | |
productFlavors { | |
production { | |
packageName "package.name.production" | |
resValue "string", "authority", "package.name.production.provider" | |
buildConfigField "String", "AUTHORITY", "package.name.production.provider" | |
} | |
testing { | |
packageName "package.name.debug" | |
resValue "string", "authority", "package.name.debug.provider" | |
buildConfigField "String", "AUTHORITY", "package.name.debug.provider" | |
} | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment