-
Notifications
You must be signed in to change notification settings - Fork 3
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
Remove Google Play Services dependency #4
Comments
The specific dependencies that we absolutely cannot use are just these two, right? So I'm guessing our best bet is to try and find an open source alternative for them?
What do you think of using https://github.com/mapzen/LOST instead? |
Why not, looks like an interesting project! But we can probably scrap a lot of things before, though. Actually, what do we really need that is not already provided by the standard (open source) Android API? I think we only really need to get the user's location, and as you have implemented it in Commons you know it does not rely on Play Services. |
Yeah, we can use the inbuilt location services to get user location. I'm trying to figure out how to duplicate this method without Google Play and Google Maps though:
SphericalUtil seems to be a Google Maps class, and LatLng (which is an easy way of passing the coords around) is GMS. |
We can scrap cities. The sample app was tourism-centric showed you all attractions in the city you are in. If you are near Sydney, it shows you all attractions in Sydney. Our users are not concentrated in touristic locations, they are in suburbs, in the countryside, in mountains, etc. So we should scrap the concept of cities, like I started to do in some places of the code. I tested the app with a lot of places (I pushed now), and it is not slow, so I don't think we have to worry for now and can display all data, like the webapp does. When copy-pasting the code into the Commons app, I guess the Android Wear part can be scraped too, as the Commons app is not usable on Wear. Notifying via Wear when requested pictures are around, à la Pokémon Go, would sound fun but there are not enough points to make it worth the development effort for now, I would say :-) |
Oh, I have already removed Geofence and Wearables haha. Shall I submit a PR? |
Good! :-) |
Hm, not sure how to resolve the merge conflict. Will try and find out... |
You have already handled many Git conflicts, right? |
I have not actually had to deal with merge conflict before, heh... So we want to replace the URL in your repo with the URL in mine, right? I guess I will need write access to commons-app/ShootMe for that? |
Oh I did not know, good opportunity to learn with a simple one, then :-)
|
Yeah, I've modified the part with the <<< markers, to remove your URL and put mine in. But it still says merge conflict exists. Should I be doing the fixing on my forked repo or on the commons-app repo? |
Oh, I forgot one step. On Fri, Aug 19, 2016 at 4:47 PM, Josephine Lim [email protected]
|
Merging is best done on one's forked repo. On Fri, Aug 19, 2016 at 4:49 PM, Nicolas Raoul [email protected]
|
Sorry, I think I'm a bit confused about Step 3: The conflict is marked at TouristAttraction.java:
So what I should do is remove all of that except |
I think it works now, could you check #11 and see? Thanks! |
and all of the unused features like Geofence.
The text was updated successfully, but these errors were encountered: