Feat/identify logout - #17
Merged
Merged
Conversation
Implement `identify` and `logout` functions for managing user identity in Qonversion. These functions allow mapping a stable app user ID to Qonversion and clearing the user session, respectively. Update the README to include usage examples and clarify the handling of user IDs. Introduce a serial execution queue for SDK calls with timeout management to ensure thread safety and prevent overlapping calls. Update the error handling to include timeout scenarios. Also, add a `.pre-commit-config.yaml` for code quality checks and update `.gitignore` to include `local.properties` for Android projects.
Add test locks to ensure thread safety during initialization and error handling in tests for `initialize`, `show_screen`, `identify`, and `logout` functions. Rename tests to clarify their purpose regarding native runtime requirements, and update assertions to provide more specific error messages. Additionally, improve the error handling in the `java_vm_and_context` function to safely catch panics and return appropriate errors for missing Android context.
Create a new workflow file to automate testing for both Android and iOS platforms. The workflow includes steps for checking out the code, installing the Rust toolchain, caching Cargo dependencies, and running tests in the respective environments. This setup enhances CI/CD processes by ensuring that tests are executed on both platforms during pull requests.
Introduce a new lint configuration under [lints.rust] in Cargo.toml to address the expansion of objc 0.2 macros. This change sets the warning level for unexpected configurations related to cargo-clippy, enhancing code quality checks.
Replace actions/checkout@v4 with actions/checkout@v7 in both publish.yml and test.yml workflow files. This update ensures compatibility with the latest features and improvements in the checkout action.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.