File tree Expand file tree Collapse file tree 5 files changed +9
-8
lines changed
src/main/java/com/qonversion/android/sdk Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ The latest release is available on [Bintray](https://dl.bintray.com/artemyglukho
1414``` kotlin
1515dependencies {
1616 .. .
17- implementation " com.qonversion.android.sdk:sdk:1.0.2 "
17+ implementation " com.qonversion.android.sdk:sdk:1.0.3 "
1818 .. .
1919}
2020```
Original file line number Diff line number Diff line change @@ -20,5 +20,5 @@ android.enableJetifier=true
2020# Kotlin code style for this project: "official" or "obsolete":
2121kotlin.code.style =official
2222
23- libraryVersion = 1.0.2
23+ libraryVersion = 1.0.3
2424
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ android {
1919
2020 consumerProguardFiles ' consumer-rules.pro'
2121 group = ' com.qonversion.android.sdk'
22- version = ' 1.0.2 '
22+ version = ' 1.0.3 '
2323 }
2424
2525 buildTypes {
4040
4141 PUBLISH_GROUP_ID = ' com.qonversion.android.sdk'
4242 PUBLISH_ARTIFACT_ID = ' sdk'
43- PUBLISH_VERSION = ' 1.0.2 '
43+ PUBLISH_VERSION = ' 1.0.3 '
4444
4545 kotlinVersion = ' 1.3.61'
4646 moshiVersion = ' 1.9.2'
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class Qonversion private constructor(
3030
3131 companion object {
3232
33- private const val SDK_VERSION = " 1.0.2 "
33+ private const val SDK_VERSION = " 1.0.3 "
3434
3535 @JvmStatic
3636 @Volatile
Original file line number Diff line number Diff line change @@ -147,8 +147,7 @@ internal class QonversionRepository private constructor(
147147 api.purchase(purchaseRequest).enqueue {
148148 onResponse = {
149149 logger.log(" purchaseRequest - success - $it " )
150- val savedUid = saveUid(it)
151- callback?.onSuccess(savedUid)
150+ callback?.onSuccess(storage.load())
152151 kickRequestQueue()
153152 }
154153 onFailure = {
@@ -197,7 +196,9 @@ internal class QonversionRepository private constructor(
197196 val clientUid = response.body()?.let {
198197 it.data.clientUid ? : " "
199198 } ? : " "
200- storage.save(clientUid)
199+ if (clientUid.isNotEmpty()) {
200+ storage.save(clientUid)
201+ }
201202 return clientUid
202203 }
203204
You can’t perform that action at this time.
0 commit comments