Skip to content

Commit b42fdd8

Browse files
committed
Remove core-ktx
1 parent 6a9b33b commit b42fdd8

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ buildscript {
1010
'minSdk' : 21,
1111
'targetSdk' : 29,
1212
'annotation' : '1.1.0',
13-
'core_ktx' : '1.2.0',
1413
'appcompat' : '1.1.0',
1514
'constraintLayout': '1.1.3',
1615
'junit' : '4.13',

studyplus-android-sdk/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ dependencies {
4545
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_cotoutines_version"
4646

4747
implementation "androidx.annotation:annotation:$versions.annotation"
48-
implementation "androidx.core:core-ktx:$versions.core_ktx"
4948

5049
def okhttp = "4.4.1"
5150
implementation "com.squareup.okhttp3:okhttp:$okhttp"

studyplus-android-sdk/src/main/java/jp/studyplus/android/sdk/internal/api/CertificationStore.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import android.content.Intent
55
import android.content.SharedPreferences
66
import android.net.Uri
77
import android.os.Build
8-
import androidx.core.content.edit
98
import jp.studyplus.android.sdk.BuildConfig
109

1110
internal class CertificationStore
@@ -29,8 +28,9 @@ private constructor(private val preferences: SharedPreferences) {
2928
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
3029
context.deleteSharedPreferences(prefName)
3130
} 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()
3434
}
3535
}
3636
}

studyplus-android-sdk/src/main/java/jp/studyplus/android/sdk/internal/auth/AuthTransit.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import android.content.Context
55
import android.content.Intent
66
import android.content.pm.PackageManager
77
import android.net.Uri
8-
import androidx.core.net.toUri
98
import jp.studyplus.android.sdk.R
109

1110
internal class AuthTransit
@@ -21,7 +20,7 @@ constructor(
2120
private const val EXTRA_CONSUMER_KEY = "consumer_key"
2221
private const val EXTRA_CONSUMER_SECRET = "consumer_secret"
2322

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")
2524
private val INTENT_STORE = Intent(Intent.ACTION_VIEW, URI_STORE)
2625
}
2726

0 commit comments

Comments
 (0)