{"action":"created","issue":{"url":"https://api.github.com/repos/agamemnus/cordova-plugin-xapkreader/issues/26","repository_url":"https://api.github.com/repos/agamemnus/cordova-plugin-xapkreader","labels_url":"https://api.github.com/repos/agamemnus/cordova-plugin-xapkreader/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/agamemnus/cordova-plugin-xapkreader/issues/26/comments","events_url":"https://api.github.com/repos/agamemnus/cordova-plugin-xapkreader/issues/26/events","html_url":"https://github.com/agamemnus/cordova-plugin-xapkreader/issues/26","id":107322055,"number":26,"title":"5.3.1.","user":{"login":"agamemnus","id":3230040,"avatar_url":"https://avatars.githubusercontent.com/u/3230040?v=3","gravatar_id":"","url":"https://api.github.com/users/agamemnus","html_url":"https://github.com/agamemnus","followers_url":"https://api.github.com/users/agamemnus/followers","following_url":"https://api.github.com/users/agamemnus/following{/other_user}","gists_url":"https://api.github.com/users/agamemnus/gists{/gist_id}","starred_url":"https://api.github.com/users/agamemnus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agamemnus/subscriptions","organizations_url":"https://api.github.com/users/agamemnus/orgs","repos_url":"https://api.github.com/users/agamemnus/repos","events_url":"https://api.github.com/users/agamemnus/events{/privacy}","received_events_url":"https://api.github.com/users/agamemnus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2015-09-19T09:42:30Z","updated_at":"2016-10-18T07:46:33Z","closed_at":"2016-01-26T20:16:43Z","body":"Cordova 5+ uses only gradle, so changes had to be made to the coding. Cordova 5 also uses a mandatory whitelist plugin by default, so we need to account for that.\r\n\r\n5.3.1 fixes the library naming issues of 5 through ???. No more messing around with that.\r\n\r\nhttps://github.com/agamemnus/cordova-plugin-xapkreader/tree/cordova-5.3.1\r\n\r\nFor anyone upgrading, please let me know how it goes.\r\n\r\nThanks again to everyone who contributed debugging, testing, and writing instructions. Here are the steps. First, install:\r\n\r\n1) `cordova plugin add cordova plugin add https://github.com/agamemnus/cordova-plugin-xapkreader.git#cordova-5.3.1`\r\n2) In `plugins/com.flyingsoftgames.xapkreader/plugin.xml`, set `xapk_expansion_authority` and  `plugins/com.flyingsoftgames.xapkreader` (untested by me -- if this doesn't work, try modifying android.json instead).\r\n3) `cordova add platform android`\r\n4) `cordova run android` (with the device connected and .obb file loaded on the device)\r\n\r\n5) Now, if you are having trouble with the automatic OBB downloader (it should start if OBBs are missing, but in RELEASE mode only and using the Google Play APK only (??questionable??)), do this: in ``platforms/android/src/com/flyingsoftgames/xapkreader/XAPKDownloaderActivity.java``, change ``return isDebug;`` to ``return true;``.\r\n\r\n6) Cordova 5 has a whitelist plugin requirement -- cordova-plugin-whitelist. At present, it is bugged and you need to add in some extra stuff to make sure your files are able to be read (due to too-restrictive default security)\r\nYou can do it one of two ways (or both):\r\n6A) In your ``index.html`` file, you also need to add a Content-Security-Policy meta tag. Note that the instructions on the whitelist plugin on github do not show the most permissive meta tag and forget about ``content://`` or ``cdvfile://``. The most permissive meta tag seems to be: ``<meta http-equiv=\"Content-Security-Policy\" content=\"* * 'self' default-src 'unsafe-inline' 'unsafe-eval' http://* https://* data: cdvfile://* content://*;\">``. (content:// and cdvfile:// should really be included by default. If you want to omit those, I made a patch here: https://github.com/agamemnus/cordova-plugin-whitelist)\r\n6B) Make sure to add ``allow-navigation``, and ``allow-intent``, and extra ``access origin`` tags to ``root/config.xml``. E.G.:\r\n````\r\n    <allow-navigation href=\"*://*/*\"/>\r\n    <allow-intent href=\"*\" />\r\n    <access origin=\"*\" />\r\n    <access origin=\"content:///*\" />\r\n    <access origin=\"cdvfile:///*\" />\r\n````\r\n\r\nNOTE: Please do not post any logs here unless needed for showing any error you might have."},"comment":{"url":"https://api.github.com/repos/agamemnus/cordova-plugin-xapkreader/issues/comments/254432125","html_url":"https://github.com/agamemnus/cordova-plugin-xapkreader/issues/26#issuecomment-254432125","issue_url":"https://api.github.com/repos/agamemnus/cordova-plugin-xapkreader/issues/26","id":254432125,"user":{"login":"falinsin","id":4744031,"avatar_url":"https://avatars.githubusercontent.com/u/4744031?v=3","gravatar_id":"","url":"https://api.github.com/users/falinsin","html_url":"https://github.com/falinsin","followers_url":"https://api.github.com/users/falinsin/followers","following_url":"https://api.github.com/users/falinsin/following{/other_user}","gists_url":"https://api.github.com/users/falinsin/gists{/gist_id}","starred_url":"https://api.github.com/users/falinsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falinsin/subscriptions","organizations_url":"https://api.github.com/users/falinsin/orgs","repos_url":"https://api.github.com/users/falinsin/repos","events_url":"https://api.github.com/users/falinsin/events{/privacy}","received_events_url":"https://api.github.com/users/falinsin/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T07:46:32Z","updated_at":"2016-10-18T07:46:32Z","body":"Is this because my cordova version is 6???"}}
{"actor":{"display_login":"falinsin"}}