Skip to content
This repository has been archived by the owner on Jul 20, 2018. It is now read-only.

android_custom_resources.js not working #29

Open
chrisbenseler opened this issue Mar 7, 2017 · 4 comments
Open

android_custom_resources.js not working #29

chrisbenseler opened this issue Mar 7, 2017 · 4 comments

Comments

@chrisbenseler
Copy link

Script is being called, folder resources/android/custom/ exists, but files inside are not copied to platforms/android/res/drawable-*

@chrisbenseler
Copy link
Author

The 'copies' array has this:

[ '/home/christian/dev/projects/revistatuapp/resources/android/custom/drawable-xxxhdpi',
'/home/christian/dev/projects/revistatuapp/platforms/android/res/drawable-xxxhdpi/drawable-xxxhdpi' ] ]

it seems that the destPath is not being well calculated.

@ZenSide
Copy link

ZenSide commented Aug 1, 2017

I got the same problem here, could someone give a working scenario to use android_custom_resources ?

@ZenSide
Copy link

ZenSide commented Aug 7, 2017

Did someone ever succeed to use the android_custom_resource hooks with Ionic Package ? And could he add a quick exemple ! Thanks very much !

@inicklas
Copy link

I don't know if anyone still needs to get this working for them.
I solved it by changing

var resourceDirs = [
  'res/drawable-ldpi',
  'res/drawable-mdpi',
  'res/drawable-hdpi',
  'res/drawable-xhdpi',
  'res/drawable-xxhdpi',
  'res/drawable-xxxhdpi'
];

to

var resourceDirs = [
  'res/drawable-land-ldpi',
  'res/drawable-land-mdpi',
  'res/drawable-land-hdpi',
  'res/drawable-land-xhdpi',
  'res/drawable-land-xxhdpi',
  'res/drawable-land-xxxhdpi'
];

basically check the res path to your drawables and match it to what is in the script.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants