Skip to content
Merged
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
11 changes: 7 additions & 4 deletions android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ android {

defaultConfig {
minSdk = 24
// The REES46 Android library is flavored on a `default` dimension
// (rees46 / personaclick); this plugin has no such dimension. Tell Gradle
// which flavor to consume. A no-op for the single-variant JitPack artifact;
// required when the SDK is consumed from source (local `includeBuild`).
missingDimensionStrategy("default", "rees46")
}

testOptions {
Expand All @@ -82,11 +87,9 @@ android {

dependencies {
// REES46 Android SDK (JitPack).
//
// Published from github.com/rees46/android-sdk as `com.github.rees46:android-sdk:<tag>`.
// v2.34.0 adds the catalog read managers (profile, product counters,
// category, collection) on top of the loyalty manager (v2.33.0).
val rees46AndroidSdkVersion = "v2.34.0"
// v2.36.0 is the first tag that ships the multi-instance `Rees46` facade.
val rees46AndroidSdkVersion = "v2.36.0"
add(
"rees46Implementation",
"com.github.rees46:android-sdk:$rees46AndroidSdkVersion",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ internal object FlutterTrackingBridge {
)

fun postTrackEvent(
sdk: SDK,
event: String,
time: Long?,
category: String?,
Expand Down Expand Up @@ -153,7 +154,7 @@ internal object FlutterTrackingBridge {
}

@Suppress("DEPRECATION")
SDK.instance.sendAsync(
sdk.sendAsync(
CUSTOM_PUSH_PATH,
body,
object : OnApiCallbackListener() {
Expand All @@ -170,6 +171,7 @@ internal object FlutterTrackingBridge {
}

fun postTrackPurchase(
sdk: SDK,
orderId: String,
orderPrice: Double,
items: List<PurchaseLineItemWire>,
Expand Down Expand Up @@ -223,7 +225,7 @@ internal object FlutterTrackingBridge {
val body = buildResult.getOrNull()!!

@Suppress("DEPRECATION")
SDK.instance.sendAsync(
sdk.sendAsync(
PURCHASE_PUSH_PATH,
body,
object : OnApiCallbackListener() {
Expand Down
Loading
Loading