From 457f6e99ad59c302a5e8c4cf0a73bfd886463648 Mon Sep 17 00:00:00 2001 From: Pavel Reiter Date: Wed, 10 Jan 2024 13:40:11 +0100 Subject: [PATCH] Publish latest SDK version Version 1.2.1 --- CHANGELOG.md | 41 +++++++++++++------ chat-sdk-core/build.gradle | 6 ++- .../java/com/nice/cxonechat/Authorization.kt | 1 + .../java/com/nice/cxonechat/ChatBuilder.kt | 1 + .../nice/cxonechat/ChatInstanceProvider.kt | 5 +++ .../main/java/com/nice/cxonechat/ChatState.kt | 1 + .../cxonechat/SocketFactoryConfiguration.kt | 1 + 7 files changed, 42 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07db0858..0ff1062a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ + +## [Unreleased] + + + +## [1.2.1] + +### Bug Fixes +- Fix minification issues with ChatInstanceProvider + + +### Features +- Improve Java compatiblity for 1.2.1 + ## [1.2.0] - 2023-09-26 @@ -180,16 +194,17 @@ - failure - typing start/end -[Unreleased]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.2.0...HEAD -[1.2.0]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.2.0-alpha04...1.2.0 -[1.2.0-alpha04]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.2.0-alpha03...1.2.0-alpha04 -[1.2.0-alpha03]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.2.0-alpha02...1.2.0-alpha03 -[1.2.0-alpha02]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.2.0-alpha01...1.2.0-alpha02 -[1.2.0-alpha01]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.1.0...1.2.0-alpha01 -[1.1.0]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.1.0-alpha04...1.1.0 -[1.1.0-alpha04]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.1.0-alpha03...1.1.0-alpha04 -[1.1.0-alpha03]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.1.0-alpha02...1.1.0-alpha03 -[1.1.0-alpha02]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.1.0-alpha01...1.1.0-alpha02 -[1.1.0-alpha01]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.0.1...1.1.0-alpha01 -[1.0.1]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.0.1-alpha01...1.0.1 -[1.0.1-alpha01]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.0.0...1.0.1-alpha01 +[Unreleased]: https://github.com/BrandEmbassy/cxone-mobile-sdk-android/compare/1.2.1...HEAD +[1.2.1]: https://github.com/BrandEmbassy/cxone-mobile-sdk-android/compare/1.2.0...1.2.1 +[1.2.0]: https://github.com/BrandEmbassy/cxone-mobile-sdk-android/compare/1.2.0-alpha04...1.2.0 +[1.2.0-alpha04]: https://github.com/BrandEmbassy/cxone-mobile-sdk-android/compare/1.2.0-alpha03...1.2.0-alpha04 +[1.2.0-alpha03]: https://github.com/BrandEmbassy/cxone-mobile-sdk-android/compare/1.2.0-alpha02...1.2.0-alpha03 +[1.2.0-alpha02]: https://github.com/BrandEmbassy/cxone-mobile-sdk-android/compare/1.2.0-alpha01...1.2.0-alpha02 +[1.2.0-alpha01]: https://github.com/BrandEmbassy/cxone-mobile-sdk-android/compare/1.1.0...1.2.0-alpha01 +[1.1.0]: https://github.com/BrandEmbassy/cxone-mobile-sdk-android/compare/1.1.0-alpha04...1.1.0 +[1.1.0-alpha04]: https://github.com/BrandEmbassy/cxone-mobile-sdk-android/compare/1.1.0-alpha03...1.1.0-alpha04 +[1.1.0-alpha03]: https://github.com/BrandEmbassy/cxone-mobile-sdk-android/compare/1.1.0-alpha02...1.1.0-alpha03 +[1.1.0-alpha02]: https://github.com/BrandEmbassy/cxone-mobile-sdk-android/compare/1.1.0-alpha01...1.1.0-alpha02 +[1.1.0-alpha01]: https://github.com/BrandEmbassy/cxone-mobile-sdk-android/compare/1.0.1...1.1.0-alpha01 +[1.0.1]: https://github.com/BrandEmbassy/cxone-mobile-sdk-android/compare/1.0.1-alpha01...1.0.1 +[1.0.1-alpha01]: https://github.com/BrandEmbassy/cxone-mobile-sdk-android/compare/1.0.0...1.0.1-alpha01 diff --git a/chat-sdk-core/build.gradle b/chat-sdk-core/build.gradle index 9ce21209..74395542 100644 --- a/chat-sdk-core/build.gradle +++ b/chat-sdk-core/build.gradle @@ -34,8 +34,12 @@ android { } } + kotlinOptions { + freeCompilerArgs = ['-Xjvm-default=all'] + } + buildFeatures { - buildConfig true // Library version is used for device fingerpint + buildConfig true // Library version is used for device fingerprint } } diff --git a/chat-sdk-core/src/main/java/com/nice/cxonechat/Authorization.kt b/chat-sdk-core/src/main/java/com/nice/cxonechat/Authorization.kt index 5a37183f..3d82bebc 100644 --- a/chat-sdk-core/src/main/java/com/nice/cxonechat/Authorization.kt +++ b/chat-sdk-core/src/main/java/com/nice/cxonechat/Authorization.kt @@ -34,6 +34,7 @@ interface Authorization { @Public companion object { + @JvmSynthetic internal val None = Authorization("", "") /** diff --git a/chat-sdk-core/src/main/java/com/nice/cxonechat/ChatBuilder.kt b/chat-sdk-core/src/main/java/com/nice/cxonechat/ChatBuilder.kt index 30a35ace..c6013200 100644 --- a/chat-sdk-core/src/main/java/com/nice/cxonechat/ChatBuilder.kt +++ b/chat-sdk-core/src/main/java/com/nice/cxonechat/ChatBuilder.kt @@ -129,6 +129,7 @@ interface ChatBuilder { ) } + @JvmSynthetic internal operator fun invoke( entrails: ChatEntrails, factory: SocketFactory, diff --git a/chat-sdk-core/src/main/java/com/nice/cxonechat/ChatInstanceProvider.kt b/chat-sdk-core/src/main/java/com/nice/cxonechat/ChatInstanceProvider.kt index ee8beff7..c4726427 100644 --- a/chat-sdk-core/src/main/java/com/nice/cxonechat/ChatInstanceProvider.kt +++ b/chat-sdk-core/src/main/java/com/nice/cxonechat/ChatInstanceProvider.kt @@ -45,6 +45,7 @@ class ChatInstanceProvider( deviceTokenProvider: DeviceTokenProvider? = null, ) : ChatStateListener { /** those interested in ChatInstanceProvider updates. */ + @Public interface Listener { /** * Invoked when the chat object changes. @@ -62,6 +63,7 @@ class ChatInstanceProvider( } /** Defines provider of device token for push notifications, typically this will [Firebase.messaging.token]. */ + @Public fun interface DeviceTokenProvider { /** * Create or retrieve a device token for push messages, if it is unavailable, the provider should return @@ -72,6 +74,7 @@ class ChatInstanceProvider( } /** Configuration scope used to reconfigure and restart the chat session. */ + @Public interface ConfigurationScope { /** True if authorization is required. */ val authenticationRequired: Boolean @@ -357,6 +360,7 @@ class ChatInstanceProvider( chatState = CONNECTION_LOST } + @Public companion object { @Suppress("LateinitUsage") private lateinit var instance: ChatInstanceProvider @@ -374,6 +378,7 @@ class ChatInstanceProvider( * @param deviceTokenProvider Provider of device tokens for push messages. * @return the newly created ChatInstanceProvider singleton. */ + @JvmOverloads fun create( configuration: SocketFactoryConfiguration?, authorization: Authorization? = null, diff --git a/chat-sdk-core/src/main/java/com/nice/cxonechat/ChatState.kt b/chat-sdk-core/src/main/java/com/nice/cxonechat/ChatState.kt index 5aa0805d..ba1395cc 100644 --- a/chat-sdk-core/src/main/java/com/nice/cxonechat/ChatState.kt +++ b/chat-sdk-core/src/main/java/com/nice/cxonechat/ChatState.kt @@ -18,6 +18,7 @@ package com.nice.cxonechat /** * Definition of possible Chat states from application point-of-view. */ +@Public enum class ChatState { /** Not yet configured enough to connect. */ INITIAL, diff --git a/chat-sdk-core/src/main/java/com/nice/cxonechat/SocketFactoryConfiguration.kt b/chat-sdk-core/src/main/java/com/nice/cxonechat/SocketFactoryConfiguration.kt index 075b03ab..8c8a2526 100644 --- a/chat-sdk-core/src/main/java/com/nice/cxonechat/SocketFactoryConfiguration.kt +++ b/chat-sdk-core/src/main/java/com/nice/cxonechat/SocketFactoryConfiguration.kt @@ -48,6 +48,7 @@ interface SocketFactoryConfiguration { */ @JvmName("create") @JvmStatic + @JvmOverloads operator fun invoke( environment: Environment, brandId: Long,