File tree Expand file tree Collapse file tree 6 files changed +8
-9
lines changed
studyplus-android-sdk2/src/main/java/jp/studyplus/android/sdk/internal Expand file tree Collapse file tree 6 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import jp.studyplus.android.sdk.internal.api.response.PostStudyRecordsResponse
6
6
import jp.studyplus.android.sdk.record.StudyRecord
7
7
import retrofit2.Retrofit
8
8
9
- class ApiClient
9
+ internal class ApiClient
10
10
constructor (retrofit: Retrofit ) {
11
11
12
12
companion object {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
10
10
import retrofit2.converter.gson.GsonConverterFactory
11
11
import java.util.concurrent.TimeUnit
12
12
13
- object ApiManager {
13
+ internal object ApiManager {
14
14
15
15
private val loggingLevel: HttpLoggingInterceptor .Level
16
16
get() = if (BuildConfig .DEBUG ) {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import jp.studyplus.android.sdk.internal.api.response.PostStudyRecordsResponse
5
5
import jp.studyplus.android.sdk.record.StudyRecord
6
6
import retrofit2.http.*
7
7
8
- interface ApiService {
8
+ internal interface ApiService {
9
9
@Headers(value = [
10
10
" Accept: application/json" ,
11
11
" Content-type: application/json"
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ import android.net.Uri
7
7
import jp.studyplus.android.sdk.BuildConfig
8
8
import jp.studyplus.android.sdk.internal.auth.AccessTokenNotFound
9
9
10
- interface ApiCertification {
10
+ internal interface ApiCertification {
11
11
val accessToken: String
12
12
}
13
13
14
- class CertificationStore
14
+ internal class CertificationStore
15
15
private constructor (private val preferences: SharedPreferences ) {
16
16
17
17
companion object {
@@ -43,8 +43,7 @@ private constructor(private val preferences: SharedPreferences) {
43
43
return ApiCertificationImpl (token)
44
44
}
45
45
46
- fun update (data : Intent ? ) {
47
- if (data == null ) { return }
46
+ fun update (data : Intent ) {
48
47
val code = data.getStringExtra(EXTRA_SP_AUTH_RESULT_CODE ).orEmpty()
49
48
if (RESULT_CODE_AUTHENTICATED == code) {
50
49
preferences.edit()?.apply {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package jp.studyplus.android.sdk.internal.api.response
2
2
3
3
import com.google.gson.annotations.SerializedName
4
4
5
- data class PostStudyRecordsResponse (
5
+ internal data class PostStudyRecordsResponse (
6
6
@SerializedName(" record_id" )
7
7
val recordId : Long? = null
8
8
)
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import jp.studyplus.android.sdk.R
7
7
8
8
class AccessTokenNotFound : RuntimeException ()
9
9
10
- class AuthTransit
10
+ internal class AuthTransit
11
11
/* *
12
12
* @param consumerKey for API
13
13
* @param consumerSecret for API
You can’t perform that action at this time.
0 commit comments