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 v7.0.0 #364

Merged
merged 11 commits into from
Aug 7, 2024
Merged

Release v7.0.0 #364

merged 11 commits into from
Aug 7, 2024

Conversation

akashvercetti
Copy link
Collaborator

Added

  • Adds support for Custom Code Templates. Please refer to the Custom Code Templates doc to read more on how to integrate this in your app.
  • Adds support for File Type Variables in Remote Config. Please refer to the Remote Config Variables doc to read more on how to integrate this in your app.
  • Adds support for triggering in-app notifications on User Attribute Change.
  • Adds the CleverTap SDK version in the JS interface for HTML in-app notifications.

Fixed

  • Fix HTML view controller CTInAppHTMLViewController presented before scene became active.
  • Use keyWindow supported orientations for CTInAppDisplayViewController.

nishant-clevertap and others added 11 commits June 25, 2024 16:24
* Adds CTFileDownloadManager class for file downloading
Adds callback for each file and all files download

* Added unit tests for CTFileDownloadManager

* Added unit tests for CTFileDownloadDelegate protocol callback methods.

* Updated callback approach to use completion block.
Updated unit tests.

* - Added class CTFileDownloader to handle file downloading from inapps, file variables.
- Added expiry logic for files downloaded.
- Added unit tests.

* Added public method to get file downloaded path.

* Added some unit tests for clearFileAssets method.

* - Added logic for handling url download in progress, only one request to the url to download the file.
- Added methods for image preloading cases.
- Added unit test cases.

* - Added thread safety check for updating active and inactive dictionary.
- Added changes for CS InApps to use the new CTFileDownloader class for image preloading.
- Removed previous usage of CTInAppImagePrefetchManager class for image preloading.

* Added callback for File variables only, and code cleanup.

* Address comments and improvements

* Rename methods

* Move duplicate methods to test helper

* Move tests to group

* Move tests headers and mocks to separate files

* Use longer resource timeout

* Improve tests

* Improve clear expired files

* Fix clear expired assets

* Save files to directory inside documents
Remove all files removes the files inside the directory
Add Unit tests

* Move to group

---------

Co-authored-by: Nikola Zagorchev <nikola.zagorchev@gmail.com>
* Return after completion if error

* Ensure dispatch_group_leave is called once for enter

* Reuse filepath

* Remove unused var
…Controller (#340)

* Supported orientations based on the window orientations

* Use keyWindow
* feat(MC-1564): Adds PE File type variables support.
- Adds new CleverTap APIs onVariablesChangedAndNoDownloadsPending and onceVariablesChangedAndNoDownloadsPending.
- Adds new fileIsReady callback in CTVarDelegate when file is downloaded.

* - Added logic for _value to return path of downloaded file.
- Updated logic to call fileIsReady when delegate is set.

* - Used delegate pattern instead of Notification center.
- Update fileURL value also when file value has changed.

* Added unit tests for File type variables.

* Add onFileReady, download file if var defined after applyDiffs

* Fix trigger file is ready callback

---------

Co-authored-by: Nikola Zagorchev <nikola.zagorchev@gmail.com>
* Delete legacy files

* Check file exists before deletion
* Added Support for persistence of user profiles with device Id

* Fill the local session cache with the old userProfile values when switching the user

* Refactor Event adapter and Trigger Adapter to start using profile attribute names

* Added support for User Attribute triggering for Profile Increment and Profile Decrement API

* Refractored the CTEventAdapter constructor to incorporate profileAttr parameter

* Refractored the logic for evaluating client side and server side in apps by passing them the array as argument

* Updated the logic for Profile Increment, Decrement and Remove key

* Optimized code to persist profile only when the change in new profile is made

* Code cleaning and updated the persistence time to 30 seconds

* Adding Unit test cases for CTUserInfoMigrator file

* Added support for Profile type Events to be included for server side inapps

* Moved the getUserAttribute and updating profile fields to LocalDataStoreFile

* Added unit testing for evaluate on User attributes method

* Added Unit tests for getUserAttributeChangeProperties

* Attached "inapps_eval_profile" and "inapps_suppressed_profile" to the batch sent header for incorporating user profile changes

* Fix client-side evaluation for events

* Fix batch header and sent

* Fix in-app evaluation tests

---------

Co-authored-by: Akash Malhotra <>
Co-authored-by: “Kushagra <“kushagra@clevertap.com”>
Co-authored-by: Nikola Zagorchev <nikola.zagorchev@gmail.com>
…ars.

- Fixes expired files were not deleted when downloadFiles is not called.
[PE File Vars] Updated file expiry logic
* [MC-1465] Custom templates define (Custom Templates Part 1) (#327)

* [MC-1467] Custom templates Sync (Custom Templates Part 2) (#329)

* [MC-1466] Custom templates data in inapp notification (Custom Templates Part 3) (#330)

* [MC-1468] Custom templates present and dismiss (Custom Templates Part 4) (#332)

* [MC-1470] Custom templates actions (Custom Templates Part 5) (#336)

* [MC-1649] Custom functions allow dictionaries (Custom Templates Part 6) (#337)

* [MC-1472] In-app actions js interface (Custom Templates Part 7) (#338)

* Implement custom templates file arguments (#348)

* Add template and template context debug descriptions (#351)

* [MC-1823] Fix html view controller presented before scene became active (#352)

* tvOS compatibility (#353)

* Add SDK version as window variable to the JS interface (#354)

* Create the syncPayload and meta outside the syncWithBlock (#356)

* Expose activeContextForTemplate (#357)

* [MC-1883] File download concurrency (#358)

* Enumerate synchronously (#359)

* Update docs, Changelog and README (#360)

* Update SPM (#362)

* Bump version to 7.0.0 (#361)
@akashvercetti akashvercetti merged commit 9db172c into master Aug 7, 2024
1 of 2 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.

5 participants