{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/350","repository_url":"https://api.github.com/repos/ReactiveX/RxAndroid","labels_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/350/comments","events_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/350/events","html_url":"https://github.com/ReactiveX/RxAndroid/issues/350","id":189075804,"number":350,"title":"RX Android & Proguard","user":{"login":"supercairos","id":720675,"avatar_url":"https://avatars2.githubusercontent.com/u/720675?v=4","gravatar_id":"","url":"https://api.github.com/users/supercairos","html_url":"https://github.com/supercairos","followers_url":"https://api.github.com/users/supercairos/followers","following_url":"https://api.github.com/users/supercairos/following{/other_user}","gists_url":"https://api.github.com/users/supercairos/gists{/gist_id}","starred_url":"https://api.github.com/users/supercairos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supercairos/subscriptions","organizations_url":"https://api.github.com/users/supercairos/orgs","repos_url":"https://api.github.com/users/supercairos/repos","events_url":"https://api.github.com/users/supercairos/events{/privacy}","received_events_url":"https://api.github.com/users/supercairos/received_events","type":"User","site_admin":false},"labels":[{"id":482219606,"url":"https://api.github.com/repos/ReactiveX/RxAndroid/labels/needs-info","name":"needs-info","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-11-14T10:22:17Z","updated_at":"2017-08-24T08:39:23Z","closed_at":null,"body":"Hi,\r\n\r\nI ran into a small issue when releasing into pro-guard.The method `AndroidSchedulers.mainThread() ` makes the subscription to never be called:\r\n\r\nThis will not work (Hello will never show): \r\n```java\r\nmRestService.login(email, password)\r\n                .flatMap(user -> Observable.zip(\r\n                        mRestService.checkUuid(user._token), \r\n                        Observable.just(user),\r\n                        (v, u) -> (User) u // Pass user throught\r\n                ))\r\n                .subscribeOn(Schedulers.io())\r\n                .observeOn(AndroidSchedulers.mainThread())\r\n                .subscribe(user -> { Log.v(TAG, \"Hello\") }, throwable -> { });\r\n```\r\n\r\nThis works as expected : \r\n```java\r\nmRestService.login(email, password)\r\n                .flatMap(user -> Observable.zip(\r\n                        mRestService.checkUuid(user._token), \r\n                        Observable.just(user),\r\n                        (v, u) -> (User) u // Pass user throught\r\n                ))\r\n                .subscribeOn(Schedulers.io())\r\n                //  .observeOn(AndroidSchedulers.mainThread())\r\n                .subscribe(user -> runOnUiThread(() -> { Log.v(TAG, \"Hello\") }), throwable -> { });\r\n```\r\nI'm using __Jack__ and the latest AndroidStudio Gradle plugin (__2.2.2__)\r\nI've attached my proguard file in case you want to have a look:\r\n[proguard-rules.txt](https://github.com/ReactiveX/RxAndroid/files/588942/proguard-rules.txt)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/comments/324571931","html_url":"https://github.com/ReactiveX/RxAndroid/issues/350#issuecomment-324571931","issue_url":"https://api.github.com/repos/ReactiveX/RxAndroid/issues/350","id":324571931,"user":{"login":"hahn","id":315048,"avatar_url":"https://avatars0.githubusercontent.com/u/315048?v=4","gravatar_id":"","url":"https://api.github.com/users/hahn","html_url":"https://github.com/hahn","followers_url":"https://api.github.com/users/hahn/followers","following_url":"https://api.github.com/users/hahn/following{/other_user}","gists_url":"https://api.github.com/users/hahn/gists{/gist_id}","starred_url":"https://api.github.com/users/hahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hahn/subscriptions","organizations_url":"https://api.github.com/users/hahn/orgs","repos_url":"https://api.github.com/users/hahn/repos","events_url":"https://api.github.com/users/hahn/events{/privacy}","received_events_url":"https://api.github.com/users/hahn/received_events","type":"User","site_admin":false},"created_at":"2017-08-24T08:39:23Z","updated_at":"2017-08-24T08:39:23Z","body":"@AkshayChordiya try RxJava2\r\n"}}
{"actor":{"display_login":"hahn"}}