mozilla-b2g/gaia — pull request #4455 by steveck-chung (2012-09-07 12:06:15+00:00)
Title: [Sms] Add libphonenumber and related library for phone number format issue.

- We use google libphonenumber and closure library to parse national number and international number for threading different number format together.

- Changes in message sending:
- It will convert the phone number to international format and store in message DB. Therefore we don't need to query national format and international format every time. Every number in DB will be international format.

- Changes in message display:
- The contact part does not test carefully because the contact API got some issues currently. Please verify again when the contact API issue fixed.
- It will convert to national format and display in thread list and title. If the number is not convertible, it will display original number from DB.

- Change in contact:
- It will use national format for searching the contact name first. If national format could not match any contact data, it will search again with original number.

- Since it will store the phone number with international format, please clear out the old messages before testing/using.

- Add logic in webapp-zip to zip additional js files for closure library because base.js will load required functions in other files.

- Please verify the communication between contact and sms could work correctly in each required functionality.