Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release ct v6.2.0 #590

Merged
merged 22 commits into from
Apr 3, 2024
Merged

Release ct v6.2.0 #590

merged 22 commits into from
Apr 3, 2024

Conversation

Anush-Shand
Copy link
Contributor

Version 6.2.0 (April 3, 2024)

New Features

  • Extends the push primer callback to notify permission denial when cancel button is clicked on PromptForSettings alert dialog..

Bug Fixes

  • Fixes a crash due to ClassNotFoundException for CTBackgroundJobService.
  • Fixes a crash due to NullPointerException related to deviceInfo.deviceId.
  • Fixes a crash due to NullPointerException related to isMainProcess check.
  • Fixes an ANR due to eager initialisation of CtApi triggered by DeviceId generation.

Breaking API Changes

  • Removes all Xiaomi related public methods as the Xiaomi SDK has been discontinued. Details here.

CTLalit and others added 21 commits February 13, 2024 12:50
- deleted the module and files
- workflows related to xps
- no ref to xiaomi or any of its functionalities anymore
- removed code from sample app
- removed code from main CleverTapApi facade
- fixed init of variables in class first before using them in deviceInfo
- did not use device id from state variable (shared pref map)
- instead passed device id back from func as it is created on fly
- this reduces risk of state variable changing over time as it is accessed in future
- simplified ternary as it would always return null in both cases
- the device id passed as method return type to be used
- did not fetch device id from state (shared pref map)
- comment fixed
- seems some unreachable code can be due to legacy
* Port DatabaseHelper and DBAdapter to Kotlin

* Port DBManager to Kotlin

Update tests of DBManager and DBAdapter
Rename QueueCursor to QueueData
Port BaseDatabaseManager to Kotlin

* Add mockito-kotlin to tests
Change usage of ArgumentCaptor with DBAdapter to use mockito-kotlin

* Never close the connection to the db once opened

---------

Co-authored-by: CTLalit <[email protected]>
…into xiaomi_sunsetting

# Conflicts:
#	clevertap-core/src/main/java/com/clevertap/android/sdk/CleverTapAPI.java
#	clevertap-xps/build.gradle
#	clevertap-xps/src/main/AndroidManifest.xml
#	clevertap-xps/src/main/java/com/clevertap/android/xps/CTXiaomiMessageHandler.java
#	docs/CTXIAOMIPUSH.md
#	gradle/libs.versions.toml
#	sample/build.gradle
#	templates/CTXIAOMIPUSH.md
- removed unreachable code and class
* fix(ANR) - add threading annotation for ease of understanding like which method must run on which thread SDK-3717

* fix(ANR) - add CtApiWrapper class to lazily initialize CtApi. Eager initialization of CtApi is causing ANR during CleverTapAPI instance creation triggered by DeviceId generation callback SDK-3717

* fix(ANR) - add AnrWatchDog to sample app SDK-3717

* fix(ANR) - remove unused cryptHandler from NetworkManager SDK-3717

* fix(ANR) - fix NetworkManager test SDK-3717

* fix(ANR) - add unit test for CtApiWrapper SDK-3717

* fix(ANR) - add documentation for CtApiWrapper SDK-3717

* fix(ANR) - remove isMainProcess check for xiaomi which is causing ANR SDK-3717

---------

Co-authored-by: CTLalit <[email protected]>
…bService from AndroidManifest.xml (#588)

- These entries caused crashes in v6.1.0 and v6.1.1. Workaround was provided for client. It will now be fixed in the SDK itself
- upgrades ct sample app to add real time uninstall tracking
- adds firebase analytics dependency
- added callback in case of cancel clicked in settings alert
* task(SDK-3743) - Release ctv6.2.0

- Updates CHANGELOG.md
- Updates versions
- Runs copyTemplates

* task(SDK-3743) - Release ctv6.2.0

- Fixes a typo

* task(SDK-3743) - Release ctv6.2.0

- Fixes a typo

* task(SDK-3743) - Release ctv6.2.0

- Fixes a typo

* task(SDK-3743) - Release ctv6.2.0

- Adds github issue link to changelog

* task(SDK-3743) - Release ctv6.2.0

- Fixes typo

* task(SDK-3743) - Release ctv6.2.0

- Changes crash to ANR

* task(SDK-3743) - Release ctv6.2.0

- Moves new feature to bugfix
Copy link
Contributor

@piyush-kukadiya piyush-kukadiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Anush-Shand Anush-Shand merged commit 62254a0 into master Apr 3, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants