Skip to content

Commit

Permalink
Update the motion activity inputs to support version 11.0.1 of google…
Browse files Browse the repository at this point in the history
… play services

As part of the last android update, we updated the phonegap-push-plugin from
1.9.2 to 2.2.3. This also added a dependency on the firebase 11.0.1 libraries,
so we had to update our google-play-services library to 11.0.1 across the
board.

As always, this changes the field names corresponding to the type and the confidence,
so we need to upgrade the formatter, similar to 3dc3e60#diff-9ac627c6813517845b71887afb3cbb11, 903274d#diff-9ac627c6813517845b71887afb3cbb11, ....
  • Loading branch information
shankari committed Mar 24, 2019
1 parent 8b1c570 commit 780eed0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions emission/net/usercache/formatters/android/motion_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ def format(entry):
data.type = ecwa.MotionTypes(entry.data.zzbjA).value
elif 'ajO' in entry.data:
data.type = ecwa.MotionTypes(entry.data.ajO).value
else:
elif 'zzaKM' in entry.data:
data.type = ecwa.MotionTypes(entry.data.zzaKM).value
else:
data.type = ecwa.MotionTypes(entry.data.zzbhB).value


if 'agc' in entry.data:
Expand All @@ -43,8 +45,10 @@ def format(entry):
data.confidence = entry.data.zzbjB
elif 'ajP' in entry.data:
data.confidence = entry.data.ajP
else:
elif 'zzaKN' in entry.data:
data.confidence = entry.data.zzaKN
else:
data.confidence = entry.data.zzbhC

data.ts = formatted_entry.metadata.write_ts
data.local_dt = formatted_entry.metadata.write_local_dt
Expand Down

0 comments on commit 780eed0

Please sign in to comment.