{"action":"published","release":{"url":"https://api.github.com/repos/cvnhan/androidaccessdb/releases/1981799","assets_url":"https://api.github.com/repos/cvnhan/androidaccessdb/releases/1981799/assets","upload_url":"https://uploads.github.com/repos/cvnhan/androidaccessdb/releases/1981799/assets{?name,label}","html_url":"https://github.com/cvnhan/androidaccessdb/releases/tag/v1.2","id":1981799,"tag_name":"v1.2","target_commitish":"master","name":"Access db via socket","draft":false,"author":{"login":"cvnhan","id":7714206,"avatar_url":"https://avatars.githubusercontent.com/u/7714206?v=3","gravatar_id":"","url":"https://api.github.com/users/cvnhan","html_url":"https://github.com/cvnhan","followers_url":"https://api.github.com/users/cvnhan/followers","following_url":"https://api.github.com/users/cvnhan/following{/other_user}","gists_url":"https://api.github.com/users/cvnhan/gists{/gist_id}","starred_url":"https://api.github.com/users/cvnhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvnhan/subscriptions","organizations_url":"https://api.github.com/users/cvnhan/orgs","repos_url":"https://api.github.com/users/cvnhan/repos","events_url":"https://api.github.com/users/cvnhan/events{/privacy}","received_events_url":"https://api.github.com/users/cvnhan/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2015-10-19T11:46:18Z","published_at":"2015-10-19T11:47:23Z","assets":[],"tarball_url":"https://api.github.com/repos/cvnhan/androidaccessdb/tarball/v1.2","zipball_url":"https://api.github.com/repos/cvnhan/androidaccessdb/zipball/v1.2","body":"androidaccessdb\r\n===============\r\n\r\naccess and copy db file to pc to use. (a part of Show android db flow - use SunnyPoint Utils plugin to open db file)\r\n\r\nSetup:\r\n------\r\n\r\n in root build.gradle\r\n\r\n    allprojects {\r\n        repositories {\r\n            jcenter()\r\n            maven { url \"https://jitpack.io\" }\r\n        }\r\n    }\r\n\r\nin app build.gradle\r\n\r\n    dependencies {\r\n                compile 'com.github.cvnhan:androidaccessdb:[version]'\r\n    }\r\n\r\nex: compile 'com.github.cvnhan:androidaccessdb:a62c687737'\r\n\r\nHow to use:\r\n-----------\r\n\r\nin Application:\r\n\r\n    public class App extends Application {\r\n        @Override\r\n        public void onCreate() {\r\n            super.onCreate();\r\n\t\t\tSPAccessDBHelper.setInstance(getApplicationContext());\r\n\r\n\t\t\tSPAccessConfigs.setupInitFirst(getApplicationContext(), \"main.db\", null);\r\n\t\t\tSPAccessConfigs.setEnableLog(true);\r\n\r\n\t\t\t//option 1: move db file to sdcard\r\n\t//        SPAccessDBUtils.backupDB();\r\n\r\n\t\t\t//option 2: register get db via socket\r\n\t\t\tSPAccessConfigs.setRegisterBackup(true);\r\n\t\t\tSPAccessSocketClientComm.startDiamond(1234);\r\n        }\r\n    }\r\n\r\nin manifests:\r\n\r\n    <application\r\n            android:name=\".App\">\r\n    \r\n    </application>\r\n"}}