Skip to content

Feat/identify logout - #17

Merged
nichmorgan merged 5 commits into
mainfrom
feat/identify-logout
Sep 14, 2026
Merged

nichmorgan merged 5 commits into
mainfrom
feat/identify-logout

Conversation

@nichmorgan

Copy link
Copy Markdown
Owner

No description provided.

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.
@nichmorgan
nichmorgan merged commit e7957e2 into main Sep 14, 2026
3 checks passed
@nichmorgan
nichmorgan deleted the feat/identify-logout branch September 14, 2026 01:57
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.

1 participant