mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add patch file to selectively disable campaigns on compile
Simply disable related items from AndroidManifest and that should be more than enough Change-Id: I3b68721f86d3ab3be953387641aa4145e0b098af
This commit is contained in:
parent
5e1fa56f36
commit
8396b2426f
1 changed files with 51 additions and 0 deletions
51
disable-campaigns.patch
Normal file
51
disable-campaigns.patch
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
diff --git a/commons/AndroidManifest.xml b/commons/AndroidManifest.xml
|
||||||
|
index 5ad1c77..50b16ff 100644
|
||||||
|
--- a/commons/AndroidManifest.xml
|
||||||
|
+++ b/commons/AndroidManifest.xml
|
||||||
|
@@ -82,14 +82,6 @@
|
||||||
|
android:label="@string/title_activity_settings"
|
||||||
|
/>
|
||||||
|
<activity android:name=".AboutActivity" android:label="@string/title_activity_about"/>
|
||||||
|
- <activity android:name=".campaigns.CampaignActivity" android:label="Campaigns"
|
||||||
|
- android:icon="@drawable/ic_launcher"
|
||||||
|
- >
|
||||||
|
- <intent-filter>
|
||||||
|
- <action android:name="android.intent.action.MAIN"/>
|
||||||
|
- <category android:name="android.intent.category.LAUNCHER"/>
|
||||||
|
- </intent-filter>
|
||||||
|
- </activity>
|
||||||
|
|
||||||
|
<service android:name=".upload.UploadService" >
|
||||||
|
</service>
|
||||||
|
@@ -106,17 +98,6 @@
|
||||||
|
android:resource="@xml/authenticator" />
|
||||||
|
</service>
|
||||||
|
<service
|
||||||
|
- android:name=".campaigns.CampaignsSyncService"
|
||||||
|
- android:exported="true">
|
||||||
|
- <intent-filter>
|
||||||
|
- <action
|
||||||
|
- android:name="android.content.SyncAdapter" />
|
||||||
|
- </intent-filter>
|
||||||
|
- <meta-data
|
||||||
|
- android:name="android.content.SyncAdapter"
|
||||||
|
- android:resource="@xml/campaigns_sync_adapter" />
|
||||||
|
- </service>
|
||||||
|
- <service
|
||||||
|
android:name=".contributions.ContributionsSyncService"
|
||||||
|
android:exported="true">
|
||||||
|
<intent-filter>
|
||||||
|
@@ -148,13 +129,6 @@
|
||||||
|
android:exported="false">
|
||||||
|
</provider>
|
||||||
|
<provider
|
||||||
|
- android:name=".campaigns.CampaignsContentProvider"
|
||||||
|
- android:label="@string/provider_campaigns"
|
||||||
|
- android:syncable="true"
|
||||||
|
- android:authorities="org.wikimedia.commons.campaigns.contentprovider"
|
||||||
|
- android:exported="false">
|
||||||
|
- </provider>
|
||||||
|
- <provider
|
||||||
|
android:name=".modifications.ModificationsContentProvider"
|
||||||
|
android:label="@string/provider_modifications"
|
||||||
|
android:syncable="true"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue