mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	* Fix #2793: Campaigns work on Beta * Update campaign endpoint urls
This commit is contained in:
		
							parent
							
								
									874e761691
								
							
						
					
					
						commit
						69b0f40358
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -2,7 +2,6 @@ package fr.free.nrw.commons.di; | |||
| 
 | ||||
| import android.content.Context; | ||||
| import android.net.Uri; | ||||
| import androidx.annotation.NonNull; | ||||
| 
 | ||||
| import com.google.gson.Gson; | ||||
| import com.google.gson.GsonBuilder; | ||||
|  | @ -13,6 +12,7 @@ import java.util.concurrent.TimeUnit; | |||
| import javax.inject.Named; | ||||
| import javax.inject.Singleton; | ||||
| 
 | ||||
| import androidx.annotation.NonNull; | ||||
| import dagger.Module; | ||||
| import dagger.Provides; | ||||
| import fr.free.nrw.commons.BuildConfig; | ||||
|  | @ -32,8 +32,6 @@ import timber.log.Timber; | |||
| @SuppressWarnings({"WeakerAccess", "unused"}) | ||||
| public class NetworkingModule { | ||||
|     private static final String WIKIDATA_SPARQL_QUERY_URL = "https://query.wikidata.org/sparql"; | ||||
|     private final String WIKIMEDIA_CAMPAIGNS_BASE_URL = | ||||
|             "https://raw.githubusercontent.com/commons-app/campaigns/master/campaigns.json"; | ||||
|     private static final String TOOLS_FORGE_URL = "https://tools.wmflabs.org/urbanecmbot/commonsmisc"; | ||||
| 
 | ||||
|     private static final String TEST_TOOLS_FORGE_URL = "https://tools.wmflabs.org/commons-android-app/tool-commons-android-app"; | ||||
|  | @ -80,7 +78,7 @@ public class NetworkingModule { | |||
|         return new OkHttpJsonApiClient(okHttpClient, | ||||
|                 toolsForgeUrl, | ||||
|                 WIKIDATA_SPARQL_QUERY_URL, | ||||
|                 WIKIMEDIA_CAMPAIGNS_BASE_URL, | ||||
|                 BuildConfig.WIKIMEDIA_CAMPAIGNS_URL, | ||||
|                 BuildConfig.WIKIMEDIA_API_HOST, | ||||
|                 defaultKvStore, | ||||
|                 gson); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Adam Jones
						Adam Jones