Skip to content

Commit

Permalink
- Fixed minor issue with the review flow
Browse files Browse the repository at this point in the history
- New build
  • Loading branch information
Stjin committed Nov 11, 2024
1 parent 1dfe4f6 commit 2cd4c20
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ android {
*/

// SDK 35 + v5.4.1 + release 01 + 00 (for app)
versionCode = 355410100 // https://developer.android.com/training/wearables/packaging
versionCode = 355410200 // https://developer.android.com/training/wearables/packaging //TODO Set back to 01
// The "v" is important, as the updater class compares with the RSS feed on Github
versionName = "v5.4.1"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Binary file modified app/gplayless/release/app-gplayless-release.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion app/gplayless/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 355410100,
"versionCode": 355410200,
"versionName": "v5.4.1",
"outputFile": "app-gplayless-release.apk"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class ManageSubscriptionActivity : BaseActivity(), BillingClientStateListener, P

private var currentSubscriptionSku: String? = null
private var currentSubscriptionPurchaseToken: String? = null
private var hasNewSubscription = false

private lateinit var binding: ActivityManageSubscriptionBinding
override fun onCreate(savedInstanceState: Bundle?) {
Expand Down Expand Up @@ -333,6 +334,7 @@ class ManageSubscriptionActivity : BaseActivity(), BillingClientStateListener, P
.build()
billingClient.acknowledgePurchase(acknowledgePurchaseParams) { billingResult ->
if (billingResult.responseCode == BillingClient.BillingResponseCode.OK) {
hasNewSubscription = true
finish()
}
}
Expand All @@ -346,7 +348,7 @@ class ManageSubscriptionActivity : BaseActivity(), BillingClientStateListener, P

override fun finish() {
val resultIntent = Intent()
resultIntent.putExtra("hasNewSubscription", true)
resultIntent.putExtra("hasNewSubscription", hasNewSubscription)
setResult(RESULT_OK, resultIntent)
super.finish()
}
Expand Down

0 comments on commit 2cd4c20

Please sign in to comment.