File tree Expand file tree Collapse file tree 4 files changed +4
-7
lines changed
src/main/java/jp/studyplus/android/sdk/internal Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ buildscript {
10
10
' minSdk' : 21 ,
11
11
' targetSdk' : 29 ,
12
12
' annotation' : ' 1.1.0' ,
13
- ' core_ktx' : ' 1.2.0' ,
14
13
' appcompat' : ' 1.1.0' ,
15
14
' constraintLayout' : ' 1.1.3' ,
16
15
' junit' : ' 4.13' ,
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ dependencies {
45
45
implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_cotoutines_version "
46
46
47
47
implementation " androidx.annotation:annotation:$versions . annotation "
48
- implementation " androidx.core:core-ktx:$versions . core_ktx "
49
48
50
49
def okhttp = " 4.4.1"
51
50
implementation " com.squareup.okhttp3:okhttp:$okhttp "
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import android.content.Intent
5
5
import android.content.SharedPreferences
6
6
import android.net.Uri
7
7
import android.os.Build
8
- import androidx.core.content.edit
9
8
import jp.studyplus.android.sdk.BuildConfig
10
9
11
10
internal class CertificationStore
@@ -29,8 +28,9 @@ private constructor(private val preferences: SharedPreferences) {
29
28
if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .N ) {
30
29
context.deleteSharedPreferences(prefName)
31
30
} else {
32
- context.getSharedPreferences(prefName, Context .MODE_PRIVATE ).edit {
33
- clear()
31
+ context.getSharedPreferences(prefName, Context .MODE_PRIVATE ).edit().let {
32
+ it.clear()
33
+ it.apply ()
34
34
}
35
35
}
36
36
}
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import android.content.Context
5
5
import android.content.Intent
6
6
import android.content.pm.PackageManager
7
7
import android.net.Uri
8
- import androidx.core.net.toUri
9
8
import jp.studyplus.android.sdk.R
10
9
11
10
internal class AuthTransit
@@ -21,7 +20,7 @@ constructor(
21
20
private const val EXTRA_CONSUMER_KEY = " consumer_key"
22
21
private const val EXTRA_CONSUMER_SECRET = " consumer_secret"
23
22
24
- private val URI_STORE = " market://details?id=jp.studyplus.android.app" .toUri( )
23
+ private val URI_STORE = Uri .parse( " market://details?id=jp.studyplus.android.app" )
25
24
private val INTENT_STORE = Intent (Intent .ACTION_VIEW , URI_STORE )
26
25
}
27
26
You can’t perform that action at this time.
0 commit comments