From 6abc691673ff4932cef9c5381c7c8b8eea98fc98 Mon Sep 17 00:00:00 2001 From: Micha Moskovic Date: Wed, 25 Mar 2020 14:06:35 +0100 Subject: [PATCH] Adapt for upcoming release of new INSPIRE version We will release the new INSPIRE version (currently at https://labs.inspirehep.net) as the main website on Monday. The old website will remain available at https://old.inspirehep.net for a couple of months. The new API is not 100% ready for public use, so this commit simply switches to the URL of the old website instead of using the new one. --- .../chochitos/inspirehep_citations/InspireHEPApiService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/chochitos/inspirehep_citations/InspireHEPApiService.kt b/app/src/main/java/com/chochitos/inspirehep_citations/InspireHEPApiService.kt index 5630ce4..51f11d2 100644 --- a/app/src/main/java/com/chochitos/inspirehep_citations/InspireHEPApiService.kt +++ b/app/src/main/java/com/chochitos/inspirehep_citations/InspireHEPApiService.kt @@ -25,7 +25,7 @@ interface InspireHEPApiService { val retrofit = Retrofit.Builder() .addCallAdapterFactory(RxJava2CallAdapterFactory.create()) .addConverterFactory(GsonConverterFactory.create()) - .baseUrl("http://inspirehep.net/") + .baseUrl("http://old.inspirehep.net/") .build() return retrofit.create(InspireHEPApiService::class.java) @@ -60,4 +60,4 @@ fun inspireSearch(service: InspireHEPApiService, searchString: String, formatIns { error -> Log.wtf("mi",error.message) } ) -} \ No newline at end of file +}