Skip to content

Commit acf87f1

Browse files
committed
switched to ipapi.co for HTTPs
1 parent 18d90f5 commit acf87f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library/src/main/java/com/androidfung/geoip/IpApiService.java renamed to library/src/main/java/com/androidfung/geoip/GeoIpService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Created by funglam on 3/16/17.
1111
*/
1212
@SuppressWarnings("unused")
13-
public interface IpApiService {
13+
public interface GeoIpService {
1414
@GET("json")
1515
Call<GeoIpResponseModel> getGeoIp();
1616

library/src/main/java/com/androidfung/geoip/ServicesManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
public class ServicesManager {
1212

1313
// private static final String BASE_URL = "http://ip-api.com/";
14-
private static final String BASE_URL = "https://ipapi.co/json/";
14+
private static final String BASE_URL = "https://ipapi.co/";
1515

16-
public static IpApiService getGeoIpService(){
16+
public static GeoIpService getGeoIpService(){
1717
return new Retrofit.Builder()
1818
.baseUrl(BASE_URL)
1919
.addConverterFactory(GsonConverterFactory.create())
2020
.build()
21-
.create(IpApiService.class);
21+
.create(GeoIpService.class);
2222
}
2323
}

0 commit comments

Comments
 (0)