@@ -4,7 +4,7 @@ import android.app.Activity
44import android.app.Application
55import android.util.Log
66import androidx.annotation.NonNull
7- import androidx .preference.PreferenceManager
7+ import android .preference.PreferenceManager
88import com.google.gson.Gson
99import com.google.gson.JsonSyntaxException
1010import com.qonversion.android.sdk.*
@@ -108,7 +108,6 @@ class QonversionFlutterSdkPlugin : MethodCallHandler, FlutterPlugin, ActivityAwa
108108 " purchaseProduct" -> purchaseProduct(args[" product" ] as ? String , result)
109109 " updatePurchase" -> updatePurchase(args, result)
110110 " updatePurchaseWithProduct" -> updatePurchaseWithProduct(args, result)
111- " setUserId" -> setUserId(args[" userId" ] as ? String , result)
112111 " setProperty" -> setProperty(args, result)
113112 " setUserProperty" -> setUserProperty(args, result)
114113 " addAttributionData" -> addAttributionData(args, result)
@@ -275,16 +274,6 @@ class QonversionFlutterSdkPlugin : MethodCallHandler, FlutterPlugin, ActivityAwa
275274 })
276275 }
277276
278- private fun setUserId (userId : String? , result : Result ) {
279- if (userId == null ) {
280- result.noUserIdError()
281- return
282- }
283-
284- Qonversion .setUserID(userId)
285- result.success(null )
286- }
287-
288277 private fun setProperty (args : Map <String , Any >, result : Result ) {
289278 val rawProperty = args[" property" ] as ? String ? : return result.noProperty()
290279
0 commit comments