{"action":"created","issue":{"url":"https://api.github.com/repos/wasabeef/Blurry/issues/10","labels_url":"https://api.github.com/repos/wasabeef/Blurry/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/wasabeef/Blurry/issues/10/comments","events_url":"https://api.github.com/repos/wasabeef/Blurry/issues/10/events","html_url":"https://github.com/wasabeef/Blurry/issues/10","id":108305374,"number":10,"title":"Details on how to use this with maven","user":{"login":"athkalia","id":6057808,"avatar_url":"https://avatars.githubusercontent.com/u/6057808?v=3","gravatar_id":"","url":"https://api.github.com/users/athkalia","html_url":"https://github.com/athkalia","followers_url":"https://api.github.com/users/athkalia/followers","following_url":"https://api.github.com/users/athkalia/following{/other_user}","gists_url":"https://api.github.com/users/athkalia/gists{/gist_id}","starred_url":"https://api.github.com/users/athkalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athkalia/subscriptions","organizations_url":"https://api.github.com/users/athkalia/orgs","repos_url":"https://api.github.com/users/athkalia/repos","events_url":"https://api.github.com/users/athkalia/events{/privacy}","received_events_url":"https://api.github.com/users/athkalia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-25T11:05:03Z","updated_at":"2015-09-28T16:18:39Z","closed_at":null,"body":"Hello,\r\n\r\nas I spent a couple of hours trying to set up this with the android maven plugin, I think that it will be useful to many to add the following instructions:\r\n\r\n1) You will need the renderscript jar file. This resides in <ANDROID_HOME>\\build-tools\\<version>\\renderscript\\lib. I went for the latest version, 23.0.0 at the moment of writing this.\r\n2) You can either install it in your local .m2 directory, or upload it to a nexus repository server\r\n\r\nI added it as \r\n\r\n```\r\n<dependency>\r\n     <groupId>com.android.support</groupId>\r\n     <artifactId>renderscript-v8</artifactId>\r\n     <version>23.0.0</version>\r\n</dependency>\r\n```\r\n\r\n3) You need to add the native libs in your apk. These can be found under <ANDROID_HOME>\\build-tools\\<version>\\renderscript\\lib\\packaged. Just copy all folders contained in the \"packaged\" folder to a location in your project (e.g. in a folder called native-libs) and then add the following line in the android-maven-plugin configuration, in your pom.xml:\r\n\r\n```\r\n<nativeLibrariesDirectory>${project.basedir}/native-libs</nativeLibrariesDirectory>\r\n```\r\n\r\nYou can verify that the native libs have been included in the build by checking the build for the following text :\r\n\r\n[INFO] Adding native libraries: ... <library location>\r\n\r\n\r\nThat's all !\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wasabeef/Blurry/issues/comments/143794389","html_url":"https://github.com/wasabeef/Blurry/issues/10#issuecomment-143794389","issue_url":"https://api.github.com/repos/wasabeef/Blurry/issues/10","id":143794389,"user":{"login":"athkalia","id":6057808,"avatar_url":"https://avatars.githubusercontent.com/u/6057808?v=3","gravatar_id":"","url":"https://api.github.com/users/athkalia","html_url":"https://github.com/athkalia","followers_url":"https://api.github.com/users/athkalia/followers","following_url":"https://api.github.com/users/athkalia/following{/other_user}","gists_url":"https://api.github.com/users/athkalia/gists{/gist_id}","starred_url":"https://api.github.com/users/athkalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athkalia/subscriptions","organizations_url":"https://api.github.com/users/athkalia/orgs","repos_url":"https://api.github.com/users/athkalia/repos","events_url":"https://api.github.com/users/athkalia/events{/privacy}","received_events_url":"https://api.github.com/users/athkalia/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T16:18:39Z","updated_at":"2015-09-28T16:18:39Z","body":"I am using the maven build tool, not doing it manually with those commands.\r\nThere's gradle, maven, ant and then there's manual work in Eclipse or other IDEs. \r\nIf you add these commands in your wiki, people that use maven will find it easier to use your library!\r\n\r\nCheers,\r\nSakis"}}