{"action":"created","issue":{"url":"https://api.github.com/repos/jcabi/jcabi-github/issues/1162","labels_url":"https://api.github.com/repos/jcabi/jcabi-github/issues/1162/labels{/name}","comments_url":"https://api.github.com/repos/jcabi/jcabi-github/issues/1162/comments","events_url":"https://api.github.com/repos/jcabi/jcabi-github/issues/1162/events","html_url":"https://github.com/jcabi/jcabi-github/pull/1162","id":107636960,"number":1162,"title":"Issue #932 - Does jcabi-github support Android?","user":{"login":"pecko","id":534584,"avatar_url":"https://avatars.githubusercontent.com/u/534584?v=3","gravatar_id":"","url":"https://api.github.com/users/pecko","html_url":"https://github.com/pecko","followers_url":"https://api.github.com/users/pecko/followers","following_url":"https://api.github.com/users/pecko/following{/other_user}","gists_url":"https://api.github.com/users/pecko/gists{/gist_id}","starred_url":"https://api.github.com/users/pecko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pecko/subscriptions","organizations_url":"https://api.github.com/users/pecko/orgs","repos_url":"https://api.github.com/users/pecko/repos","events_url":"https://api.github.com/users/pecko/events{/privacy}","received_events_url":"https://api.github.com/users/pecko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jcabi/jcabi-github/labels/15%20mins","name":"15 mins","color":"eb6421"},{"url":"https://api.github.com/repos/jcabi/jcabi-github/labels/@darkled","name":"@darkled","color":"009801"},{"url":"https://api.github.com/repos/jcabi/jcabi-github/labels/CR","name":"CR","color":"bfd4f3"}],"state":"open","locked":false,"assignee":{"login":"darkled","id":3275813,"avatar_url":"https://avatars.githubusercontent.com/u/3275813?v=3","gravatar_id":"","url":"https://api.github.com/users/darkled","html_url":"https://github.com/darkled","followers_url":"https://api.github.com/users/darkled/followers","following_url":"https://api.github.com/users/darkled/following{/other_user}","gists_url":"https://api.github.com/users/darkled/gists{/gist_id}","starred_url":"https://api.github.com/users/darkled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkled/subscriptions","organizations_url":"https://api.github.com/users/darkled/orgs","repos_url":"https://api.github.com/users/darkled/repos","events_url":"https://api.github.com/users/darkled/events{/privacy}","received_events_url":"https://api.github.com/users/darkled/received_events","type":"User","site_admin":false},"milestone":null,"comments":66,"created_at":"2015-09-22T02:59:06Z","updated_at":"2015-10-05T12:03:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jcabi/jcabi-github/pulls/1162","html_url":"https://github.com/jcabi/jcabi-github/pull/1162","diff_url":"https://github.com/jcabi/jcabi-github/pull/1162.diff","patch_url":"https://github.com/jcabi/jcabi-github/pull/1162.patch"},"body":"The ticket: https://github.com/jcabi/jcabi-github/issues/932\r\n\r\nThe PR solves two issues that disable using jcabi-github on Android or similar environment:\r\n\r\n1) The RtGithub class creates the USER_AGENT constant using the manifest file.\r\nAndroid repacks all libraries and the 'JCabi-Version' property and other similar properties doesn't  exist in apk.\r\nAll RtGithub constructors don't work. They throw:\r\n\r\n```\r\njava.lang.IllegalArgumentException: Attribute 'JCabi-Version' not found in MANIFEST.MF file(s) among 2 other attribute(s): [\"Created-By\", \"Manifest-Version\"]\r\n```\r\n\r\nSolution: \r\n - I have created the jcabi.properties resource file that will contain this property. The maven build updates this property (properties)\r\n\r\n2) The second problem is described above that the Dalvik (Android JRE) can't find javax.xml.bind.DatatypeConverter\r\nThe problem happens when the issue #1 is fixed and it is related only to \"new RtGithub(user, pwd)\" constructor.\r\n\r\nSolution:\r\n\r\n- I have created the RtDatatypeConverter class based on DatatypeConverterImpl from OpenJDK.\r\nThe class will use the standard DatatypeConverter class if exists or the method(s) copied from DatatypeConverterImpl.\r\n\r\nI have tested the following code:\r\n\r\n```\r\nRtGithub github = new RtGithub(\"pecko\", \"MYPWD\");\r\n//RtGithub github = new RtGithub(oauth);\r\nRepo repo = github.repos().get(new Coordinates.Simple(\"jcabi/jcabi-github\"));\r\nIssues issues = repo.issues();\r\n```\r\n\r\nwithin a Android activity.\r\n"},"comment":{"url":"https://api.github.com/repos/jcabi/jcabi-github/issues/comments/145506602","html_url":"https://github.com/jcabi/jcabi-github/pull/1162#issuecomment-145506602","issue_url":"https://api.github.com/repos/jcabi/jcabi-github/issues/1162","id":145506602,"user":{"login":"darkled","id":3275813,"avatar_url":"https://avatars.githubusercontent.com/u/3275813?v=3","gravatar_id":"","url":"https://api.github.com/users/darkled","html_url":"https://github.com/darkled","followers_url":"https://api.github.com/users/darkled/followers","following_url":"https://api.github.com/users/darkled/following{/other_user}","gists_url":"https://api.github.com/users/darkled/gists{/gist_id}","starred_url":"https://api.github.com/users/darkled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkled/subscriptions","organizations_url":"https://api.github.com/users/darkled/orgs","repos_url":"https://api.github.com/users/darkled/repos","events_url":"https://api.github.com/users/darkled/events{/privacy}","received_events_url":"https://api.github.com/users/darkled/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T12:03:30Z","updated_at":"2015-10-05T12:03:30Z","body":"@rultor merge once more please"}}