cordova-plugin-hotspot
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -10,9 +10,5 @@ angular.module('starter.controllers', []) | ||
}; | ||
cordova.plugins.hotspot.isHotspotEnabled( | ||
function () { | ||
cordova.plugins.hotspot.isHotspotEnabled(function (enabled) { | ||
$scope.isHotSpotActive = enabled; | ||
$ionicLoading.hide(); | ||
$scope.isHotSpotActive = true; | ||
}, function () { | ||
$ionicLoading.hide(); | ||
$scope.isHotSpotActive = false; | ||
} | ||
@@ -58,17 +54,18 @@ ); | ||
var init = function () { | ||
cordova.plugins.hotspot.isHotspotEnabled( | ||
function () { | ||
$scope.status = 'Reading devices ...'; | ||
cordova.plugins.hotspot.getAllHotspotDevices( | ||
function (response) { | ||
$scope.status = false; | ||
$scope.devices = response; | ||
}, function () { | ||
$scope.status = false; | ||
alert('Device listing failed.'); | ||
} | ||
); | ||
cordova.plugins.hotspot.isHotspotEnabled(function (enabled) { | ||
$scope.isHotSpotActive = enabled; | ||
if (enabled) { | ||
$scope.status = 'Reading devices ...'; | ||
cordova.plugins.hotspot.getAllHotspotDevices( | ||
function (response) { | ||
$scope.status = false; | ||
$scope.devices = response; | ||
}, function () { | ||
$scope.status = false; | ||
alert('Device listing failed.'); | ||
} | ||
); | ||
} | ||
}, function () { | ||
$scope.status = false; | ||
$scope.isHotSpotActive = false; | ||
} | ||
@@ -75,0 +72,0 @@ ); |
{ | ||
"name": "cordova-plugin-hotspot", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Cordova WiFi Hotspot Plugin", | ||
@@ -23,3 +23,3 @@ "cordova": { | ||
"pretest": "rm -rf tmp && mkdir -p tmp && cd tmp && git clone https://github.com/simpligility/maven-android-sdk-deployer.git && cd maven-android-sdk-deployer/ && mvn install -P 6.0 && ls ~/.m2/repository/android/android/", | ||
"test": "cd tmp && git clone https://github.com/apache/cordova-app-hello-world.git && cd cordova-app-hello-world && cordova platform add android && && cordova plugin add cordova-plugin-compat && cordova build && cd ../../test/android && ./gradlew build", | ||
"test": "cd tmp && git clone https://github.com/apache/cordova-app-hello-world.git && cd cordova-app-hello-world && cordova platform add android && cordova plugin add cordova-plugin-compat && cordova build && cd ../../test/android && ./gradlew build && cd ../../tmp/cordova-app-hello-world && cordova plugin add ../.. && cordova plugin add http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework.git", | ||
"posttest": "jsdoc -c jsdoc.json && jsdoc2md www/HotSpotPlugin.js | sed s/hotSpotPlugin/cordova.plugins.hotspot/g | sed s/HotSpotPlugin/cordova.plugins.hotspot/g > PLUGIN_USAGE.MD" | ||
@@ -26,0 +26,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9908389
162
136949