Skip to content

Commit

Permalink
Publish the latest pre-release SDK version
Browse files Browse the repository at this point in the history
Version 1.3.0-rc2
  • Loading branch information
pavelreiter committed Feb 22, 2024
1 parent 41b692b commit 3c78c2e
Show file tree
Hide file tree
Showing 485 changed files with 15,234 additions and 5,375 deletions.
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Global owners
* @pavelreiter @nice-devone/DFO @hendrickson-tyler
* @pavelreiter @davidberry-nice @nice-devone/DFO @hendrickson-tyler

# CI owners
.github/workflows/* @pavelreiter @LukasSanda
.github/workflows/* @pavelreiter @davidberry-nice @LukasSanda
14 changes: 7 additions & 7 deletions .github/workflows/deploy-javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ jobs:

steps:
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin" # aka adopt

- name: Set up Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v3

- name: Run build
run: ./gradlew dokkaHtmlMultiModule -Pandroid.experimental.settings.executionProfile=ci
env:
GPR_USERNAME: ${{ github.repository_owner }}
GPR_TOKEN: ${{ github.token }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: javadoc-html
path: dist
Expand All @@ -42,20 +42,20 @@ jobs:

steps:
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Prepare Repository
run: |
rm -rf *
rm -rf .github .idea .gitignore .chglog
git checkout --orphan static-feature/pages
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: javadoc-html

- name: Add & Commit
uses: EndBug/[email protected].3
uses: EndBug/[email protected].4
with:
push: origin static-feature/pages --force
message: 'Documentation'
6 changes: 3 additions & 3 deletions .github/workflows/deploy-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ jobs:

steps:
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin" # aka adopt

- name: Set up Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/gradle-build-action@v3

- name: Append Version
run: |
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
/local.properties
/.idea/
!/.idea/codeStyles
!/.idea/copyright
!/.idea/scopes
.DS_Store
/build
/captures
Expand Down
47 changes: 47 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,53 @@
<a name="unreleased"></a>
## [Unreleased]

## [Unreleased]
### Bug Fixes
- Set CustomerId type to String
- consolidate differing kotlin tool versions on 1.9.21
- Make date formatting thread safe
- Use referential equality for enum comparison
- Cancel start job in case of re-configuration
- Update Chat to separate prepare and connect actions.
- Display sender name and read/received status.
- fix TreeField/CVHierarchicalField to not skip every other level.
- Update Agent.isTyping only when agent is typing
- Remove messages with duplicate id from thread
- fix crash when restore suspended login dialog
- Sockets created by SDK are tagged for TrafficStats
- Delay SharedPreferences initialization
- Fix unreliable unit tests depending on makeMessageModel being sequential
- fix display of new agent messages
- Disable sending empty messages. ([#454](https://github.com/nice-devone/nice-cxone-mobile-sdk-android/issues/454))
- return error when receiving "invalid" server response on image upload
- BREAKING CHANGE if uploaded filename has no extension, get one using MimeTypeMap
- Fix crashes on some Qualcomm/Samsung devices


### Dependency Change
- Update Kotlin 1.9.20 -> 1.9.21
- Bump com.squareup.okhttp3:okhttp from 4.11.0 to 4.12.0
- Bump androidx.core:core-ktx from 1.10.1 to 1.12.0
- Update Kotlin 1.8.21 -> 1.9.10


### Features
- Add ProxyLogger constructor with vararg param
- Improve Java compatibility
- Raise project compileSdk 33 -> 34
- Improve logging of outgoing events
- Pass server reported errors to integration
- Process events on background thread
- Allow to change users name
- Message is updated when read by agent
- Add seenAt and inferred state to message metadata
- Add logger-android module
- Extract logging library module
- Add option to specify Logger for the SDK
- Correct welcome message handling
- replace dagger/hilt with Koin in UI and sample application components
- Implement CaseStatusChanged event


<a name="1.2.1"></a>
## [1.2.1]
Expand Down
23 changes: 17 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,20 @@ plugins {
id "com.android.library" version "$androidGradlePluginVersion" apply false
id "com.android.application" version "$androidGradlePluginVersion" apply false
id "org.jetbrains.dokka" version "$dokkaVersion" apply true
id "com.vanniktech.maven.publish" version "0.25.3" apply false
id "com.google.gms.google-services" version "4.3.15" apply false
id "androidx.navigation.safeargs" version "2.6.0" apply false
id "com.vanniktech.maven.publish" version "0.27.0" apply false
id "com.google.gms.google-services" version "4.4.1" apply false
id "androidx.navigation.safeargs" version "2.7.7" apply false
id "io.gitlab.arturbosch.detekt" version "$detektVersion"
id "nl.neotech.plugin.rootcoverage" version "1.6.0" apply false
id "nl.neotech.plugin.rootcoverage" version "1.7.1" apply false
id "com.dipien.semantic-version" version "2.0.0" apply false
id "com.google.dagger.hilt.android" version "$daggerHiltVersion" apply false
id "com.google.firebase.appdistribution" version "4.0.1" apply false
id 'com.google.firebase.crashlytics' version '2.9.9' apply false
id "com.google.devtools.ksp" version "1.9.22-1.0.17" apply false
id "me.tylerbwong.gradle.metalava" version "0.3.5" apply false
}

group = GROUP
version = "1.2.0" // Fallback version
version = "1.3.0" // Fallback version

allprojects {
group = rootProject.group
Expand All @@ -34,6 +37,14 @@ tasks.dokkaHtmlMultiModule.configure {
outputDirectory.set(project.file("dist"))
}

tasks.register('metalavaGenerateSignature') {
dependsOn subprojects.collect { it.tasks.matching { it.name == "metalavaGenerateSignatureRelease" } }
}

tasks.register('metalavaCheckCompatibility') {
dependsOn subprojects.collect { it.tasks.matching { it.name == "metalavaCheckCompatibilityRelease" } }
}

// Disabled until the support for AGP 8 is resolved - https://github.com/NeoTech-Software/Android-Root-Coverage-Plugin/issues/82
//rootCoverage {
// generateXml true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ plugins {
android {

defaultConfig {
targetSdk 33
targetSdk 34
}

packagingOptions {
dex {
useLegacyPackaging false
}
}
}
28 changes: 28 additions & 0 deletions buildSrc/src/main/groovy/android-docs-conventions.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2021-2023. NICE Ltd. All rights reserved.
*
* Licensed under the NICE License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/nice-devone/nice-cxone-mobile-sdk-android/blob/main/LICENSE
*
* TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE CXONE MOBILE SDK IS PROVIDED ON
* AN “AS IS” BASIS. NICE HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS
* OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE.
*/

plugins {
id "docs-conventions"
}

dokkaHtml {
configure {
dokkaSourceSets {
named("main") {
noAndroidSdkLink.set(false)
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,25 @@
* FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE.
*/

package com.nice.cxonechat.ui.di
plugins {
id "kotlin-android"
id "kotlin-conventions"
}

android {

compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

import com.nice.cxonechat.ui.data.PinpointPushMessageParser
import com.nice.cxonechat.ui.domain.PushMessageParser
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ServiceComponent
kotlinOptions {
jvmTarget = "11"
}

}

@Module
@InstallIn(ServiceComponent::class)
internal interface ServiceBindings {
@Binds
fun pushParser(pinpointPushMessageParser: PinpointPushMessageParser): PushMessageParser
kotlin {
// Required to make kapt use same JVM target as compiler
jvmToolchain(11)
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ plugins {
android {

defaultConfig {
targetSdk 33
targetSdk 34
}
}
28 changes: 28 additions & 0 deletions buildSrc/src/main/groovy/android-library-style-conventions.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2021-2023. NICE Ltd. All rights reserved.
*
* Licensed under the NICE License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/nice-devone/nice-cxone-mobile-sdk-android/blob/main/LICENSE
*
* TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE CXONE MOBILE SDK IS PROVIDED ON
* AN “AS IS” BASIS. NICE HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS
* OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE.
*/

plugins {
id "kotlin-android"
id "library-style-conventions"
}

android {
lint {
htmlReport true

enable "CheckResult"
baseline = file("lint-baseline.xml")
}
}
34 changes: 34 additions & 0 deletions buildSrc/src/main/groovy/android-test-conventions.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright (c) 2021-2023. NICE Ltd. All rights reserved.
*
* Licensed under the NICE License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/nice-devone/nice-cxone-mobile-sdk-android/blob/main/LICENSE
*
* TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE CXONE MOBILE SDK IS PROVIDED ON
* AN “AS IS” BASIS. NICE HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS
* OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE.
*/

plugins {
id "test-conventions"
}

android {
defaultConfig {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
enableUnitTestCoverage true
}
}
}

dependencies {
androidTestImplementation "androidx.test:runner:1.5.2"
androidTestImplementation "androidx.test.espresso:espresso-core:3.5.1"
}
10 changes: 4 additions & 6 deletions buildSrc/src/main/groovy/android-ui-conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@ android {

dependencies {
implementation "androidx.appcompat:appcompat:1.6.1"
implementation "androidx.core:core-ktx:1.10.1"
implementation "androidx.core:core-ktx:1.12.0"
implementation "androidx.datastore:datastore-preferences:1.0.0"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.6.1"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.1"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2"

implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.2"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3"

//Navigation
def axNavigationVersion = "2.6.0"
def axNavigationVersion = "2.7.3"
implementation "androidx.navigation:navigation-fragment-ktx:$axNavigationVersion"
implementation "androidx.navigation:navigation-ui-ktx:$axNavigationVersion"
implementation "androidx.navigation:navigation-runtime-ktx:$axNavigationVersion"
Expand Down
8 changes: 8 additions & 0 deletions buildSrc/src/main/groovy/api-conventions.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
plugins {
id "me.tylerbwong.gradle.metalava"
}

metalava {
reportWarningsAsErrors.set(true)
reportLintsAsErrors.set(true)
}
Loading

0 comments on commit 3c78c2e

Please sign in to comment.