libphonenumber-7.6.0
Greetings,
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:
- Use protobuf-javanano runtime dependencies from the Maven Repository in our build. Previously we were packaging these dependencies directly in our jar, which was bad practice and a bad experience for clients*.
- We hope this is good news for many of you. If this version has unintended consequences please let us know ASAP by reporting an issue on GitHub.
- For more technical details on what changed, see PR #1282.
- Made isNumberGeographical public, and changed the geocoder to use this when checking whether to give a detailed answer or country-level only.
Full details in the release notes.
Warning: If you don't compile your project with protobuf-javanano dependencies, this release will break your code unless you update your code at the same time. You need to ensure that you have protobuf-javanano dependencies in your build. For example, if you compile with Maven, add the following under dependencies:
<dependency>
<groupId>com.google.protobuf.nano</groupId>
<artifactId>protobuf-javanano</artifactId>
<version>3.0.0-alpha-7</version>
</dependency>
If you have tips on adding this dependency for other build systems, please chime in on the release announcement thread!
Moreover, if you already had protobuf-javanano dependencies in your own project, be aware that we stopped renaming Java imports for com.google.protobuf.nano to com.google.i18n.phonenumbers.repackaged.com.google.protobuf.nano in our files.
Repackaging (PR #1099) was a temporary workaround until we removed the dependencies from the jars.
Finally, if you take advantage of the new functionality (isNumberGeographical) 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!
Cheers,
Keghani, on behalf of the libphonenumber team
Want to be notified of future breaking releases? Join the discussion group!