Back to project page AndroidLiveCodeWarsawFlickr.
The source code is released under:
Apache License
If you think the Android project AndroidLiveCodeWarsawFlickr listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.byoutline.androidlivecodewarsawflickr.api; /* ww w.j a v a 2s .co m*/ import com.byoutline.androidlivecodewarsawflickr.BuildConfig; /** * Created by Sebastian Kacprzak on 10.01.15. */ public class ApiConstants { private static final String REAL_HOST = "https://api.flickr.com/services/rest/"; private static final String MOCK_HOST = "http://localhost:8099"; public static final boolean MOCK_ENABLED = false; public static final String API_KEY = FlickrKey.SECRET; public static String getApiPath() { if(BuildConfig.DEBUG) { return MOCK_ENABLED ? MOCK_HOST : REAL_HOST; } return REAL_HOST; } }