flutter_libphonenumber_android
Android implementation of the flutter_libphonenumber plugin.
2.1.1
90K downloads/mo
#1169 most downloaded on pub.dev
acoutts/flutter_libphonenumber
What this package is like to depend on
Last release 1 months ago
19 Jul 2026
Release timing varies
gaps range from 4 weeks to 1.3 years
Nearly every release is documented
notes for 11 of 12 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
12 releases · first in 2023
5 releases in the last 12 months
see the full history below
Release timeline
12 releases · Mar 2023 to Jul 2026
2024
2025
2026
Releases
latest 12-
2.1.119 Jul 2026Release notes
Open source →- Fix Android build failure
Could not find method kotlin()on AGP 9 hosts whereandroid.builtInKotlin=false— the state Flutter 3.44's migrator writes into every app'sgradle.properties(#101, #102 — thanks @proninyaroslav for the diagnosis and initial fix). - The Kotlin Gradle Plugin is now applied whenever AGP has not registered its built-in
kotlinextension, instead of keying off the AGP version. This is correct on AGP 8 (KGP applied as before), AGP 9 with the built-in Kotlin opt-out (KGP applied), AGP 9/10 with built-in Kotlin active (KGP skipped;jvmTargetfollowscompileOptions.targetCompatibility), and is immune to staleandroid.builtInKotlin=falseflags once AGP 10 removes the opt-out. - The
kotlin { compilerOptions { jvmTarget } }block now only runs when the external Kotlin Gradle Plugin is actually applied. - Build script is now AGP 9 new-DSL-safe: removed the redundant Kotlin
sourceSetsentry and switched to=-style assignments. - Note: Flutter 3.44 still prints "Your app uses the following plugins that apply Kotlin Gradle Plugin (KGP): flutter_libphonenumber_android". This remains a false positive of Flutter's textual build-script scan and is unavoidable while this plugin supports Flutter <3.44. The plugin does not apply KGP on hosts where built-in Kotlin is active.
- Fix Android build failure
-
2.1.012 Jun 2026Release notes
Open source →- Ready for Flutter's Built-in Kotlin cutover: the Kotlin Gradle Plugin is now applied conditionally — only on AGP <9, where the host's Flutter does not manage Kotlin itself — following the official Flutter migration guide for plugin authors. Flutter versions older than 3.44 remain supported.
- Note: Flutter 3.44 may still print "Your app uses the following plugins that apply Kotlin Gradle Plugin (KGP): flutter_libphonenumber_android". This is a false positive: Flutter's detection is a textual scan that cannot see the AGP version conditional. The plugin no longer applies KGP on hosts where Built-in Kotlin is available, so it will keep building after Flutter's cutover.
- Example app: migrate off the Kotlin Gradle Plugin and bump Java/Kotlin compatibility to 17 (building the example now requires Flutter 3.44+; the plugin itself is unaffected).
-
2.0.212 Jun 2026Nothing published for this version
-
2.0.111 Jun 2026Release notes
Open source →- Reduce repeated work in getAllSupportedRegions: cache the digit regex used for masking, reuse a single PhoneNumberUtil instance, and format each example number once (#100 @higorlapacw)
-
2.0.006 Dec 2025 -
1.4.113 Feb 2025Release notes
Open source →- This fixes unresolved Registrar issue occurring after upgrading Flutter to 3.29.0 (#93 @amitkhairnar44)
-
1.4.019 Sep 2024 -
1.3.018 Sep 2024 -
1.2.019 Aug 2024 -
1.1.019 Aug 2024Release notes
Open source →- Bump android compileSdk to 34
- Fix android JVM version incompatibility build errors.
-
1.0.101 May 2023 -
1.0.024 Mar 2023