Skip to content

Commit

Permalink
Publish latest SDK version
Browse files Browse the repository at this point in the history
Version 1.2.1
  • Loading branch information
pavelreiter committed Jan 10, 2024
1 parent b251bf0 commit 41b692b
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 50 deletions.
65 changes: 16 additions & 49 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@

<a name="1.2.0"></a>
## [1.2.0] - 2023-09-26
<a name="unreleased"></a>
## [Unreleased]


<a name="1.2.0-alpha04"></a>
## [1.2.0-alpha04] - 2023-09-22
<a name="1.2.1"></a>
## [1.2.1]

### Bug Fixes
- Remove messages with duplicate id from thread
- Fix minification issues with ChatInstanceProvider

<a name="1.2.0-alpha03"></a>
## [1.2.0-alpha03] - 2023-09-14

### Features
- Improve Java compatiblity for 1.2.1

<a name="1.2.0-alpha02"></a>
## [1.2.0-alpha02] - 2023-09-13

<a name="1.2.0"></a>
## [1.2.0] - 2023-09-26

<a name="1.2.0-alpha01"></a>
## [1.2.0-alpha01] - 2023-09-01

### Bug Fixes
- Remove messages with duplicate id from thread
- reenable tests depending on android.util.Patterns
- Successful thread-archived event will trigger thread list refresh
- Persist deviceToken until the value is updated
Expand Down Expand Up @@ -55,29 +53,9 @@
<a name="1.1.0"></a>
## [1.1.0] - 2023-06-26


<a name="1.1.0-alpha04"></a>
## [1.1.0-alpha04] - 2023-05-31

### Bug Fixes
- Allow lenient parsing of UUID type

<a name="1.1.0-alpha03"></a>
## [1.1.0-alpha03] - 2023-05-26

### Bug Fixes
- Successful thread-archived event will trigger thread list refresh

<a name="1.1.0-alpha02"></a>
## [1.1.0-alpha02] - 2023-05-22

### Features
- Increase targetSdk 31 -> 33

<a name="1.1.0-alpha01"></a>
## [1.1.0-alpha01] - 2023-05-15

### Bug Fixes
- Update thread agent correctly
- Allow application to respond to the websocket session state & reconnect
- Use OkHttp for WebSocket communication
Expand All @@ -89,6 +67,7 @@
- Bump org.jetbrains.dokka from 1.6.10 to 1.8.10
- Bump org.jetbrains.kotlin.android from 1.6.10 to 1.8.10
### Features
- Increase targetSdk 31 -> 33
- implement/fix LoadThreadMetadata and add loadMetadata entry to ChatThreadEventHandlerActions
- Dynamic pre contact survey
- Documentation update
Expand All @@ -108,10 +87,6 @@
<a name="1.0.1"></a>
## [1.0.1] - 2023-03-07


<a name="1.0.1-alpha01"></a>
## [1.0.1-alpha01] - 2023-03-06

### Bug Fixes
- Use OkHttp for WebSocket communication
- Add missing consumer ProGuard rule for GSON classes
Expand Down Expand Up @@ -180,16 +155,8 @@
- 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/nice-devone/nice-cxone-mobile-sdk-android/compare/1.2.1...HEAD
[1.2.1]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.2.1...1.2.0
[1.2.0]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.1.0...1.2.0
[1.1.0]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.0.1...1.1.0
[1.0.1]: https://github.com/nice-devone/nice-cxone-mobile-sdk-android/compare/1.0.0...1.0.1
6 changes: 5 additions & 1 deletion chat-sdk-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ interface Authorization {

@Public
companion object {
@JvmSynthetic
internal val None = Authorization("", "")

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ interface ChatBuilder {
)
}

@JvmSynthetic
internal operator fun invoke(
entrails: ChatEntrails,
factory: SocketFactory,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class ChatInstanceProvider(
deviceTokenProvider: DeviceTokenProvider? = null,
) : ChatStateListener {
/** those interested in ChatInstanceProvider updates. */
@Public
interface Listener {
/**
* Invoked when the chat object changes.
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -357,6 +360,7 @@ class ChatInstanceProvider(
chatState = CONNECTION_LOST
}

@Public
companion object {
@Suppress("LateinitUsage")
private lateinit var instance: ChatInstanceProvider
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ interface SocketFactoryConfiguration {
*/
@JvmName("create")
@JvmStatic
@JvmOverloads
operator fun invoke(
environment: Environment,
brandId: Long,
Expand Down

0 comments on commit 41b692b

Please sign in to comment.