mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +08:00
Merge branch 'master' of git://github.com/phonegap/phonegap-android
This commit is contained in:
commit
2a786044de
@ -805,13 +805,11 @@ PhoneGap.JSCallback = function() {
|
|||||||
console.log("JSCallback Error: Bad request. Stopping callbacks.");
|
console.log("JSCallback Error: Bad request. Stopping callbacks.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// If error, restart callback server
|
// If error, revert to polling
|
||||||
else {
|
else {
|
||||||
console.log("JSCallback Error: Request failed.");
|
console.log("JSCallback Error: Request failed.");
|
||||||
prompt("restartServer", "gap_callbackServer:");
|
PhoneGap.UsePolling = true;
|
||||||
PhoneGap.JSCallbackPort = null;
|
PhoneGap.JSCallbackPolling();
|
||||||
PhoneGap.JSCallbackToken = null;
|
|
||||||
setTimeout(PhoneGap.JSCallback, 100);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -938,7 +936,11 @@ PhoneGap.includeJavascript = function(jsfile, successCallback) {
|
|||||||
*/
|
*/
|
||||||
var PluginManager = {
|
var PluginManager = {
|
||||||
addService: function(serviceType, className) {
|
addService: function(serviceType, className) {
|
||||||
|
try {
|
||||||
navigator.app.addService(serviceType, className);
|
navigator.app.addService(serviceType, className);
|
||||||
|
} catch (e) {
|
||||||
|
console.log("Error adding service "+serviceType+": "+e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -10,5 +10,5 @@
|
|||||||
# Indicates whether an apk should be generated for each density.
|
# Indicates whether an apk should be generated for each density.
|
||||||
split.density=false
|
split.density=false
|
||||||
# Project target.
|
# Project target.
|
||||||
target=android-8
|
target=android-12
|
||||||
apk-configurations=
|
apk-configurations=
|
||||||
|
Loading…
Reference in New Issue
Block a user