Software Archive
Read-only legacy content
17060 Discussões

Adding Native Image Resources

Noah_S_
Principiante
1.340 Visualizações

I'm new to Cordova/Intel XDK I am trying to use the ThemeableBrowser plugin, which says that images referenced must be "native image resources." I'm having trouble adding such resources. The ReadMe for the plugin says

First of all, your native iOS and Android projects are located at:

<cordova_project_root>/platforms/ios
<cordova_project_root>/platforms/android

I did not find those directories in my project.(project type HTML5+Cordova). So, I created them in Explorer.

The instructions go on to say to make drawable resource folders in

<cordova_project_root>/platforms/android/res

So I did that. But the features still are not working and my build size has not increased, so I don't think these resources are being considered. Thanks for any help.

0 Kudos
3 Respostas
Amrita_C_Intel
Funcionário
1.340 Visualizações

Hello,

So currently XDK do not support ThemeableBrowser configuration. As you can see  these are the instructions for Android studio or eclipse. But I will forward this request to our engineering team. the closest one I can think is inapp browser.

PaulF_IntelCorp
Funcionário
1.340 Visualizações

As Amrita points out, this is a difficult plugin to support with our system. It assumes you have full access to the Cordova CLI platform directories, which you do not have in our system, because those directories only exist in the cloud when your app is built. It would require some additional tools in our build system to make this thing work, tools which are not there today. We have discussed the idea of providing access to user scripts to address these sorts of issues, but that is not something that has been committed to at this time.

If you want to use this plugin you'll have to use Cordova CLI, it is incompatible with the Intel XDK.

PaulF_IntelCorp
Funcionário
1.340 Visualizações

NOTE: this can be done with a simple custom plugin, find some basic instructions here > http://stackoverflow.com/a/34078623/2914328

Responder