Hello again Davide.

On 3 June 2014 08:52, davide <[email protected]> wrote:

>  I feel we are getting close to the solution. But still not working for me
>

I think I've got it, thanks to your thorough test case. I used your script
(which failed), then went through the steps manually.

Then I realised what the difference between our approaches was.

You have this line in your script (line 59):

plugman install --platform android --project platforms/android/ --plugin
https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion.git#r0.2.4

By contrast, I was doing this:

cordova plugin add
https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion.git#r0.2.4

Now it seems that these do slightly different things. I don't know what
exactly (I'm not really, really familiar with Cordova), but I think the
"cordova plugin" command does some extra registration of the plugin and
writes to config, which means that it is correctly enabled. I think you
made a comment previously about expecting something in the config, but
finding that it was missing, which is likely to be related.

Try your script again, but replacing line 59 with the alternative above. It
should work now: it does for me :)

However, on my device, I get some UI corruption when writing the
accelerometer coordinates. You could try removing that CSS so you can see
them updating correctly, or write them to the console instead.

Elliot



> I created 2 gist in github as a complete testcase and an index.html to
> replace the current one.
>
> the xwalk testcase is here:
> https://gist.github.com/dawez/63409ff820da4ebe5c02
>
> it takes care of creating a new cordova project in the tmp dir, convert it
> to xwalk , add a plugin and run on a device.
>
> Please try it  [you would need to configure the export
> ANDROID_HOME=/home/davide/android-sdk-linux at the top of the script. I
> have cordova 3.3.1-0.4.2 installed
>
> The script is also replacing default index.html with this one:
>
> https://gist.github.com/dawez/4b0f801697a05ba9c8b0
>
> which simple contains and alert to show if the accelerator plugin is
> defined or not.
>
> In my case it always alert the maessage "ACCELERATOR PLUGIN: NOT PRESENT"
>
> I tested in samsung galaxy node 10.1 and a Nexus S
>
> --
>
> Regards,
> Davide
>
> *POGED GmbH www.poged.com <http://www.poged.com>*
>
>


-- 
Elliot Smith
Senior Software Engineer
Intel Open Source Technology Centre
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to