Add-on for Locus Map (Android) application, focused on using most important features if Locus Map on Android Wear devices.
Add-on consists of these parts.
device
module - middleman who communicate with Locus Map (over Locus API) on one side and add-on running on watches (over messages) on second sidewear
module - separate application running on watchescommon
where code shared/used by both device and wear is used.See CHANGELOG.md
Available at: Wear for Locus Map at Google Play
Supports both Android Wear 1.x and 2.0. For Android Wear 2.0 the add-on must be installed separately on both the mobile phone and the watch.
Requires Google Play Services and Locus Map to work. Paired mobile phone required, standalone function not supported on the watch.
git clone https://github.com/asamm/locus-addon-wearables.git
After importing the project, go to run configurations - launch options - launch - select "Nothing". Since device part has no UI, AS will not be able to run the project saying "Default Activity not found" until Launch: Nothing is selected
adb -d forward tcp:5601 tcp:5601
from the computer console to properly forward adb commands. Call this once command before pairing the watch with the phone or before debugging.Both modules needs to be generated and published separately.
device
module generate over :device:assembleRelease
gradle task. Generated APK may be found in the 'device\build\outputs\apk\release\' directory.
wear
module generate over :wear:assembleRelease
gradle task. Generated APK may be found in the 'wear\build\outputs\apk\release\' directory.