diff --git a/README.md b/README.md index 6bac6cc..19c5a73 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# Fingerprint Android SDK -A basic library to generate the fingerprint of a device. +# fingerprint-android-sdk +The *fingerprint-android-sdk* is a library for *Android* that determines the device's fingerprint and store it in our backend. -This is developed with **Kotlin**. +This was developed with *Kotlin*. ## Integrate into your project @@ -30,44 +30,16 @@ dependencies { ### Example of the use in your app This is an example of the use of *Fingerprint Android SDK*. ```kotlin -package io.bayonet.fingerprint.example - -import android.os.Bundle -import androidx.appcompat.app.AppCompatActivity -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch - -import android.widget.TextView - import io.bayonet.fingerprint.core.domain.Token import io.bayonet.fingerprint.services.FingerprintService -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - - val helloTextView = findViewById<TextView>(R.id.hello_text_view) +... - runOnUiThread(Runnable { - val apiKey = "your-fingeprint-api-key" - val fingerprintService = FingerprintService( - apiKey, - this, // The main context - ) +val fingerprintService = FingerprintService( + this, + "12345678" +) - GlobalScope.launch { - try { - // Generate the device token - val token: Token = fingerprintService.analyze() - - // Show the token generated in the view - helloTextView.text = token.bayonetID - } catch (e: Exception) { - println("ERROR ${e}") - } - } - }) - } -} +// Generate the device token +val token: Token = fingerprintService.analyze() ``` diff --git a/lib/build.gradle b/lib/build.gradle index c0a7230..30a8a0e 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -19,13 +19,13 @@ tasks.withType(Test) { group = "com.github.bayonetio" //version = gitVersion() -version = '0.0.1' +version = '3.0.0' android { compileSdk 32 defaultConfig { - minSdk 22 + minSdk 21 targetSdk 32 testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' diff --git a/services/build.gradle b/services/build.gradle index 68a6310..bce2261 100644 --- a/services/build.gradle +++ b/services/build.gradle @@ -3,10 +3,10 @@ plugins { } configurations.maybeCreate("default") -artifacts.add("default", file('pro-2.2.2.aar')) +artifacts.add("default", file('pro-2.3.1.aar')) group = 'com.fingerprint.android:pro' -version = '2.2.1' +version = '2.3.1' afterEvaluate { publishing { @@ -14,7 +14,7 @@ afterEvaluate { maven(MavenPublication) { groupId = 'com.fingerprint.android.pro' artifactId = 'fingerprintjs-android' - version = '2.2.1' + version = '2.3.1' } } } diff --git a/services/pro-2.2.2.aar b/services/pro-2.2.2.aar deleted file mode 100644 index b1a786b..0000000 Binary files a/services/pro-2.2.2.aar and /dev/null differ diff --git a/services/pro-2.3.1.aar b/services/pro-2.3.1.aar new file mode 100644 index 0000000..3bb9efc Binary files /dev/null and b/services/pro-2.3.1.aar differ