Skip to content

feat: upgrade Android SDK to 3.2.1, add Expo plugin#4

Merged
ajitpatel28 merged 1 commit intomainfrom
feature/android-truecall-sdk-upgrade
Mar 22, 2026
Merged

feat: upgrade Android SDK to 3.2.1, add Expo plugin#4
ajitpatel28 merged 1 commit intomainfrom
feature/android-truecall-sdk-upgrade

Conversation

@ajitpatel28
Copy link
Copy Markdown
Owner

Upgrade Truecaller Android SDK to 3.2.1 + Expo config plugin

Summary

  • Upgrade Truecaller Android SDK 3.1.0 → 3.2.1
  • Replace deprecated onActivityResult with ActivityResultLauncher / ActivityResultRegistry
  • Fix isSdkUsable() — was returning a Promise object (always truthy) instead of the actual boolean
  • Added dark mode support
  • Fix setLocale ordering — moved to after TcSdk.init()
  • Add missing event listeners for TruecallerAndroidError and TruecallerAndroidVerificationRequired
  • Add clearTruecallerSdk() for manual SDK cleanup
  • Add androidConsentMode and androidSdkOptions config options
  • Add Expo config plugin (app.plugin.js) for automatic AndroidManifest.xml setup
  • Add types field to package.json for older TypeScript consumers
  • Update README with breaking changes, migration guide, and Expo setup docs

Breaking Changes

  • isSdkUsable() now returns Promise<boolean> — callers must await it

Test plan

  • Android OAuth flow completes without crash
  • isSdkUsable() returns correct boolean (not always true)
  • Dark mode resolves from system theme when androidDarkMode is not set
  • Error and verification-required events are received in JS
  • clearTruecallerSdk() cleans up without crash
  • Expo app.plugin.js injects ClientId meta-data correctly
  • Re-running expo prebuild does not duplicate ClientId entry

@ajitpatel28 ajitpatel28 changed the title feat: upgrade Android SDK to 3.2.1, fix critical bugs, add Expo confi… feat: upgrade Android SDK to 3.2.1, fix critical bugs, add Expo plugin Mar 22, 2026
…g plugin

- Migrate to ActivityResultLauncher, fix dark mode mid-session, fix setLocale ordering
- Fix isSdkUsable returning Promise treated as boolean, add missing error event listeners
- Add clearTruecallerSdk, consentMode, sdkOptions support
- Add Expo config plugin for automatic AndroidManifest.xml setup
@ajitpatel28 ajitpatel28 force-pushed the feature/android-truecall-sdk-upgrade branch from 5d2305c to 495f56e Compare March 22, 2026 11:40
@ajitpatel28 ajitpatel28 changed the title feat: upgrade Android SDK to 3.2.1, fix critical bugs, add Expo plugin feat: upgrade Android SDK to 3.2.1, add Expo plugin Mar 22, 2026
@ajitpatel28 ajitpatel28 merged commit 97109ee into main Mar 22, 2026
3 of 5 checks passed
@ajitpatel28 ajitpatel28 deleted the feature/android-truecall-sdk-upgrade branch March 22, 2026 19:02
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