Tagging to 1.9.0

This commit is contained in:
macdonst 2012-06-29 15:55:03 -04:00
parent ae7a550a09
commit 2a8b9ab75e
6 changed files with 46 additions and 45 deletions

View File

@ -1 +1 @@
1.9.0rc1 1.9.0

View File

@ -23,7 +23,7 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> <meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>PhoneGap</title> <title>PhoneGap</title>
<link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title"> <link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title">
<script type="text/javascript" charset="utf-8" src="cordova-1.9.0rc1.js"></script> <script type="text/javascript" charset="utf-8" src="cordova-1.9.0.js"></script>
<script type="text/javascript" charset="utf-8" src="main.js"></script> <script type="text/javascript" charset="utf-8" src="main.js"></script>
</head> </head>

View File

@ -1,6 +1,6 @@
// commit 25033fceac7c800623f1f16881b784d19eba69cc // commit 5647225e12e18e15aefc33b151430d9a3804d9ea
// File generated at :: Thu Jun 21 2012 10:45:32 GMT-0700 (PDT) // File generated at :: Fri Jun 29 2012 12:32:24 GMT-0400 (EDT)
/* /*
Licensed to the Apache Software Foundation (ASF) under one Licensed to the Apache Software Foundation (ASF) under one

View File

@ -19,7 +19,7 @@
<html> <html>
<head> <head>
<title></title> <title></title>
<script src="cordova-1.9.0rc1.js"></script> <script src="cordova-1.9.0.js"></script>
</head> </head>
<body> <body>

View File

@ -54,10 +54,10 @@ public class CordovaWebView extends WebView {
private HashMap<String, Boolean> whiteListCache = new HashMap<String, Boolean>(); private HashMap<String, Boolean> whiteListCache = new HashMap<String, Boolean>();
private ArrayList<Integer> keyDownCodes = new ArrayList<Integer>(); private ArrayList<Integer> keyDownCodes = new ArrayList<Integer>();
private ArrayList<Integer> keyUpCodes = new ArrayList<Integer>(); private ArrayList<Integer> keyUpCodes = new ArrayList<Integer>();
public PluginManager pluginManager; public PluginManager pluginManager;
public CallbackServer callbackServer; public CallbackServer callbackServer;
/** Actvities and other important classes **/ /** Actvities and other important classes **/
private CordovaInterface cordova; private CordovaInterface cordova;
@ -65,7 +65,7 @@ public class CordovaWebView extends WebView {
@SuppressWarnings("unused") @SuppressWarnings("unused")
private CordovaChromeClient chromeClient; private CordovaChromeClient chromeClient;
//This is for the polyfil history //This is for the polyfil history
private String url; private String url;
String baseUrl; String baseUrl;
private Stack<String> urls = new Stack<String>(); private Stack<String> urls = new Stack<String>();
@ -83,7 +83,7 @@ public class CordovaWebView extends WebView {
/** /**
* Constructor. * Constructor.
* *
* @param context * @param context
*/ */
public CordovaWebView(Context context) { public CordovaWebView(Context context) {
@ -102,7 +102,7 @@ public class CordovaWebView extends WebView {
/** /**
* Constructor. * Constructor.
* *
* @param context * @param context
* @param attrs * @param attrs
*/ */
@ -124,11 +124,11 @@ public class CordovaWebView extends WebView {
/** /**
* Constructor. * Constructor.
* *
* @param context * @param context
* @param attrs * @param attrs
* @param defStyle * @param defStyle
* *
*/ */
public CordovaWebView(Context context, AttributeSet attrs, int defStyle) { public CordovaWebView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle); super(context, attrs, defStyle);
@ -148,7 +148,7 @@ public class CordovaWebView extends WebView {
/** /**
* Constructor. * Constructor.
* *
* @param context * @param context
* @param attrs * @param attrs
* @param defStyle * @param defStyle
@ -211,7 +211,7 @@ public class CordovaWebView extends WebView {
/** /**
* Set the WebViewClient. * Set the WebViewClient.
* *
* @param client * @param client
*/ */
public void setWebViewClient(CordovaWebViewClient client) { public void setWebViewClient(CordovaWebViewClient client) {
@ -221,7 +221,7 @@ public class CordovaWebView extends WebView {
/** /**
* Set the WebChromeClient. * Set the WebChromeClient.
* *
* @param client * @param client
*/ */
public void setWebChromeClient(CordovaChromeClient client) { public void setWebChromeClient(CordovaChromeClient client) {
@ -231,7 +231,7 @@ public class CordovaWebView extends WebView {
/** /**
* Add entry to approved list of URLs (whitelist) * Add entry to approved list of URLs (whitelist)
* *
* @param origin URL regular expression to allow * @param origin URL regular expression to allow
* @param subdomains T=include all subdomains under origin * @param subdomains T=include all subdomains under origin
*/ */
@ -269,7 +269,7 @@ public class CordovaWebView extends WebView {
/** /**
* Determine if URL is in approved list of URLs to load. * Determine if URL is in approved list of URLs to load.
* *
* @param url * @param url
* @return * @return
*/ */
@ -297,7 +297,7 @@ public class CordovaWebView extends WebView {
/** /**
* Load the url into the webview. * Load the url into the webview.
* *
* @param url * @param url
*/ */
@Override @Override
@ -323,7 +323,7 @@ public class CordovaWebView extends WebView {
/** /**
* Load the url into the webview after waiting for period of time. * Load the url into the webview after waiting for period of time.
* This is used to display the splashscreen for certain amount of time. * This is used to display the splashscreen for certain amount of time.
* *
* @param url * @param url
* @param time The number of ms to wait before loading webview * @param time The number of ms to wait before loading webview
*/ */
@ -342,7 +342,7 @@ public class CordovaWebView extends WebView {
/** /**
* Load the url into the webview. * Load the url into the webview.
* *
* @param url * @param url
*/ */
public void loadUrlIntoView(final String url) { public void loadUrlIntoView(final String url) {
@ -411,7 +411,7 @@ public class CordovaWebView extends WebView {
/** /**
* Load URL in webview. * Load URL in webview.
* *
* @param url * @param url
*/ */
private void loadUrlNow(String url) { private void loadUrlNow(String url) {
@ -422,7 +422,7 @@ public class CordovaWebView extends WebView {
/** /**
* Load the url into the webview after waiting for period of time. * Load the url into the webview after waiting for period of time.
* This is used to display the splashscreen for certain amount of time. * This is used to display the splashscreen for certain amount of time.
* *
* @param url * @param url
* @param time The number of ms to wait before loading webview * @param time The number of ms to wait before loading webview
*/ */
@ -449,7 +449,7 @@ public class CordovaWebView extends WebView {
/** /**
* Send JavaScript statement back to JavaScript. * Send JavaScript statement back to JavaScript.
* (This is a convenience method) * (This is a convenience method)
* *
* @param message * @param message
*/ */
public void sendJavascript(String statement) { public void sendJavascript(String statement) {
@ -459,8 +459,8 @@ public class CordovaWebView extends WebView {
} }
/** /**
* Send a message to all plugins. * Send a message to all plugins.
* *
* @param id The message id * @param id The message id
* @param data The message data * @param data The message data
*/ */
@ -470,8 +470,8 @@ public class CordovaWebView extends WebView {
} }
} }
/** /**
* Returns the top url on the stack without removing it from * Returns the top url on the stack without removing it from
* the stack. * the stack.
*/ */
public String peekAtUrlStack() { public String peekAtUrlStack() {
@ -483,7 +483,7 @@ public class CordovaWebView extends WebView {
/** /**
* Add a url to the stack * Add a url to the stack
* *
* @param url * @param url
*/ */
public void pushUrl(String url) { public void pushUrl(String url) {
@ -492,7 +492,7 @@ public class CordovaWebView extends WebView {
/** /**
* Go to previous page in history. (We manage our own history) * Go to previous page in history. (We manage our own history)
* *
* @return true if we went back, false if we are already at top * @return true if we went back, false if we are already at top
*/ */
public boolean backHistory() { public boolean backHistory() {
@ -517,7 +517,7 @@ public class CordovaWebView extends WebView {
/** /**
* Return true if there is a history item. * Return true if there is a history item.
* *
* @return * @return
*/ */
public boolean canGoBack() { public boolean canGoBack() {
@ -532,7 +532,7 @@ public class CordovaWebView extends WebView {
/** /**
* Load the specified URL in the Cordova webview or a new browser instance. * Load the specified URL in the Cordova webview or a new browser instance.
* *
* NOTE: If openExternal is false, only URLs listed in whitelist can be loaded. * NOTE: If openExternal is false, only URLs listed in whitelist can be loaded.
* *
* @param url The url to load. * @param url The url to load.
@ -625,6 +625,7 @@ public class CordovaWebView extends WebView {
String value = xml.getAttributeValue(null, "value"); String value = xml.getAttributeValue(null, "value");
LOG.i("CordovaLog", "Found preference for %s=%s", name, value); LOG.i("CordovaLog", "Found preference for %s=%s", name, value);
Log.d("CordovaLog", "Found preference for " + name + "=" + value);
// Save preferences in Intent // Save preferences in Intent
this.cordova.getActivity().getIntent().putExtra(name, value); this.cordova.getActivity().getIntent().putExtra(name, value);
@ -640,7 +641,7 @@ public class CordovaWebView extends WebView {
} }
// Init preferences // Init preferences
if ("true".equals(this.getProperty("useBrowserHistory", "true"))) { if ("true".equals(this.getProperty("useBrowserHistory", "false"))) {
this.useBrowserHistory = true; this.useBrowserHistory = true;
} }
else { else {
@ -655,7 +656,7 @@ public class CordovaWebView extends WebView {
/** /**
* Get string property for activity. * Get string property for activity.
* *
* @param name * @param name
* @param defaultValue * @param defaultValue
* @return * @return
@ -671,11 +672,11 @@ public class CordovaWebView extends WebView {
} }
return p.toString(); return p.toString();
} }
/* /*
* onKeyDown * onKeyDown
*/ */
@Override @Override
public boolean onKeyDown(int keyCode, KeyEvent event) public boolean onKeyDown(int keyCode, KeyEvent event)
{ {
@ -700,11 +701,11 @@ public class CordovaWebView extends WebView {
} }
return false; return false;
} }
@Override @Override
public boolean onKeyUp(int keyCode, KeyEvent event) public boolean onKeyUp(int keyCode, KeyEvent event)
{ {
Log.d(TAG, "KeyDown has been triggered on the view"); Log.d(TAG, "KeyDown has been triggered on the view");
// If back key // If back key
@ -719,7 +720,7 @@ 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 behaviour
else { else {
//this.activityState = ACTIVITY_EXITING; //this.activityState = ACTIVITY_EXITING;
return false; return false;
@ -741,16 +742,16 @@ public class CordovaWebView extends WebView {
//What the hell should this do? //What the hell should this do?
} }
Log.d(TAG, "KeyUp has been triggered on the view"); Log.d(TAG, "KeyUp has been triggered on the view");
return false; return false;
} }
public void bindButton(boolean override) public void bindButton(boolean override)
{ {
this.bound = override; this.bound = override;
} }
public void bindButton(String button, boolean override) { public void bindButton(String button, boolean override) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
if (button.compareTo("volumeup")==0) { if (button.compareTo("volumeup")==0) {
@ -760,7 +761,7 @@ public class CordovaWebView extends WebView {
keyDownCodes.add(KeyEvent.KEYCODE_VOLUME_DOWN); keyDownCodes.add(KeyEvent.KEYCODE_VOLUME_DOWN);
} }
} }
public void bindButton(int keyCode, boolean keyDown, boolean override) { public void bindButton(int keyCode, boolean keyDown, boolean override) {
if(keyDown) if(keyDown)
{ {
@ -771,7 +772,7 @@ public class CordovaWebView extends WebView {
keyUpCodes.add(keyCode); keyUpCodes.add(keyCode);
} }
} }
public boolean isBackButtonBound() public boolean isBackButtonBound()
{ {
return this.bound; return this.bound;

View File

@ -38,7 +38,7 @@ import android.telephony.TelephonyManager;
public class Device extends Plugin { public class Device extends Plugin {
public static final String TAG = "Device"; public static final String TAG = "Device";
public static String cordovaVersion = "1.9.0rc1"; // Cordova version public static String cordovaVersion = "1.9.0"; // Cordova version
public static String platform = "Android"; // Device OS public static String platform = "Android"; // Device OS
public static String uuid; // Device UUID public static String uuid; // Device UUID