{"action":"opened","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/9896","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-native","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/9896/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/9896/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/9896/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/9896","id":254239467,"number":9896,"title":"[android] Produce a more visible error when not calling SDK methods from the UiThread","user":{"login":"Guardiola31337","id":1668582,"avatar_url":"https://avatars1.githubusercontent.com/u/1668582?v=4","gravatar_id":"","url":"https://api.github.com/users/Guardiola31337","html_url":"https://github.com/Guardiola31337","followers_url":"https://api.github.com/users/Guardiola31337/followers","following_url":"https://api.github.com/users/Guardiola31337/following{/other_user}","gists_url":"https://api.github.com/users/Guardiola31337/gists{/gist_id}","starred_url":"https://api.github.com/users/Guardiola31337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guardiola31337/subscriptions","organizations_url":"https://api.github.com/users/Guardiola31337/orgs","repos_url":"https://api.github.com/users/Guardiola31337/repos","events_url":"https://api.github.com/users/Guardiola31337/events{/privacy}","received_events_url":"https://api.github.com/users/Guardiola31337/received_events","type":"User","site_admin":false},"labels":[{"id":143173729,"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/Android","name":"Android","color":"000000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-31T07:20:35Z","updated_at":"2017-08-31T07:20:35Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"- @jfirebaugh noticed that there are a significant number of issues caused by not adhering to the `@UiThread` annotations and calling SDK methods from a background thread.\r\n\r\nBecause thread annotations are simply Lint checks and do not affect one’s build or compilation @ivovandongen suggested that we can do two things here, depending on how many methods it concerns:\r\n\r\n- Create an annotation processor that inserts actual checks\r\n- Add some manual checks on key places to verify which thread your code is running on\r\n\r\nA compilation-time error would be ideal, but if that's not possible a runtime error would be ok.\r\n\r\ncc/ @jfirebaugh @ivovandongen @zugaldia "}}
{"actor":{"display_login":"Guardiola31337"}}