{"action":"created","issue":{"url":"https://api.github.com/repos/geekarist/hpo/issues/1","labels_url":"https://api.github.com/repos/geekarist/hpo/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/geekarist/hpo/issues/1/comments","events_url":"https://api.github.com/repos/geekarist/hpo/issues/1/events","html_url":"https://github.com/geekarist/hpo/pull/1","id":99364164,"number":1,"title":"Refactoring : OkHttp, AsyncTask, Picasso","user":{"login":"geekarist","id":1910698,"avatar_url":"https://avatars.githubusercontent.com/u/1910698?v=3","gravatar_id":"","url":"https://api.github.com/users/geekarist","html_url":"https://github.com/geekarist","followers_url":"https://api.github.com/users/geekarist/followers","following_url":"https://api.github.com/users/geekarist/following{/other_user}","gists_url":"https://api.github.com/users/geekarist/gists{/gist_id}","starred_url":"https://api.github.com/users/geekarist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geekarist/subscriptions","organizations_url":"https://api.github.com/users/geekarist/orgs","repos_url":"https://api.github.com/users/geekarist/repos","events_url":"https://api.github.com/users/geekarist/events{/privacy}","received_events_url":"https://api.github.com/users/geekarist/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-06T06:03:29Z","updated_at":"2015-08-11T07:09:07Z","closed_at":"2015-08-11T06:06:07Z","pull_request":{"url":"https://api.github.com/repos/geekarist/hpo/pulls/1","html_url":"https://github.com/geekarist/hpo/pull/1","diff_url":"https://github.com/geekarist/hpo/pull/1.diff","patch_url":"https://github.com/geekarist/hpo/pull/1.patch"},"body":"- Utilisation de OkHttpClient : je n'ai pas trouvé de doc sur le fait que la dépendance est détectée automatiquement par Retrofit. Dans le doute, j'ai configuré explicitement le client du RestAdapter.\r\n\r\n- Remplacer AsyncTask par un Callback : ce commit a entraîné l'utilisation de Picasso puisque sinon, le chargement des images était fait dans le `success` de Retrofit, et donc dans le main thread. Pour Picasso, ça se passe en 2 parties : utiliser `fetch` à l'initialisation de l'Activity pour remplir le cache, puis charger l'image dans la vue au niveau de l'Adapter.\r\n\r\n- Activation des debug indicators de Picasso : ça se base sur le flag `buildTypes.dev.debuggable` de build.gradle."},"comment":{"url":"https://api.github.com/repos/geekarist/hpo/issues/comments/129735723","html_url":"https://github.com/geekarist/hpo/pull/1#issuecomment-129735723","issue_url":"https://api.github.com/repos/geekarist/hpo/issues/1","id":129735723,"user":{"login":"jeremiemartinez","id":1192149,"avatar_url":"https://avatars.githubusercontent.com/u/1192149?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremiemartinez","html_url":"https://github.com/jeremiemartinez","followers_url":"https://api.github.com/users/jeremiemartinez/followers","following_url":"https://api.github.com/users/jeremiemartinez/following{/other_user}","gists_url":"https://api.github.com/users/jeremiemartinez/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremiemartinez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremiemartinez/subscriptions","organizations_url":"https://api.github.com/users/jeremiemartinez/orgs","repos_url":"https://api.github.com/users/jeremiemartinez/repos","events_url":"https://api.github.com/users/jeremiemartinez/events{/privacy}","received_events_url":"https://api.github.com/users/jeremiemartinez/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T07:09:07Z","updated_at":"2015-08-11T07:09:07Z","body":"Super ! A ta dispo."}}