https://github.com/boundstate/cordova-android-res
https://github.com/boundstate/cordova-android-res
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/boundstate/cordova-android-res
- Owner: boundstate
- License: mit
- Created: 2015-06-04T16:21:07.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-08-08T04:32:30.000Z (almost 8 years ago)
- Last Synced: 2025-03-16T21:18:23.343Z (over 1 year ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cordova-android-res
Automatic Android resource resizing for Cordova. Create an `android-res` folder containing the images you want to resize
in the root folder of your Cordova project and use cordova-android-res to automatically resize and copy the images for
all current Android devices.
### Manual usage
1. `npm install -g cordova-android-res`
2. Create an `android-res` folder containing the images you want to resize in the root folder of your Cordova project
3. Run `cordova-android-res`.
### Automated usage
1. `npm install cordova-android-res --save-dev`
2. Create `my-android-res-hook.js`
```javascript
var cordovaAndroidRes = require('cordova-android-res');
module.exports = function() {
return cordovaAndroidRes();
};
```
3. Add hook to `config.xml`
```xml
```
That's it. Now every time you `cordova add platform`, the Android resources will be auto generated.
### Requirements
- GraphicsMagick
- Android platform added to your project
### License
MIT