diff --git a/CHANGELOG.md b/CHANGELOG.md index c803b16..eeb2ab6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 1.15.0 +### Added +- You can use `clearUserSession` to remove the users attributes, and clear their ID. + +### Changes +- `UnflowAnalyticsListener` has a new required function to accept updates for attributes. + +### Fixes +- If you provide a push notification to us, we'll not show the resulting pop up if the SDK is paused. It will only show when you call resume. + ## 1.14.2 ### Changes - We've continued to improve the images on articles, specifically on smaller devices. diff --git a/samples/unflow-compose/app/build.gradle.kts b/samples/unflow-compose/app/build.gradle.kts index 48f4995..6c53a20 100644 --- a/samples/unflow-compose/app/build.gradle.kts +++ b/samples/unflow-compose/app/build.gradle.kts @@ -49,7 +49,7 @@ android { } dependencies { - implementation("com.unflow:unflow-ui:1.14.2") + implementation("com.unflow:unflow-ui:1.15.0") implementation("androidx.compose.ui:ui:${rootProject.extra["compose_version"]}") implementation("androidx.compose.material:material:${rootProject.extra["compose_version"]}") diff --git a/samples/unflow-compose/app/src/main/java/com/unflow/sample/compose/UnflowComposeApplication.kt b/samples/unflow-compose/app/src/main/java/com/unflow/sample/compose/UnflowComposeApplication.kt index 86b5aaf..28cb559 100644 --- a/samples/unflow-compose/app/src/main/java/com/unflow/sample/compose/UnflowComposeApplication.kt +++ b/samples/unflow-compose/app/src/main/java/com/unflow/sample/compose/UnflowComposeApplication.kt @@ -17,6 +17,13 @@ class UnflowComposeApplication : Application() { // Do something with the events. e.g. Send to your existing analytics tool Log.d("Unflow-Analytics", "$event") } + + override fun onAttributesUpdate(attributes: Map) { + // Do something with these, i.e store in your local database + attributes.forEach { + Log.d("Unflow-Analytics", "${it.key} ${it.value}") + } + } } val unflow = UnflowSdk.initialize( diff --git a/samples/unflow-java/app/build.gradle b/samples/unflow-java/app/build.gradle index 2d42bbc..c33928f 100644 --- a/samples/unflow-java/app/build.gradle +++ b/samples/unflow-java/app/build.gradle @@ -30,7 +30,7 @@ android { } dependencies { - implementation 'com.unflow:unflow-ui:1.14.2' + implementation 'com.unflow:unflow-ui:1.15.0' implementation 'com.github.bumptech.glide:glide:4.13.2' annotationProcessor 'com.github.bumptech.glide:compiler:4.13.2' diff --git a/samples/unflow-sample/app/build.gradle b/samples/unflow-sample/app/build.gradle index 6325a52..a36c603 100644 --- a/samples/unflow-sample/app/build.gradle +++ b/samples/unflow-sample/app/build.gradle @@ -32,7 +32,7 @@ android { } dependencies { - implementation 'com.unflow:unflow-ui:1.14.2' + implementation 'com.unflow:unflow-ui:1.15.0' implementation 'androidx.core:core-ktx:1.7.0' implementation 'androidx.appcompat:appcompat:1.4.1' diff --git a/samples/unflow-sample/app/src/main/java/com/unflow/sample/UnflowApplication.kt b/samples/unflow-sample/app/src/main/java/com/unflow/sample/UnflowApplication.kt index 9a7f30f..4a3c340 100644 --- a/samples/unflow-sample/app/src/main/java/com/unflow/sample/UnflowApplication.kt +++ b/samples/unflow-sample/app/src/main/java/com/unflow/sample/UnflowApplication.kt @@ -17,6 +17,12 @@ class UnflowApplication : Application() { // Do something with the events. e.g. Send to your existing analytics tool Log.d("Unflow-Analytics", "$event") } + override fun onAttributesUpdate(attributes: Map) { + // Do something with these, like store them in your app + attributes.forEach { + Log.d("Unflow-Analytics", "${it.key} ${it.value}") + } + } } val unflow = UnflowSdk.initialize(