{"id":18256819,"url":"https://github.com/boundstate/cordova-android-res","last_synced_at":"2025-04-08T22:28:49.021Z","repository":{"id":33237580,"uuid":"36881895","full_name":"boundstate/cordova-android-res","owner":"boundstate","description":null,"archived":false,"fork":false,"pushed_at":"2018-08-08T04:32:30.000Z","size":128,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T21:18:23.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boundstate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-04T16:21:07.000Z","updated_at":"2015-06-04T16:22:19.000Z","dependencies_parsed_at":"2022-08-17T22:45:17.022Z","dependency_job_id":null,"html_url":"https://github.com/boundstate/cordova-android-res","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boundstate%2Fcordova-android-res","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boundstate%2Fcordova-android-res/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boundstate%2Fcordova-android-res/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boundstate%2Fcordova-android-res/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boundstate","download_url":"https://codeload.github.com/boundstate/cordova-android-res/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247938401,"owners_count":21021519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T10:23:48.723Z","updated_at":"2025-04-08T22:28:49.001Z","avatar_url":"https://github.com/boundstate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cordova-android-res\n\nAutomatic Android resource resizing for Cordova. Create an `android-res` folder containing the images you want to resize \nin the root folder of your Cordova project and use cordova-android-res to automatically resize and copy the images for \nall current Android devices.\n\n### Manual usage\n\n1. `npm install -g cordova-android-res`\n2. Create an `android-res` folder containing the images you want to resize in the root folder of your Cordova project\n3. Run `cordova-android-res`.\n\n### Automated usage\n\n1. `npm install cordova-android-res --save-dev`\n\n2. Create `my-android-res-hook.js`\n    ```javascript\n    var cordovaAndroidRes = require('cordova-android-res');\n    \n    module.exports = function() {\n      return cordovaAndroidRes();\n    };\n    ```\n\n3. Add hook to `config.xml`\n    ```xml\n    \u003chook src=\"my-android-res-hook.js\" type=\"after_platform_add\" /\u003e\n    ```\n\nThat's it. Now every time you `cordova add platform`, the Android resources will be auto generated.\n\n### Requirements\n\n- GraphicsMagick\n- Android platform added to your project\n\n### License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboundstate%2Fcordova-android-res","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboundstate%2Fcordova-android-res","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboundstate%2Fcordova-android-res/lists"}