From 171513ab2fd9e4bd027bac8669e78380e7d96955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gon=C3=A7alves?= Date: Thu, 22 Dec 2022 12:27:22 -0300 Subject: [PATCH] bump version and add missing docs --- app/build.gradle | 4 ++-- .../kotlin/com/mytiki/tiki_sdk_android/TikiSdk.kt | 12 +++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index a41ba62..cf8ac3e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -20,8 +20,8 @@ android { compileSdk 33 defaultConfig { minSdk 21 - versionCode 1 - versionName "0.0.4" + versionCode 2 + versionName "0.0.5" multiDexEnabled true testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/kotlin/com/mytiki/tiki_sdk_android/TikiSdk.kt b/app/src/main/kotlin/com/mytiki/tiki_sdk_android/TikiSdk.kt index 9301f25..b658b5e 100644 --- a/app/src/main/kotlin/com/mytiki/tiki_sdk_android/TikiSdk.kt +++ b/app/src/main/kotlin/com/mytiki/tiki_sdk_android/TikiSdk.kt @@ -17,6 +17,16 @@ import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.runBlocking import java.util.* +/** + * The TIKI SDK main class. Use this to add tokenized data ownership, consent, and rewards. + * + * @constructor + * + * @param apiId The apiId for connecting to TIKI cloud. + * @param origin The default origin for all transactions. + * @param context The context of the application. Used to initialize Flutter Engine + * @param address The address of the user node in TIKI blockchain. If null a new address will be created. + */ class TikiSdk(apiId: String, origin: String, context: Context, address: String? = null) { private var tikiSdkFlutterChannel: TikiSdkFlutterChannel @@ -199,7 +209,7 @@ class TikiSdk(apiId: String, origin: String, context: Context, address: String? * @param destination TikiSdkDestination * @param origin String? * @param request () -> Unit - * @param onBlocked () -> Unit + * @param onBlocked ((String) -> Unit)? */ fun applyConsent( source: String,