OpenTreeMap / otm-android

An OpenTreeMap client for Android. The OpenTreeMap code can be downloaded at https://github.com/OpenTreeMap/otm-core.
Other
22 stars 22 forks source link

Add support Google analytics #288

Closed maurizi closed 7 years ago

maurizi commented 8 years ago

This changes a lot of things, in order to add support for logging basic user interactions in Google analytics

The main changes needed to support the latest Analytics library:

The Google Analytics changes themselves add logging of screen views, with user and instance information when available.

Connects to #281 Connects to #129

RobinIsTheBird commented 7 years ago

The PR comment and the Readme.md need updating, to tell you how to "sync Gradle project". Opening Android Studio (after vagrant up, adding the google map api key, and build_android_dev_apk.sh) resulted in an error:

Failed to sync Gradle project 'otm-android'
    Error:Error:Failed to find target with hash string 'android-25' in: /home/local/AZVA-INT/rschaufler/Android/Sdk
  1. The Readme.md needs to specify the correct API levels.
  2. The Readme.md needs to refer to SDK Manager tabs by their current names.
  3. After following instructions and clicking both (sic) refresh buttons in the toolbar, the exact same error continued to appear.

I still have yet to get it to work.

But the code looks nice. I was able to identify both google analytics and back-arrow functionality.

When it finally works, will google analytics messages start showing up in Rollbar, or is there some other mechanism in the dev environment?

RobinIsTheBird commented 7 years ago

:+1: