File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed
StudyplusAndroidSDK/src/main/java/jp/studyplus/android/sdk/service Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 6
6
public interface ApiCertification {
7
7
8
8
public String getAccessToken ();
9
-
10
- public String getBaseUrl ();
11
9
}
Original file line number Diff line number Diff line change 4
4
5
5
import java .io .IOException ;
6
6
7
+ import jp .studyplus .android .sdk .BuildConfig ;
7
8
import jp .studyplus .android .sdk .internal .api .ApiAccess ;
8
9
import jp .studyplus .android .sdk .internal .api .ApiResponse ;
9
10
@@ -15,7 +16,7 @@ class ApiRequester {
15
16
public ApiRequester (ApiRequest request , ApiCertification certification ) {
16
17
this .request = request ;
17
18
this .access = new ApiAccess (
18
- certification . getBaseUrl () + request .getScriptPath (),
19
+ BuildConfig . API_ENDPOINT + request .getScriptPath (),
19
20
certification .getAccessToken ());
20
21
}
21
22
public ApiEither request () throws IOException {
Original file line number Diff line number Diff line change @@ -60,21 +60,14 @@ public ApiCertification getDefault() {
60
60
61
61
private static class ApiCertificationImpl implements ApiCertification {
62
62
private final String accessToken ;
63
- private final String baseUrl ;
64
63
65
64
private ApiCertificationImpl (String accessToken ) {
66
65
this .accessToken = accessToken ;
67
- this .baseUrl = BuildConfig .API_ENDPOINT ;
68
66
}
69
67
70
68
@ Override
71
69
public String getAccessToken () {
72
70
return accessToken ;
73
71
}
74
-
75
- @ Override
76
- public String getBaseUrl () {
77
- return baseUrl ;
78
- }
79
72
}
80
73
}
You can’t perform that action at this time.
0 commit comments