New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not showing journey path on map for Nicaragua network #585
Comments
Very strange. You could try the first version when Nicaragua was added and see how it behaves there. If the line information is missing there as well, this might be a Navitia issue which is what I suspect, because IMHO the AbstractNavitiaProvider didn't change recently, did it? |
Interesting! Maybe related to the coordinates migration in PTE? |
It was still working with 2.0.4, so if it is was a change on PTE's side, it would have happened between Dec 9, 2018 and Jan 10, 2019. |
No, there shouldn't be. If you build a release build from 2.0.5 source, does this change the picture? |
Yes, indeed. When building a release for 2.0.5, it behaves as the officially shipped version. |
And when adding
to the release buildType it works again. |
Wow crazy s**t! Can you narrow it down to one of this option? |
Hum, was quite difficult... It works too with //shrinkResources false
//minifyEnabled false
multiDexEnabled true but it didn't only with |
The release build for 2.0.0 still worked as expected. |
I have been checking it on another phone with the apks from F-Droid and it worked as expected until 2.0.3, but didn't so starting with 2.0.4. Probably you changed something in the proguard configuration between these versions? |
It is happening exactly after the PTE version switch from 4354c4a8 to c1c2b1e1 in d2b7d5e. Not sure if that has something to do with the problem, but there happened this change in the checksums file: com.github.tony19:logback-android:1.1.1-12:logback-android-1.1.1-12.aar:3102228f0e408e3c003b34e96a604e9b9f59d314dcf8f03aa78d9d3648198932',
- 'com.gitlab.opentransitmap.public-transport-enabler:enabler:4354c4a8:enabler-4354c4a8.jar:1db5cfd805caad04c9728ea9456ac720ba1392a5b435e443e4f2dd65be70997b',
- 'com.gitlab.opentransitmap:public-transport-enabler:4354c4a8:public-transport-enabler-4354c4a8.jar:aab28b1a9798cb2c01a6ca2484949885a9653a068868d727e6d2f293cbbef32a',
+ 'com.gitlab.opentransitmap:public-transport-enabler:c1c2b1e1:public-transport-enabler-c1c2b1e1.jar:fdcc25f2c8f6100e4e2bd7040130b427b893e29c0c2cf05c8c909a650ada269c',
'com.google.android.apps.common.testing.accessibility.framework:accessibility-test-framework:2.0:accessibility-test-framework-2.0.jar:cdf16ef8f5b8023d003ce3cc1b0d51bda737762e2dab2fedf43d1c4292353f7f', Perhaps PTE has been delivered in another fashion so that it didn't download two JARs anymore and perhaps that could have had some impact on the proguard configuration? |
Perhaps it could be linked to this change introducing a custom serialization for |
Indeed, it works now after adding
to the proguard rules. See https://www.guardsquare.com/en/products/proguard/manual/examples#serializable |
Wow, thanks a lot for this amazing detective work! Crazy how throwing these methods out doesn't trigger any warning. Do you think we should restrict the proguard rule to the class in question or keep |
Hmmm I was wondering the same, but I think keeping
What's your opinion? |
Maybe they are overridden by a class that we don't need and can be purged? |
Reading the documentation properly, it seems we can just use the proguard ruled you propose. |
Okay, which one do you refer to? The first, minimal one or the second, complete one from the docs? |
If the minimal one fixes it, let's use this for now. |
Describe the bug
Not sure since when this is happening, but Transportr apparently does not show the journey paths following the roads for Nicaragua anymore, although the data is provided by Navitia.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The journey path should follow the road as provided by Navitia. I know this has worked some time before in Transportr, not sure when it stopped and what changed back then.
Screenshots
As shown in Transportr:
As provided by Navitia (see Navitia playground):
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: