From 35e9cdda5de5f63e1e5596bbcbf9d9b5c4626764 Mon Sep 17 00:00:00 2001 From: Wojtek Zieba Date: Fri, 19 Jan 2024 13:28:46 +0100 Subject: [PATCH] fix: do not allow for SDK reinitialization --- .../src/main/java/com/parsely/parselyandroid/ParselyTracker.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parsely/src/main/java/com/parsely/parselyandroid/ParselyTracker.kt b/parsely/src/main/java/com/parsely/parselyandroid/ParselyTracker.kt index ba1f99c..7690fce 100644 --- a/parsely/src/main/java/com/parsely/parselyandroid/ParselyTracker.kt +++ b/parsely/src/main/java/com/parsely/parselyandroid/ParselyTracker.kt @@ -111,7 +111,8 @@ public object ParselyTracker { dryRun: Boolean = false, ) { if (instance != null) { - Logging.log("Parse.ly has been already initialized. Previous configuration will be overwritten.") + Logging.log("Parse.ly SDK has been already initialized. Reinitialization is not supported.") + return } instance = ParselyTrackerInternal(siteId, flushInterval, context, dryRun) }