tanelih / phonegap-bluetooth-plugin

Bluetooth plugin for PhoneGap version 2.6.0+
MIT License
57 stars 50 forks source link

The Readme.md is incorect #1

Closed manorius closed 11 years ago

manorius commented 11 years ago

It states that this version works on Cordova 2.6.0 and up, I tried to install it on 2.9.0 and eclipse was throwing errors

tanelih commented 11 years ago

Hi, can you post what errors you received from eclipse. Plugin was tested on both 2.6.0 and 3.0.0, I'll update the readme to reflect that while I try and find what the issue is. Thanks. :-)

tanelih commented 11 years ago

Hi, I tried a manual install on 2.9.0 just now and got it working. Were your errors related to BluetoothPlugin.java and import org.apache.cordova.PluginResult;? I fixed the repository to include a manual folder inside which the imports are correct for earlier versions. The manual folder also includes the javascript file which has the cordova definition already included.

manorius commented 11 years ago

Hi Sorry for the late reply, here is a screenshot of some of the error messages that I'm getting screen shot 2013-09-21 at 6 09 01 pm

tanelih commented 11 years ago

Hi, sorry for the inconvenience. You can fix that by replacing

import org.apache.cordova.PluginResult;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaInterface;

with

import org.apache.cordova.api.PluginResult;
import org.apache.cordova.api.CordovaPlugin;
import org.apache.cordova.api.CallbackContext;
import org.apache.cordova.api.CordovaInterface;

in BluetoothPlugin.java file. The namespace holding the correct classes was changed in 3.0.0, so that's why you're getting the errors. I changed the repository to include a manual folder for installations under version 3.0.0, this is now reflected in the readme.

manorius commented 11 years ago

I changed these but I'm still getting errors.. image image image

tanelih commented 11 years ago

Hi, I can't reproduce these errors in my 2.9.0 version project that I used to test the plugin. Are you sure you have installed the PhoneGap libraries correctly? I followed the instructions here and then installed the plugin as is specified in the readme.

manorius commented 11 years ago

It's working now when I follow your instructions on installing the plugin. If I try to install the plugin with plugman it throws errors.