e-mission / e-mission-data-collection

Repository for our own data collection
BSD 3-Clause "New" or "Revised" License
4 stars 19 forks source link

Change the cordova imports to remove ambiguity #163

Closed shankari closed 6 years ago

shankari commented 6 years ago

Otherwise, we get the error. Better to have unambigious imports anyway.

/Users/shankari/e-mission/e-mission-phone/platforms/android/src/edu/berkeley/eecs/emission/cordova/tracker/DataCollectionPlugin.java:51: error: reference to R is ambiguous
        BuiltinUserCache.getDatabase(myActivity).putMessage(R.string.key_usercache_client_nav_event,
                                                            ^
  both class edu.berkeley.eecs.emission.R in edu.berkeley.eecs.emission and class org.apache.cordova.R in org.apache.cordova match
/Users/shankari/e-mission/e-mission-phone/platforms/android/src/edu/berkeley/eecs/emission/cordova/tracker/DataCollectionPlugin.java:52: error: reference to R is ambiguous
                new StatsEvent(myActivity, R.string.app_launched));
                                           ^
  both class edu.berkeley.eecs.emission.R in edu.berkeley.eecs.emission and class org.apache.cordova.R in org.apache.cordova match
/Users/shankari/e-mission/e-mission-phone/platforms/android/src/edu/berkeley/eecs/emission/cordova/tracker/DataCollectionPlugin.java:89: error: reference to R is ambiguous
            String state = prefs.getString(ctxt.getString(R.string.curr_state_key), ctxt.getString(R.string.state_start));
                                                          ^
shankari commented 6 years ago

Not bumping up version number since code is backwards compatible.