Seems like there has been 2 major changes in the proto file since this library was last updated:
Property PhoneNumberDesc.PossibleNumberPattern has been removed. Reference: official release notes.
In this PR I have replaced all reference of PhoneNumberDesc.GetPossibleNumberPattern() method with PhoneNumberDesc.GetNationalNumberPattern(). This may have caused side effects in function maybeExtractCountryCode(). But referring to official Java implementation, it appears they are also using GetNationalNumberPattern().
Property PhoneMetadata.LeadingZeroPossible is now deprecated and all references to it have been removed. Reference: official release notes. It seems this property will be deleted soon. I would suggest not using it in this library too.
Default value of type PhoneNumber_CountryCodeSource is changed to PhoneNumber_UNSPECIFIED
Also I would like highlight that above changes may have caused breaking changes to existing methods (as described above) and a couple of tests have started failing.
Fixes issue #71.
Seems like there has been 2 major changes in the proto file since this library was last updated:
Property
PhoneNumberDesc.PossibleNumberPattern
has been removed. Reference: official release notes. In this PR I have replaced all reference ofPhoneNumberDesc.GetPossibleNumberPattern()
method withPhoneNumberDesc.GetNationalNumberPattern()
. This may have caused side effects in functionmaybeExtractCountryCode()
. But referring to official Java implementation, it appears they are also usingGetNationalNumberPattern()
.Property
PhoneMetadata.LeadingZeroPossible
is now deprecated and all references to it have been removed. Reference: official release notes. It seems this property will be deleted soon. I would suggest not using it in this library too.Default value of type
PhoneNumber_CountryCodeSource
is changed toPhoneNumber_UNSPECIFIED
Also I would like highlight that above changes may have caused breaking changes to existing methods (as described above) and a couple of tests have started failing.
Please let me know your thoughts. Thanks.
This change is