mirror of
https://github.com/apache/cordova-android.git
synced 2025-04-19 14:58:37 +08:00
tiny fix to droidgap gen for windows
This commit is contained in:
parent
086e6ea56b
commit
bf3b38036b
3
.gitignore
vendored
3
.gitignore
vendored
@ -3,4 +3,5 @@ gen
|
|||||||
assets/www/phonegap.js
|
assets/www/phonegap.js
|
||||||
local.properties
|
local.properties
|
||||||
framework/phonegap.jar
|
framework/phonegap.jar
|
||||||
framework/bin
|
framework/bin
|
||||||
|
framework/assets/www/.DS_Store
|
||||||
|
@ -2073,8 +2073,9 @@ function Notification() {
|
|||||||
* @param {String} [buttonLabel="OK"] Label of the close button (default: OK)
|
* @param {String} [buttonLabel="OK"] Label of the close button (default: OK)
|
||||||
*/
|
*/
|
||||||
Notification.prototype.alert = function(message, title, buttonLabel) {
|
Notification.prototype.alert = function(message, title, buttonLabel) {
|
||||||
// Default is to use a browser alert; this will use "index.html" as the title though
|
var _title = (title || "Alert");
|
||||||
alert(message);
|
var _buttonLabel = (buttonLabel || "OK");
|
||||||
|
PhoneGap.execAsync(null, null, "Notification", "alert", [message,_title,_buttonLabel]);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,7 +21,7 @@ class Create < Classic
|
|||||||
@path = File.join(path, '..', "#{ @name }_android")
|
@path = File.join(path, '..', "#{ @name }_android")
|
||||||
@www = path
|
@www = path
|
||||||
@pkg = "com.phonegap.#{ @name }"
|
@pkg = "com.phonegap.#{ @name }"
|
||||||
@android_sdk_path = Dir.getwd[0,1] != "/" ? `android-sdk-path.bat android.bat`.gsub('\\tools','').gsub('\\', '\\\\\\\\') : `which android`.gsub('/tools/android','')
|
@android_sdk_path = Dir.getwd[0,1] != "/" ? `android-sdk-path.bat android.bat`.gsub('\\tools','').gsub('\\', '\\\\\\\\') : `which android`.gsub(/\/tools\/android$/,'').chomp
|
||||||
@android_dir = File.expand_path(File.dirname(__FILE__).gsub('lib',''))
|
@android_dir = File.expand_path(File.dirname(__FILE__).gsub('lib',''))
|
||||||
@framework_dir = File.join(@android_dir, "framework")
|
@framework_dir = File.join(@android_dir, "framework")
|
||||||
@icon = File.join(@www, 'icon.png')
|
@icon = File.join(@www, 'icon.png')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user