-
Notifications
You must be signed in to change notification settings - Fork 935
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
Rewrite maps related code using v2 api #36
Comments
@heysadboy Yes you're right. The possible solution is to rewrite the map code in new v2 api because almost everything got changed. Map related files causing errors in the latest sdk version. |
@pa1pal Thanks. Can we remove those files to start afresh. They are also hindering the development of other features also due to inability to test the app as whole although I see it passing in Travis. |
@heysadboy Do not remove the code completely, because we may need this code in future development with latest api to see the features. So see specifically what causes the problem and if you could fix it or else remove it for now. |
@heysadboy @pa1pal MapActivity is from the old, defunct MapsV1 way of integrating Google Maps. Since we cannot get API keys for MapsV1 anymore, so do we have to modify the whole code to use MapsV2? |
@anantprsd5 Yes we cannot get the api keys for MapsV1 api. And lots of the objects got changed such as GeoPoint, Overlays etc. So from the old code we can get some idea what was implemented earlier and modify it. |
@pa1pal @mariobehling The latitude and longitude of the photo are saved as the metadata nowadays, like instagram uses them automatically at the time of posting the photo. So, instead of recording the data we can use metadata. @anantprsd5 Yes, we have to modify it in order to use v2. |
@pa1pal @heysadboy Will it not be good if we remove all the code related to maps and start creating issues for the things related with maps one after the other because it is giving errors in all the imports related with maps and it is not possible to install the app in the phone. |
@anantprsd5 Please see the second comment, I already suggested that. |
@anantprsd5 and @heysadboy |
Yes I agree with @pa1pal we would need to create a new branch, move it one by one and after I all works fine we would push to master back. Mario sir would be available only after the fossasia summit. |
@pa1pal That would be really very helpful. |
@pa1pal I have removed all the maps related functionality and now the gradle builds are running without any issues using sdk version 23. Shall I send a PR for it? |
@anantprsd5 is the code working? If yes pls send it to the master branch if not send it to the development branch which I have created as the plan. It would be better if you could do the same after updating it to target API 25 which is the latest. |
@anantprsd5 nice effort 👍 |
Now we got the map functionality commented out in the development branch, we would need to rewrite it now. |
I'll be working on maps then. |
@anantprsd5 > I have removed all the maps related functionality and now the gradle builds are running without any issues using sdk version 23. Shall I send a PR for it? |
@pa1pal Thanks, I was trying to solve one issue by issue but getting issue one after another. |
@jsroyal The maps are needed to get the app working bug less. It is depreciated so we commented out the map code and put it in the development branch. So when we should fix the maps by rewriting the code in v2 and then make a pr to the master branch. |
@Abhi2424shek Problem is master branch code not able to build the project because getting an error about the map API so my suggestion is put the code in master branch at least base code where can anybody start project build. Want more contribute. |
@jsroyal the map API is depreciated, we need to rewrite it to build the app, inorder not to risk we created a branch. Master branch has the code which was modified in the development branch to comment out the map codes :) you can help by fixing parts of the map |
@DravitLochan Hey, Are you working on this issue? |
I am really very sorry, but i was busy in susi-android. @pa1pal can you please assign someone else to this? |
Ok so, who wants this? Anyone? |
@Abhi2424shek Can I work on this? |
Sure @heysadboy |
Is'nt this solved in #135 if not pls open |
Although the project is using libraries of earlier versions, the compile SDK version and the versions of the appcompat and design libraries used should be updated to make it compatible with Nougat Devices.
Due to deprecation of few things in the code base it has become tedious to work on it (majorly map related v1 is depreciated).
Even if I try to make changes there will be possibilities that they will cause conflicts. It would be great if we could come up with a solution so it becomes easier for people to set up the project in the Android Studio environment and test.
The possible solution to change the map related code is to remove them to make the other code testable and write them again in v2.
The text was updated successfully, but these errors were encountered: