Browse Source

Reword known ports Android-optimized entry (#1962)

pull/1965/head
Keghani Kouzoujian 8 years ago
committed by GitHub
parent
commit
dcbad404a5
1 changed files with 19 additions and 11 deletions
  1. +19
    -11
      README.md

+ 19
- 11
README.md View File

@ -217,20 +217,28 @@ However, we emphasize that these ports are by developers outside the
libphonenumber project. We do not evaluate their quality or influence their libphonenumber project. We do not evaluate their quality or influence their
maintenance processes. maintenance processes.
* Android: Java version of libphonenumber can be used on Android as is.
https://github.com/MichaelRocks/libphonenumber-android is a repackaged
port optimized for Android by using `AssetManager#open()` instead of
`Class#getResourcesAsStream()` to load metadata. See [FAQ](https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#optimize-loads)
for why this is better
* C#: https://github.com/twcclegg/libphonenumber-csharp * C#: https://github.com/twcclegg/libphonenumber-csharp
* Javascript: If you don't want to use our version, which depends on Closure,
there are several other options, including
https://github.com/halt-hammerzeit/libphonenumber-js (a stripped-down
rewrite, about 110 KB in size) and https://github.com/seegno/google-libphonenumber
(a browserify-compatible wrapper around the original unmodified library
installable via npm, packs Google Closure library, about 420 KB in size)
* Objective-c: https://github.com/iziz/libPhoneNumber-iOS * Objective-c: https://github.com/iziz/libPhoneNumber-iOS
* PHP: https://github.com/giggsey/libphonenumber-for-php * PHP: https://github.com/giggsey/libphonenumber-for-php
* PostgreSQL in-database types: https://github.com/blm768/pg-libphonenumber * PostgreSQL in-database types: https://github.com/blm768/pg-libphonenumber
* Python: https://github.com/daviddrysdale/python-phonenumbers * Python: https://github.com/daviddrysdale/python-phonenumbers
* Ruby: https://github.com/mobi/telephone_number * Ruby: https://github.com/mobi/telephone_number
Alternatives to our own versions:
* Android-optimized: Our Java version loads the metadata from
`Class#getResourcesAsStream` and asks that Android apps follow the Android
loading best practices of repackaging the metadata and loading from
`AssetManager#open()` themselves
([FAQ](https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#optimize-loads)).
If you don't want to do this, check out the port at
https://github.com/MichaelRocks/libphonenumber-android, which does repackage
the metadata and use `AssetManager#open()`, and may be depended on without
needing those specific loading optimizations from clients.
* Javascript: If you don't want to use our version, which depends on Closure,
there are several other options, including
https://github.com/halt-hammerzeit/libphonenumber-js - a stripped-down
rewrite, about 110 KB in size - and
https://github.com/seegno/google-libphonenumber - a browserify-compatible
wrapper around the original unmodified library installable via npm, which
packs the Google Closure library, about 420 KB in size.

Loading…
Cancel
Save