Compare commits

...

10 Commits

Author SHA1 Message Date
Andrew Grieve
e5b0157971 Set VERSION to 3.1.0 (via coho) 2013-10-02 12:40:50 -04:00
Andrew Grieve
847b6fe7c9 Update JS snapshot to version 3.1.0 (via coho) 2013-10-02 12:40:49 -04:00
Joe Bowser
133c2dc902 CB-4961: shell.js returns the full path on ls, rebuilding the full path isn't really needed 2013-09-30 16:01:59 -07:00
Andrew Grieve
5592765f04 [CB-4892] Fix create script only escaping the first space instead of all spaces.
(cherry picked from commit 2d88a726b7)
2013-09-23 10:17:14 +02:00
Andrew Grieve
4441215e4c Fix update script to clobber cordova.js file (missing -f) 2013-09-19 15:48:15 -04:00
Andrew Grieve
734d4d3147 Add missing copyright header for Whitelist.java.
(cherry picked from commit b7ede8f9ba)
2013-09-17 14:21:20 -04:00
Andrew Grieve
d269b54aad [CB-4832] Add 3.1.0 RELEASENOTES.md
(cherry picked from commit 15f36cc19d)
2013-09-17 13:09:24 -04:00
Andrew Grieve
495ca45f76 Set VERSION to 3.1.0-rc1 (via coho) 2013-09-17 11:03:50 -04:00
Andrew Grieve
42a6e7972a Update JS snapshot to version 3.1.0-rc1 (via coho) 2013-09-17 11:03:50 -04:00
Joe Bowser
52d0a4fa78 Updating Android Version to RC1 2013-09-16 15:21:10 -07:00
7 changed files with 385 additions and 720 deletions

54
RELEASENOTES.md Normal file
View File

@ -0,0 +1,54 @@
<!--
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
-->
## Release Notes for Cordova (Android) ##
### 3.1.0 (Sept 2013) ###
55 commits from 9 authors. Highlights include:
* [CB-4817] Remove unused assets in project template.
* Fail fast in create script if package name is not com.foo.bar.
* [CB-4782] Convert ApplicationInfo.java -> appinfo.js
* [CB-4766] Deprecated JSONUtils.java (moved into plugins)
* [CB-4765] Deprecated ExifHelper.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-4725] Add CordovaWebView.CORDOVA_VERSION constant
* Incremeting version check for Android 4.3 API Level 18
* [CB-3542] rewrote cli tooling scripts in node
* Allow CordovaChromeClient subclasses access to CordovaInterface and CordovaWebView members
* Refactor CordovaActivity.init so that subclasses can easily override factory methods for webview objects
* [CB-4652] Allow default project template to be overridden on create
* Tweak the online bridge to not send excess online events.
* [CB-4495] Modify start-emulator script to exit immediately on a fatal emulator error.
* Log WebView IOExceptions only when they are not 404s
* Use a higher threshold for slow exec() warnings when debugger is attached.
* Fix data URI decoding in CordovaResourceApi
* [CB-3819] Made it easier to set SplashScreen delay.
* [CB-4013] Fixed loadUrlTimeoutValue preference.
* Upgrading project to Android 4.3
* [CB-4198] bin/create script should be better at handling non-word characters in activity name. Patched windows script as well.
* [CB-4198] bin/create should handle spaces in activity better.
* [CB-4096] Implemented new unified whitelist for android
* [CB-3384] Fix thread assertion when plugins remap URIs
* [CB-4133] Add main thread warning for plugins that run too long
* [CB-3384] Use the ExposedJsApi to detect webCore thread instead of IceCreamCordovaWebViewClient.

View File

@ -1 +1 @@
dev 3.1.0

View File

@ -65,14 +65,15 @@ function ensureJarIsBuilt(version, target_api) {
} }
function copyJsAndJar(projectPath, version) { function copyJsAndJar(projectPath, version) {
shell.cp(path.join(ROOT, 'framework', 'assets', 'www', 'cordova.js'), path.join(projectPath, 'assets', 'www', 'cordova.js')); shell.cp('-f', path.join(ROOT, 'framework', 'assets', 'www', 'cordova.js'), path.join(projectPath, 'assets', 'www', 'cordova.js'));
// Don't fail if there are no old jars. // Don't fail if there are no old jars.
setShellFatal(false, function() { setShellFatal(false, function() {
shell.ls(path.join(projectPath, 'libs', 'cordova-*.jar')).forEach(function(oldJar) { shell.ls(path.join(projectPath, 'libs', 'cordova-*.jar')).forEach(function(oldJar) {
shell.rm('-f', path.join(projectPath, 'libs', oldJar)); console.log("Deleting " + oldJar);
shell.rm('-f', path.join(oldJar));
}); });
}); });
shell.cp(path.join(ROOT, 'framework', 'cordova-' + version + '.jar'), path.join(projectPath, 'libs', 'cordova-' + version + '.jar')); shell.cp('-f', path.join(ROOT, 'framework', 'cordova-' + version + '.jar'), path.join(projectPath, 'libs', 'cordova-' + version + '.jar'));
} }
function copyScripts(projectPath) { function copyScripts(projectPath) {
@ -123,7 +124,7 @@ exports.createProject = function(project_path, package_name, project_name, proje
project_template_dir : project_template_dir :
path.join(ROOT, 'bin', 'templates', 'project'); path.join(ROOT, 'bin', 'templates', 'project');
var safe_activity_name = project_name.replace(/\W/, ''); var safe_activity_name = project_name.replace(/\W/g, '');
var package_as_path = package_name.replace(/\./g, path.sep); var package_as_path = package_name.replace(/\./g, path.sep);
var activity_dir = path.join(project_path, 'src', package_as_path); var activity_dir = path.join(project_path, 'src', package_as_path);
var activity_path = path.join(activity_dir, safe_activity_name + '.java'); var activity_path = path.join(activity_dir, safe_activity_name + '.java');

View File

@ -20,6 +20,6 @@
*/ */
// Coho updates this line: // Coho updates this line:
var VERSION = '3.1.0-dev'; var VERSION = "3.1.0";
console.log(VERSION); console.log(VERSION);

File diff suppressed because it is too large Load Diff

View File

@ -61,7 +61,7 @@ public class CordovaWebView extends WebView {
public static final String TAG = "CordovaWebView"; public static final String TAG = "CordovaWebView";
public static final String CORDOVA_VERSION = "3.1.0-dev"; public static final String CORDOVA_VERSION = "3.1.0";
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>();

View File

@ -1,3 +1,21 @@
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
package org.apache.cordova; package org.apache.cordova;
import java.net.MalformedURLException; import java.net.MalformedURLException;