LibPhoneNumbr (Google)
Notes
Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers.
<dependency>
<groupId>com.googlecode.libphonenumber</groupId>
<artifactId>libphonenumber</artifactId>
<version>9.0.32</version>
</dependency>
Hi all,
Please find the new JARs on the maven site here.
The new release contains metadata changes and some code changes. Upgrading to the latest release is always encouraged since phone number information changes often!
New functionality in this release:
- AsYouTypeFormatter changed to better choose between rules when dialling locally; previously we used the international rules when the national prefix was present since this would exclude the local-only rules. However, there are some numbers that are not internationally diallable that do use the national prefix, and this logic precluded formatting them correctly.
Full details in the release notes.
Note if you take advantage of this new functionality by changing your code, it will not necessarily be trivially easy to roll back to a previous version.
Thanks to all those who contributed by providing issue reports!
Want to be notified of future releases? Join the discussion group!