hoerresb / WifiWizard

A Cordova plugin for managing Wifi networks
Apache License 2.0
205 stars 176 forks source link

Build failed with current master repo #51

Closed jorisw closed 9 years ago

jorisw commented 9 years ago

Since cordova plugin add com.pylonproducts.wifiwizard pulled 0.2.9 instead of the new 0.2.10, I decided to install using the Master .git URL. However this gives me a build error:

platforms/android/src/com/pylonproducts/wifiwizard/WifiWizard.java:275: error: package NetworkInfo does not exist
              NetworkInfo.DetailedState connectionState = info.getDetailedStateOf(info.getSupplicantState());

Building against Android target version 22.

jorisw commented 9 years ago

I was able to fix this build error by inserting the following at line 24 of WifiWizard.java:

import android.net.NetworkInfo;

However, it would appear that the current Master branch is missing the #fix/api_v_16 fixes you made earlier. 'cause the scan result callback is no longer firing on my Android 4.1.

And a regular cordova plugin add com.pylonproducts.wifiwizardstill installs 0.2.9 here.

hoerresb commented 9 years ago

yep, I just added that. If pull from master it should be fine now.

jorisw commented 9 years ago

Thanks, but master still seems to be missing the #fix/api_v_16 fix.