Skip to content

feat: upgrade Android SDK to 3.2.1, fix critical bugs, add Expo plugin#3

Closed
ajitpatel028 wants to merge 1 commit intoajitpatel28:mainfrom
ajitpatel028:feature/android-truecaler-sdk-upgrade
Closed

feat: upgrade Android SDK to 3.2.1, fix critical bugs, add Expo plugin#3
ajitpatel028 wants to merge 1 commit intoajitpatel28:mainfrom
ajitpatel028:feature/android-truecaler-sdk-upgrade

Conversation

@ajitpatel028
Copy link
Copy Markdown

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

…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-truecaler-sdk-upgrade branch from 8a46a38 to a819c7d Compare March 22, 2026 11:12
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.

2 participants