Back to Phonenumberkit

Metadata

PhoneNumberKit/Resources/README.md

4.2.11912 B
Original Source

Metadata

PhoneNumberKit is using metadata from Google's libphonenumber.

The metadata exists in PhoneNumberMetadata.json and the original XML can be found at Original/PhoneNumberMetadata.xml

Updating the metadata

We try to keep the metadata of PhoneNumberKit up to date and making sure you are running on the latest release will be sufficient for most apps

However, you can also update the metadata youself by following these steps:

  1. Download a newer version of the XML metadata file from libPhoneNumber
  2. Replace the XML file in your PhoneNumberKit projects.
  3. Run
bash
./update.sh

You will need a python library called 'xmljson' installed. You can install it with pip

bash
pip install xmljson