Permalink
Browse files

Provider authorities yuku.alkitab.{}.debug -> yuku.alkitab.debug.{}

to match the released version.
  • Loading branch information...
1 parent 324d06c commit 520573f93aa595d4714238bff8d5f15cd3ab1c84 @yukuku committed Apr 16, 2015
@@ -318,7 +318,7 @@
<provider
android:name="yuku.alkitab.base.cp.Provider"
- android:authorities="yuku.alkitab.provider.debug"
+ android:authorities="yuku.alkitab.debug.provider"
android:exported="true"
tools:ignore="ExportedContentProvider" />
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <string name="file_provider_authority" translatable="false">yuku.alkitab.file_provider.debug</string>
+ <string name="file_provider_authority" translatable="false">yuku.alkitab.debug.file_provider</string>
</resources>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <string name="sync_provider_authority" translatable="false">yuku.alkitab.sync_provider.debug</string>
+ <string name="sync_provider_authority" translatable="false">yuku.alkitab.debug.sync_provider</string>
</resources>
@@ -14,7 +14,7 @@
@Override
public void setUp() throws Exception {
- AlkitabIntegrationUtil.setOverridenProviderAuthority("yuku.alkitab.provider.debug");
+ AlkitabIntegrationUtil.setOverridenProviderAuthority("yuku.alkitab.debug.provider");
}
public void testAvailable() throws Exception {
View
@@ -132,18 +132,18 @@ pushd $BUILD_DIR/$SUPER_PROJECT_NAME
sed -i '' "s/applicationId .*/applicationId '$BUILD_PACKAGE_NAME'/" ../../build.gradle
echo "Replacing verse provider name following package name: '$BUILD_PACKAGE_NAME.provider'"
- sed -i '' 's/android:authorities="yuku.alkitab.provider.debug"/android:authorities="'$BUILD_PACKAGE_NAME.provider'"/' AndroidManifest.xml
+ sed -i '' 's/android:authorities="yuku.alkitab.debug.provider"/android:authorities="'$BUILD_PACKAGE_NAME.provider'"/' AndroidManifest.xml
echo 'Replacing GCM component names to this app package name:' $BUILD_PACKAGE_NAME
sed -i '' 's/<category android:name="yuku.alkitab.debug"/<category android:name="'$BUILD_PACKAGE_NAME'"/' AndroidManifest.xml
sed -i '' 's/yuku.alkitab.debug.permission.C2D_MESSAGE/'$BUILD_PACKAGE_NAME'.permission.C2D_MESSAGE/' AndroidManifest.xml
if [ ! -f res/values/file_providers.xml ] ; then echo 'file_providers.xml does not exist!' ; exit 1 ; fi
echo "Replacing file provider name following package name: '$BUILD_PACKAGE_NAME.file_provider'"
- sed -i '' 's/yuku.alkitab.file_provider.debug/'$BUILD_PACKAGE_NAME'.file_provider/' res/values/file_providers.xml
+ sed -i '' 's/yuku.alkitab.debug.file_provider/'$BUILD_PACKAGE_NAME'.file_provider/' res/values/file_providers.xml
echo "Replacing sync provider name following package name: '$BUILD_PACKAGE_NAME.sync_provider'"
- sed -i '' 's/yuku.alkitab.sync_provider.debug/'$BUILD_PACKAGE_NAME'.sync_provider/' res/values/sync_providers.xml
+ sed -i '' 's/yuku.alkitab.debug.sync_provider/'$BUILD_PACKAGE_NAME'.sync_provider/' res/values/sync_providers.xml
echo "Replacing account type / authority name following package name: '$BUILD_PACKAGE_NAME'"
sed -i '' 's/yuku.alkitab.debug/'$BUILD_PACKAGE_NAME'/' res/values/account_type.xml

0 comments on commit 520573f

Please sign in to comment.