This repository was archived by the owner on Jun 28, 2019. It is now read-only.
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
66import jp.studyplus.android.sdk.record.StudyRecord
77import retrofit2.Retrofit
88
9- class ApiClient
9+ internal class ApiClient
1010constructor (retrofit: Retrofit ) {
1111
1212 companion object {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
1010import retrofit2.converter.gson.GsonConverterFactory
1111import java.util.concurrent.TimeUnit
1212
13- object ApiManager {
13+ internal object ApiManager {
1414
1515 private val loggingLevel: HttpLoggingInterceptor .Level
1616 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
55import jp.studyplus.android.sdk.record.StudyRecord
66import retrofit2.http.*
77
8- interface ApiService {
8+ internal interface ApiService {
99 @Headers(value = [
1010 " Accept: application/json" ,
1111 " Content-type: application/json"
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ import android.net.Uri
77import jp.studyplus.android.sdk.BuildConfig
88import jp.studyplus.android.sdk.internal.auth.AccessTokenNotFound
99
10- interface ApiCertification {
10+ internal interface ApiCertification {
1111 val accessToken: String
1212}
1313
14- class CertificationStore
14+ internal class CertificationStore
1515private constructor (private val preferences: SharedPreferences ) {
1616
1717 companion object {
@@ -43,8 +43,7 @@ private constructor(private val preferences: SharedPreferences) {
4343 return ApiCertificationImpl (token)
4444 }
4545
46- fun update (data : Intent ? ) {
47- if (data == null ) { return }
46+ fun update (data : Intent ) {
4847 val code = data.getStringExtra(EXTRA_SP_AUTH_RESULT_CODE ).orEmpty()
4948 if (RESULT_CODE_AUTHENTICATED == code) {
5049 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
22
33import com.google.gson.annotations.SerializedName
44
5- data class PostStudyRecordsResponse (
5+ internal data class PostStudyRecordsResponse (
66 @SerializedName(" record_id" )
77 val recordId : Long? = null
88)
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import jp.studyplus.android.sdk.R
77
88class AccessTokenNotFound : RuntimeException ()
99
10- class AuthTransit
10+ internal class AuthTransit
1111/* *
1212 * @param consumerKey for API
1313 * @param consumerSecret for API
You can’t perform that action at this time.
0 commit comments