Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import java.util.Properties

plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.kotlin.serialization)
}
Expand Down Expand Up @@ -60,10 +59,6 @@ android {
targetCompatibility = JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = "11"
}

testOptions {
unitTests.isReturnDefaultValues = true
}
Expand Down Expand Up @@ -118,5 +113,7 @@ dependencies {
androidTestImplementation(platform(libs.compose.bom))
androidTestImplementation(libs.compose.ui.test.junit4)
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.androidx.test.runner)
androidTestImplementation(libs.androidx.test.espresso.core)
debugImplementation(libs.compose.ui.test.manifest)
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ enum class PurchaselySdkMode(
PAYWALL_OBSERVER(
storageValue = "paywallObserver",
label = "Paywall Observer",
runningMode = PLYRunningMode.PaywallObserver
runningMode = PLYRunningMode.Observer
),
FULL(
storageValue = "full",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class RunningModeRepository(private val store: KeyValueStore) {
}

val isObserverMode: Boolean
get() = runningMode == PLYRunningMode.PaywallObserver
get() = runningMode == PLYRunningMode.Observer

companion object {
private const val KEY_RUNNING_MODE = "running_mode"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ class PurchaseManager(
)
.build()

billingClient.queryProductDetailsAsync(queryParams) { billingResult, productDetailsList ->
billingClient.queryProductDetailsAsync(queryParams) { billingResult, queryResult ->
val productDetailsList = queryResult.productDetailsList
if (billingResult.responseCode != BillingClient.BillingResponseCode.OK || productDetailsList.isEmpty()) {
Log.e(TAG, "[Shaker] queryProductDetails failed: ${billingResult.debugMessage}")
_transactionResult.tryEmit(TransactionResult.Error(billingResult.debugMessage))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.purchasely.shaker.purchasely

import io.purchasely.ext.PLYPresentation
import io.purchasely.ext.presentation.PLYPresentation

@JvmInline
value class PresentationHandle internal constructor(
Expand Down
Loading
Loading