Skip to content

Instantly share code, notes, and snippets.

@emartynov
Created April 5, 2013 15:58
Show Gist options
  • Save emartynov/5320457 to your computer and use it in GitHub Desktop.
Save emartynov/5320457 to your computer and use it in GitHub Desktop.
Update authority for content providers
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>${android-maven-plugin.version}</version>
<configuration>
<manifest>
<providerAuthorities>
<property>
<name>com.company.android.product.provider.Provider1</name>
<value>com.company.android.${environment}</value>
</property>
<property>
<name>com.comapny.android.product.provider.Provider2</name>
<value>com.company.android.${environment}.media</value>
</property>
</providerAuthorities>
</manifest>
</configuration>
<executions>
<execution>
<id>update-manifest</id>
<goals>
<goal>manifest-update</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment