diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml deleted file mode 100644 index 30aa626..0000000 --- a/.idea/codeStyles/Project.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sdk/src/main/java/com/sparklit/adbutler/AdButler.java b/sdk/src/main/java/com/sparklit/adbutler/AdButler.java index f57d405..027f06b 100644 --- a/sdk/src/main/java/com/sparklit/adbutler/AdButler.java +++ b/sdk/src/main/java/com/sparklit/adbutler/AdButler.java @@ -19,9 +19,14 @@ */ public class AdButler { static String ADBUTLER_ENDPOINT = "https://servedbyadbutler.com/adserve/"; + static String DOMAIN = "servedbyadbutler.com"; private APIService service; + public void setDomain(String domain){ + DOMAIN = domain; + } + /** * Requests a pixel. * @@ -129,7 +134,7 @@ private APIService getAPIService() { .setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES) .create(); Retrofit.Builder builder = new Retrofit.Builder() - .baseUrl(ADBUTLER_ENDPOINT) + .baseUrl("https://" + DOMAIN + "/adserve/") .addConverterFactory(GsonConverterFactory.create(gson)); service = builder.build().create(APIService.class); }