Status Update
Comments
da...@google.com <da...@google.com> #2
Hi,
Thank you for taking the time to improve libphonenumber!
We are looking into this and will respond as soon as possible.
[Deleted User] <[Deleted User]> #3
Hi,
Thanks much for raising this issue. This is one of our known issue, which is not documented. Having phone numbers of this long are very rare. libphonenumber cannot do anything better here.
Reasons:
- JavaScript
Number
type has limitation of 2^53 (9007199254740992) as the max literal it can hold. When provided more than that like "90018408059449376"(17 digit), JS starts rounding the value. Unfortunately this is within the range of i.e 17 digit.possible phone number length - Both the alternatives leads to backward-incompatible changes as the type of the field '''national_number''' has to be changed; thus leading to client-side compile issue . Eg: setNationalNumber(1234) / conversions to payloads like JSON.
- Marking the field as
[jstype = JS_STRING]
- Or using new JS data type
BigInt
.
We will update FAQ at GitHub stating some of these points. Maybe you can compare with Number.MAX_VALUE and avoid such cases. Or post request to a Java/CPP/PY libphonenumber clients, as these langs have much more matured data type systems.
[Deleted User] <[Deleted User]> #5
[Deleted User] <[Deleted User]> #6
uc...@google.com <uc...@google.com>
da...@google.com <da...@google.com> #7
je...@google.com <je...@google.com>
pa...@gmail.com <pa...@gmail.com> #8
Here is how DataBinderMapperImpl would look like:
hu...@google.com <hu...@google.com> #9
I have sent out a fix for review: Change-Id: I4f0c802764729a415b968520c75fa052671b646c
[Deleted User] <[Deleted User]> #10
Is there any chance that this will be included in the next canary release?
hu...@google.com <hu...@google.com> #11
[Deleted User] <[Deleted User]> #12
hu...@google.com <hu...@google.com> #13
[Deleted User] <[Deleted User]> #14
hu...@google.com <hu...@google.com> #15
[Deleted User] <[Deleted User]> #16
hu...@google.com <hu...@google.com> #17
[Deleted User] <[Deleted User]> #18
[Deleted User] <[Deleted User]> #19
ka...@gmail.com <ka...@gmail.com> #20
ma...@cyberagent.co.jp <ma...@cyberagent.co.jp> #21
It seems that when we have other kapt tasks (dagger, et al.), then this error occurred in the unitTest and androidTest.
Test with (AS 4.0 alpha 01).
hu...@google.com <hu...@google.com> #22
ch...@gmail.com <ch...@gmail.com> #23
hu...@google.com <hu...@google.com> #24
ma...@gmail.com <ma...@gmail.com> #25
da...@google.com <da...@google.com> #26
Do you have repro steps? Just to help ensure that this is, in fact, the same issue reported here? There might be multiple paths to produce the same error, etc. etc. If you're certain it's the same issue as here, then repro steps will help us determine if we should reopen this. Otherwise, it might be best to file a new bug since this one seems to have quite a bit of history on it.
Meanwhile, there are 20 +1's on this bug. Can anyone else who was experiencing this report that it was actually fixed for them starting in 3.6.0?
Thanks! David
sa...@dfarooq.com <sa...@dfarooq.com> #27
Hey David,
I think this may have regressed. I created a fork of the original sample project with AGP 4.1.2.
The Robolectric test fails with the same error. If kotlin-kapt
plugin is removed, the test passes. But then the buildFeatures
databinding config says If you plan to use data binding in a Kotlin project, you should apply the kotlin-kapt plugin.
So possibly something to do with kapt?
da...@google.com <da...@google.com> #28
Ooof :) Hung, are you swamped? Would you be able to take a look?
da...@google.com <da...@google.com> #29
Hung: I meant to say, I reopned this bug, but if it ends up being a different cause, or just because this bug already has so much history, feel free to reclose it and create a new one.
sa...@dfarooq.com <sa...@dfarooq.com> #30
I tried 4.2.0-beta05 and 7.0.0-alpha8 in Arctic Fox Canary 08 and the behavior is the same. Remove kapt, test passes. Added it back, get the NoClassDefFound error.
hu...@google.com <hu...@google.com> #31
Thank you for the sample project! This issue was mentioned earlier at
This is caused by
Basically, when using kapt
, users will need to add:
kaptTest some-random-dependency
forkapt
to run annotation processing on unit test source code, which in this case will include the missing data binding classes.kaptAndroidTest some-random-dependency
forkapt
to run annotation processing on androidTest source code.
Please follow the Kapt bug above for progress on this issue.
@David: I'm closing this issue as this should ideally be fixed by the Kotlin Gradle plugin.
ar...@gmail.com <ar...@gmail.com> #32
I can not sing google account
Description
Sample repo:
To reproduce:
- Run `ConnectedMainActivityTest` = OK
- Run `MainActivityTest` = OK
- Run `ConnectedLibActivityTest` = OK
- Run `LibActivityTest` = Error
------
Build: $VERSION, AI-183.5429.30.34.5310756, 201902141945,
AI-183.5429.30.34.5310756, JRE 1.8.0_152-release-1248-b22x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.14, screens 1680x1050, 1920x1080; Retina
Android Gradle Plugin: 3.4.0-beta05
Gradle: 5.1.1
NDK: from local.properties: (not specified); latest from SDK: (not found);
LLDB: pinned revision 3.1 not found; latest from SDK: (package not found);
CMake: from local.properties: (not specified); latest from SDK: (not found); from PATH: (not found);
IMPORTANT: Please read