mirror of
https://github.com/apache/cordova-android.git
synced 2025-03-16 08:21:04 +08:00
Spelling fixes
This commit is contained in:
parent
d7ad784809
commit
74ea6bf00a
@ -32,7 +32,7 @@
|
|||||||
* [CB-4764] Deprecated DirectoryManager.java (moved into plugins)
|
* [CB-4764] Deprecated DirectoryManager.java (moved into plugins)
|
||||||
* [CB-4763] Deprecated FileHelper.java (moved into plugins), Move getMimeType() into CordovaResourceApi.
|
* [CB-4763] Deprecated FileHelper.java (moved into plugins), Move getMimeType() into CordovaResourceApi.
|
||||||
* [CB-4725] Add CordovaWebView.CORDOVA_VERSION constant
|
* [CB-4725] Add CordovaWebView.CORDOVA_VERSION constant
|
||||||
* Incremeting version check for Android 4.3 API Level 18
|
* Incrementing version check for Android 4.3 API Level 18
|
||||||
* [CB-3542] rewrote cli tooling scripts in node
|
* [CB-3542] rewrote cli tooling scripts in node
|
||||||
* Allow CordovaChromeClient subclasses access to CordovaInterface and CordovaWebView members
|
* Allow CordovaChromeClient subclasses access to CordovaInterface and CordovaWebView members
|
||||||
* Refactor CordovaActivity.init so that subclasses can easily override factory methods for webview objects
|
* Refactor CordovaActivity.init so that subclasses can easily override factory methods for webview objects
|
||||||
|
2
bin/templates/cordova/lib/build.js
vendored
2
bin/templates/cordova/lib/build.js
vendored
@ -78,7 +78,7 @@ module.exports.get_apk = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports.help = function() {
|
module.exports.help = function() {
|
||||||
console.log('Usage: ' + path.relative(process.cwd(), path.join(ROOT, 'corodva', 'build')) + ' [build_type]');
|
console.log('Usage: ' + path.relative(process.cwd(), path.join(ROOT, 'cordova', 'build')) + ' [build_type]');
|
||||||
console.log('Build Types : ');
|
console.log('Build Types : ');
|
||||||
console.log(' \'--debug\': Default build, will build project in using ant debug');
|
console.log(' \'--debug\': Default build, will build project in using ant debug');
|
||||||
console.log(' \'--release\': will build project using ant release');
|
console.log(' \'--release\': will build project using ant release');
|
||||||
|
6
bin/templates/cordova/lib/emulator.js
vendored
6
bin/templates/cordova/lib/emulator.js
vendored
@ -143,8 +143,8 @@ module.exports.list_targets = function() {
|
|||||||
/*
|
/*
|
||||||
* Starts an emulator with the given ID,
|
* Starts an emulator with the given ID,
|
||||||
* and returns the started ID of that emulator.
|
* and returns the started ID of that emulator.
|
||||||
* If no ID is given it will used the first image availible,
|
* If no ID is given it will used the first image available,
|
||||||
* if no image is availible it will error out (maybe create one?).
|
* if no image is available it will error out (maybe create one?).
|
||||||
*
|
*
|
||||||
* Returns a promise.
|
* Returns a promise.
|
||||||
*/
|
*/
|
||||||
@ -274,7 +274,7 @@ module.exports.create_image = function(name, target) {
|
|||||||
.then(function() {
|
.then(function() {
|
||||||
// TODO: This seems like another error case, even though it always happens.
|
// TODO: This seems like another error case, even though it always happens.
|
||||||
console.error('ERROR : Unable to create an avd emulator, no targets found.');
|
console.error('ERROR : Unable to create an avd emulator, no targets found.');
|
||||||
console.error('Please insure you have targets availible by runing the "android" command');
|
console.error('Please insure you have targets available by running the "android" command');
|
||||||
return Q.reject();
|
return Q.reject();
|
||||||
}, function(error) {
|
}, function(error) {
|
||||||
console.error('ERROR : Failed to create emulator image : ');
|
console.error('ERROR : Failed to create emulator image : ');
|
||||||
|
2
bin/templates/cordova/lib/log.js
vendored
2
bin/templates/cordova/lib/log.js
vendored
@ -51,7 +51,7 @@ module.exports.run = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports.help = function() {
|
module.exports.help = function() {
|
||||||
console.log('Usage: ' + path.relative(process.cwd(), path.join(ROOT, 'corodva', 'log')));
|
console.log('Usage: ' + path.relative(process.cwd(), path.join(ROOT, 'cordova', 'log')));
|
||||||
console.log('Gives the logcat output on the command line.');
|
console.log('Gives the logcat output on the command line.');
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
4
bin/templates/cordova/lib/run.js
vendored
4
bin/templates/cordova/lib/run.js
vendored
@ -26,7 +26,7 @@ var path = require('path'),
|
|||||||
Q = require('q');
|
Q = require('q');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Runs the application on a device if availible.
|
* Runs the application on a device if available.
|
||||||
* If not device is found, it will use a started emulator.
|
* If not device is found, it will use a started emulator.
|
||||||
* If no started emulators are found it will attempt to start an avd.
|
* If no started emulators are found it will attempt to start an avd.
|
||||||
* If no avds are found it will error out.
|
* If no avds are found it will error out.
|
||||||
@ -91,7 +91,7 @@ var path = require('path'),
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// no target given, deploy to device if availible, otherwise use the emulator.
|
// no target given, deploy to device if available, otherwise use the emulator.
|
||||||
return device.list()
|
return device.list()
|
||||||
.then(function(device_list) {
|
.then(function(device_list) {
|
||||||
if (device_list.length > 0) {
|
if (device_list.length > 0) {
|
||||||
|
@ -31,7 +31,7 @@ var app = {
|
|||||||
// deviceready Event Handler
|
// deviceready Event Handler
|
||||||
//
|
//
|
||||||
// The scope of 'this' is the event. In order to call the 'receivedEvent'
|
// The scope of 'this' is the event. In order to call the 'receivedEvent'
|
||||||
// function, we must explicity call 'app.receivedEvent(...);'
|
// function, we must explicitly call 'app.receivedEvent(...);'
|
||||||
onDeviceReady: function() {
|
onDeviceReady: function() {
|
||||||
app.receivedEvent('deviceready');
|
app.receivedEvent('deviceready');
|
||||||
},
|
},
|
||||||
|
@ -190,7 +190,7 @@ public class App extends CordovaPlugin {
|
|||||||
* @param override T=override, F=cancel override
|
* @param override T=override, F=cancel override
|
||||||
*/
|
*/
|
||||||
public void overrideBackbutton(boolean override) {
|
public void overrideBackbutton(boolean override) {
|
||||||
LOG.i("App", "WARNING: Back Button Default Behaviour will be overridden. The backbutton event will be fired!");
|
LOG.i("App", "WARNING: Back Button Default Behavior will be overridden. The backbutton event will be fired!");
|
||||||
webView.bindButton(override);
|
webView.bindButton(override);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -202,7 +202,7 @@ public class App extends CordovaPlugin {
|
|||||||
* @param override T=override, F=cancel override
|
* @param override T=override, F=cancel override
|
||||||
*/
|
*/
|
||||||
public void overrideButton(String button, boolean override) {
|
public void overrideButton(String button, boolean override) {
|
||||||
LOG.i("App", "WARNING: Volume Button Default Behaviour will be overridden. The volume event will be fired!");
|
LOG.i("App", "WARNING: Volume Button Default Behavior will be overridden. The volume event will be fired!");
|
||||||
webView.bindButton(button, override);
|
webView.bindButton(button, override);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -760,11 +760,11 @@ public class CordovaWebView extends WebView {
|
|||||||
if (this.backHistory()) {
|
if (this.backHistory()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// If not, then invoke default behaviour
|
// If not, then invoke default behavior
|
||||||
else {
|
else {
|
||||||
//this.activityState = ACTIVITY_EXITING;
|
//this.activityState = ACTIVITY_EXITING;
|
||||||
//return false;
|
//return false;
|
||||||
// If they hit back button when app is initializing, app should exit instead of hang until initilazation (CB2-458)
|
// If they hit back button when app is initializing, app should exit instead of hang until initialization (CB2-458)
|
||||||
this.cordova.getActivity().finish();
|
this.cordova.getActivity().finish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -963,7 +963,7 @@ public class CordovaWebView extends WebView {
|
|||||||
|
|
||||||
public void hideCustomView() {
|
public void hideCustomView() {
|
||||||
// This code is adapted from the original Android Browser code, licensed under the Apache License, Version 2.0
|
// This code is adapted from the original Android Browser code, licensed under the Apache License, Version 2.0
|
||||||
Log.d(TAG, "Hidding Custom View");
|
Log.d(TAG, "Hiding Custom View");
|
||||||
if (mCustomView == null) return;
|
if (mCustomView == null) return;
|
||||||
|
|
||||||
// Hide the custom view.
|
// Hide the custom view.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user