Skip to content

Commit 74f1bcd

Browse files
committed
Removing dev domain from Consants
1 parent 0f7be05 commit 74f1bcd

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

src/main/java/com/blockscore/common/Constants.java

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
public final class Constants {
99
public static final String AUTHORIZATION_HEADER = "Authorization";
1010
public static final String ACCEPT_HEADER = "Accept";
11-
12-
private static final boolean DEBUG_MODE = false;
13-
private static final String BLOCKSCORE_DOMAIN = "https://api.blockscore.com";
14-
private static final String BLOCKSCORE_DEV_DOMAIN = "http://127.0.0.1:5400";
11+
public static final String BLOCKSCORE_DOMAIN = "https://api.blockscore.com";
12+
1513
private static final String VERSION_CODE = "4";
1614
private static final String ACCEPT_CONTENTS = "application/vnd.blockscore+json;version=%s";
1715

@@ -27,17 +25,4 @@ private Constants() {
2725
public static String getAcceptHeaders() {
2826
return String.format(ACCEPT_CONTENTS, VERSION_CODE);
2927
}
30-
31-
/**
32-
* Gets the domain to use for testing this API client. (DO NOT RELEASE IN DEBUG MODE!)
33-
* @return Debug domain if we are in debug mode.
34-
*/
35-
@NotNull
36-
public static String getDomain() {
37-
if (DEBUG_MODE) {
38-
return BLOCKSCORE_DEV_DOMAIN;
39-
} else {
40-
return BLOCKSCORE_DOMAIN;
41-
}
42-
}
4328
}

src/main/java/com/blockscore/net/BlockscoreApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public BlockscoreApiClient(@NotNull final String apiKey) {
4949
this.apiKey = apiKey + ":";
5050

5151
RestAdapter.Builder restBuilder = new RestAdapter.Builder().setClient(new BlockscoreHttpClient())
52-
.setEndpoint(Constants.getDomain());
52+
.setEndpoint(Constants.BLOCKSCORE_DOMAIN);
5353
restBuilder.setConverter(getDefaultConverter());
5454
restBuilder.setRequestInterceptor(getDefaultRequestInterceptor());
5555
restBuilder.setErrorHandler(new BlockscoreErrorHandler());

0 commit comments

Comments
 (0)