Compare commits

..

4 Commits

Author SHA1 Message Date
Andrew Grieve
8d5e2e19e3 Change create script to use Cordova as a library. 2013-10-30 12:34:17 -04:00
Andrew Grieve
6859a459a1 Remove Application settings from framework/AndroidManifest.xml
They aren't needed since framework is a library.
2013-10-30 12:34:17 -04:00
Carlos Santana
41ed18684d CB-5209 Win: Cannot build Android app if project path contains spaces 2013-10-29 16:29:19 -04:00
Joe Bowser
96d4a22215 CB-5209: Dirty, Dirty Fix for Building. This works, but needs to be prettier. 2013-10-29 14:27:46 -04:00
18 changed files with 114 additions and 182 deletions

View File

@@ -1 +1 @@
3.2.0 3.2.0-dev

View File

@@ -20,20 +20,17 @@
*/ */
var path = require('path'); var path = require('path');
var create = require('./lib/create'); var create = require('./lib/create');
var args = process.argv; var args = require('./lib/simpleargs').getArgs(process.argv);
// Support basic help commands if (args['--help'] || args._.length === 0) {
if(args.length < 3 || (args[2] == '--help' || args[2] == '/?' || args[2] == '-h' || console.log('Usage: ' + path.relative(process.cwd(), path.join(__dirname, 'create')) + ' <path_to_new_project> <package_name> <project_name> [<template_path>] [--shared]');
args[2] == 'help' || args[2] == '-help' || args[2] == '/help')) {
console.log('Usage: ' + path.relative(process.cwd(), path.join(__dirname, 'create')) + ' <path_to_new_project> <package_name> <project_name>');
console.log(' <path_to_new_project>: Path to your new Cordova Android project'); console.log(' <path_to_new_project>: Path to your new Cordova Android project');
console.log(' <package_name>: Package name, following reverse-domain style convention'); console.log(' <package_name>: Package name, following reverse-domain style convention');
console.log(' <project_name>: Project name'); console.log(' <project_name>: Project name');
console.log(' <template_path>: Path to a custom application template to use');
console.log(' --shared will use the CordovaLib project directly instead of making a copy.');
process.exit(1); process.exit(1);
} else {
create.createProject(args[2], args[3], args[4], args[5]).done(null, function(err) {
console.error(err);
process.exit(2);
});
} }
create.createProject(args._[0], args._[1], args._[2], args._[3], args['--shared']).done();

View File

@@ -29,14 +29,13 @@ var shell = require('shelljs'),
// Returns a promise. // Returns a promise.
function exec(command, opt_cwd) { function exec(command, opt_cwd) {
var d = Q.defer(); var d = Q.defer();
try { console.log('Running: ' + command);
child_process.exec(command, { cwd: opt_cwd }, function(err, stdout, stderr) { child_process.exec(command, { cwd: opt_cwd }, function(err, stdout, stderr) {
if (err) d.reject(err); stdout && console.log(stdout);
else d.resolve(stdout); stderr && console.error(stderr);
}); if (err) d.reject(err);
} catch(e) { else d.resolve(stdout);
return Q.reject('Command error on execution: ' + command + '\n' + e); });
}
return d.promise; return d.promise;
} }
@@ -47,32 +46,45 @@ function setShellFatal(value, func) {
shell.config.fatal = oldVal; shell.config.fatal = oldVal;
} }
// Returns a promise. function getFrameworkDir(projectPath, shared) {
function ensureJarIsBuilt(version, target_api) { return shared ? path.join(ROOT, 'framework') : path.join(projectPath, 'CordovaLib');
var isDevVersion = /-dev$/.test(version);
if (isDevVersion || !fs.existsSync(path.join(ROOT, 'framework', 'cordova-' + version + '.jar')) && fs.existsSync(path.join(ROOT, 'framework'))) {
var valid_target = check_reqs.get_target();
console.log('Building cordova-' + version + '.jar');
// update the cordova-android framework for the desired target
return exec('android --silent update lib-project --target "' + target_api + '" --path "' + path.join(ROOT, 'framework') + '"')
.then(function() {
// compile cordova.js and cordova.jar
return exec('ant jar', path.join(ROOT, 'framework'));
});
}
return Q();
} }
function copyJsAndJar(projectPath, version) { function copyJsAndLibrary(projectPath, shared, projectName) {
var nestedCordovaLibPath = getFrameworkDir(projectPath, false);
shell.cp('-f', 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) {
console.log("Deleting " + oldJar); console.log("Deleting " + oldJar);
shell.rm('-f', path.join(oldJar)); shell.rm('-f', oldJar);
}); });
// Delete old library project if it existed.
if (shared) {
shell.rm('-rf', nestedCordovaLibPath);
} else {
// Delete only the src, since eclipse can't handle its .project file being deleted.
shell.rm('-rf', path.join(nestedCordovaLibPath, 'src'));
}
}); });
shell.cp('-f', path.join(ROOT, 'framework', 'cordova-' + version + '.jar'), path.join(projectPath, 'libs', 'cordova-' + version + '.jar')); if (!shared) {
shell.mkdir('-p', nestedCordovaLibPath);
shell.cp('-f', path.join(ROOT, 'framework', 'AndroidManifest.xml'), nestedCordovaLibPath);
shell.cp('-f', path.join(ROOT, 'framework', 'project.properties'), nestedCordovaLibPath);
shell.cp('-r', path.join(ROOT, 'framework', 'src'), nestedCordovaLibPath);
// Create an eclipse project file and set the name of it to something unique.
// Without this, you can't import multiple CordovaLib projects into the same workspace.
var eclipseProjectFilePath = path.join(nestedCordovaLibPath, '.project');
if (!fs.existsSync(eclipseProjectFilePath)) {
var data = '<?xml version="1.0" encoding="UTF-8"?><projectDescription><name>' + projectName + '-' + 'CordovaLib</name></projectDescription>';
fs.writeFileSync(eclipseProjectFilePath, data, 'utf8');
}
}
}
function runAndroidUpdate(projectPath, target_api, shared) {
var targetFrameworkDir = getFrameworkDir(projectPath, shared);
return exec('android update project --subprojects --path "' + projectPath + '" --target ' + target_api + ' --library "' + path.relative(projectPath, targetFrameworkDir) + '"');
} }
function copyScripts(projectPath) { function copyScripts(projectPath) {
@@ -104,7 +116,7 @@ function copyScripts(projectPath) {
* Returns a promise. * Returns a promise.
*/ */
exports.createProject = function(project_path, package_name, project_name, project_template_dir) { exports.createProject = function(project_path, package_name, project_name, project_template_dir, use_shared_project) {
var VERSION = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim(); var VERSION = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim();
// Set default values for path, package and name // Set default values for path, package and name
@@ -142,9 +154,6 @@ exports.createProject = function(project_path, package_name, project_name, proje
console.log('\tName: ' + project_name); console.log('\tName: ' + project_name);
console.log('\tAndroid target: ' + target_api); console.log('\tAndroid target: ' + target_api);
// build from source. distro should have these files
return ensureJarIsBuilt(VERSION, target_api);
}).then(function() {
console.log('Copying template files...'); console.log('Copying template files...');
setShellFatal(true, function() { setShellFatal(true, function() {
@@ -156,7 +165,7 @@ exports.createProject = function(project_path, package_name, project_name, proje
// copy cordova.js, cordova.jar and res/xml // copy cordova.js, cordova.jar and res/xml
shell.cp('-r', path.join(ROOT, 'framework', 'res', 'xml'), path.join(project_path, 'res')); shell.cp('-r', path.join(ROOT, 'framework', 'res', 'xml'), path.join(project_path, 'res'));
copyJsAndJar(project_path, VERSION); copyJsAndLibrary(project_path, use_shared_project, safe_activity_name);
// interpolate the activity name and package // interpolate the activity name and package
shell.mkdir('-p', activity_dir); shell.mkdir('-p', activity_dir);
@@ -172,8 +181,7 @@ exports.createProject = function(project_path, package_name, project_name, proje
copyScripts(project_path); copyScripts(project_path);
}); });
// Link it to local android install. // Link it to local android install.
console.log('Running "android update project"'); return runAndroidUpdate(project_path, target_api, use_shared_project);
return exec('android --silent update project --target "'+target_api+'" --path "'+ project_path+'"');
}).then(function() { }).then(function() {
console.log('Project successfully created.'); console.log('Project successfully created.');
}); });
@@ -181,16 +189,17 @@ exports.createProject = function(project_path, package_name, project_name, proje
// Returns a promise. // Returns a promise.
exports.updateProject = function(projectPath) { exports.updateProject = function(projectPath) {
var version = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim();
// Check that requirements are met and proper targets are installed // Check that requirements are met and proper targets are installed
return check_reqs.run() return check_reqs.run()
.then(function() { .then(function() {
var version = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim();
var target_api = check_reqs.get_target(); var target_api = check_reqs.get_target();
return ensureJarIsBuilt(version, target_api); copyJsAndLibrary(projectPath, false, null);
}).then(function() {
copyJsAndJar(projectPath, version);
copyScripts(projectPath); copyScripts(projectPath);
console.log('Android project is now at version ' + version); return runAndroidUpdate(projectPath, target_api, false)
.then(function() {
console.log('Android project is now at version ' + version);
});
}); });
}; };

32
bin/lib/simpleargs.js Normal file
View File

@@ -0,0 +1,32 @@
/*
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.
*/
exports.getArgs = function(argv) {
var ret = {};
var posArgs = [];
for (var i = 2, arg; arg = argv[i] || i < argv.length; ++i) {
if (/^--/.exec(arg)) {
ret[arg] = true;
} else {
posArgs.push(arg);
}
}
ret._ = posArgs;
return ret;
};

View File

@@ -5,9 +5,9 @@
:: to you under the Apache License, Version 2.0 (the :: to you under the Apache License, Version 2.0 (the
:: "License"); you may not use this file except in compliance :: "License"); you may not use this file except in compliance
:: with the License. You may obtain a copy of the License at :: with the License. You may obtain a copy of the License at
:: ::
:: http://www.apache.org/licenses/LICENSE-2.0 :: http://www.apache.org/licenses/LICENSE-2.0
:: ::
:: Unless required by applicable law or agreed to in writing, :: Unless required by applicable law or agreed to in writing,
:: software distributed under the License is distributed on an :: software distributed under the License is distributed on an
:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +18,7 @@
@ECHO OFF @ECHO OFF
SET script_path="%~dp0build" SET script_path="%~dp0build"
IF EXIST %script_path% ( IF EXIST %script_path% (
node "%script_path%" %* node %script_path% %*
) ELSE ( ) ELSE (
ECHO. ECHO.
ECHO ERROR: Could not find 'build' script in 'cordova' folder, aborting...>&2 ECHO ERROR: Could not find 'build' script in 'cordova' folder, aborting...>&2

View File

@@ -5,9 +5,9 @@
:: to you under the Apache License, Version 2.0 (the :: to you under the Apache License, Version 2.0 (the
:: "License"); you may not use this file except in compliance :: "License"); you may not use this file except in compliance
:: with the License. You may obtain a copy of the License at :: with the License. You may obtain a copy of the License at
:: ::
:: http://www.apache.org/licenses/LICENSE-2.0 :: http://www.apache.org/licenses/LICENSE-2.0
:: ::
:: Unless required by applicable law or agreed to in writing, :: Unless required by applicable law or agreed to in writing,
:: software distributed under the License is distributed on an :: software distributed under the License is distributed on an
:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +18,7 @@
@ECHO OFF @ECHO OFF
SET script_path="%~dp0clean" SET script_path="%~dp0clean"
IF EXIST %script_path% ( IF EXIST %script_path% (
node "%script_path%" %* node %script_path% %*
) ELSE ( ) ELSE (
ECHO. ECHO.
ECHO ERROR: Could not find 'clean' script in 'cordova' folder, aborting...>&2 ECHO ERROR: Could not find 'clean' script in 'cordova' folder, aborting...>&2

View File

@@ -37,10 +37,10 @@ module.exports.run = function(build_type) {
var cmd; var cmd;
switch(build_type) { switch(build_type) {
case '--debug' : case '--debug' :
cmd = 'ant debug -f ' + path.join(ROOT, 'build.xml'); cmd = 'ant debug -f "' + path.join(ROOT, 'build.xml') + '"';
break; break;
case '--release' : case '--release' :
cmd = 'ant release -f ' + path.join(ROOT, 'build.xml'); cmd = 'ant release -f "' + path.join(ROOT, 'build.xml') + '"';
break; break;
case '--nobuild' : case '--nobuild' :
console.log('Skipping build...'); console.log('Skipping build...');

View File

@@ -28,7 +28,7 @@ var exec = require('./exec'),
* Returns a promise. * Returns a promise.
*/ */
module.exports.run = function() { module.exports.run = function() {
return exec('ant clean -f ' + path.join(ROOT, 'build.xml')); return exec('ant clean -f "' + path.join(ROOT, 'build.xml') + '"');
} }
module.exports.help = function() { module.exports.help = function() {

View File

@@ -5,9 +5,9 @@
:: to you under the Apache License, Version 2.0 (the :: to you under the Apache License, Version 2.0 (the
:: "License"); you may not use this file except in compliance :: "License"); you may not use this file except in compliance
:: with the License. You may obtain a copy of the License at :: with the License. You may obtain a copy of the License at
:: ::
:: http://www.apache.org/licenses/LICENSE-2.0 :: http://www.apache.org/licenses/LICENSE-2.0
:: ::
:: Unless required by applicable law or agreed to in writing, :: Unless required by applicable law or agreed to in writing,
:: software distributed under the License is distributed on an :: software distributed under the License is distributed on an
:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +18,7 @@
@ECHO OFF @ECHO OFF
SET script_path="%~dp0log" SET script_path="%~dp0log"
IF EXIST %script_path% ( IF EXIST %script_path% (
node "%script_path%" %* node %script_path% %*
) ELSE ( ) ELSE (
ECHO. ECHO.
ECHO ERROR: Could not find 'log' script in 'cordova' folder, aborting...>&2 ECHO ERROR: Could not find 'log' script in 'cordova' folder, aborting...>&2

View File

@@ -5,9 +5,9 @@
:: to you under the Apache License, Version 2.0 (the :: to you under the Apache License, Version 2.0 (the
:: "License"); you may not use this file except in compliance :: "License"); you may not use this file except in compliance
:: with the License. You may obtain a copy of the License at :: with the License. You may obtain a copy of the License at
:: ::
:: http://www.apache.org/licenses/LICENSE-2.0 :: http://www.apache.org/licenses/LICENSE-2.0
:: ::
:: Unless required by applicable law or agreed to in writing, :: Unless required by applicable law or agreed to in writing,
:: software distributed under the License is distributed on an :: software distributed under the License is distributed on an
:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +18,7 @@
@ECHO OFF @ECHO OFF
SET script_path="%~dp0run" SET script_path="%~dp0run"
IF EXIST %script_path% ( IF EXIST %script_path% (
node "%script_path%" %* node %script_path% %*
) ELSE ( ) ELSE (
ECHO. ECHO.
ECHO ERROR: Could not find 'run' script in 'cordova' folder, aborting...>&2 ECHO ERROR: Could not find 'run' script in 'cordova' folder, aborting...>&2

View File

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

View File

@@ -5,9 +5,9 @@
:: to you under the Apache License, Version 2.0 (the :: to you under the Apache License, Version 2.0 (the
:: "License"); you may not use this file except in compliance :: "License"); you may not use this file except in compliance
:: with the License. You may obtain a copy of the License at :: with the License. You may obtain a copy of the License at
:: ::
:: http://www.apache.org/licenses/LICENSE-2.0 :: http://www.apache.org/licenses/LICENSE-2.0
:: ::
:: Unless required by applicable law or agreed to in writing, :: Unless required by applicable law or agreed to in writing,
:: software distributed under the License is distributed on an :: software distributed under the License is distributed on an
:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -18,7 +18,7 @@
@ECHO OFF @ECHO OFF
SET script_path="%~dp0version" SET script_path="%~dp0version"
IF EXIST %script_path% ( IF EXIST %script_path% (
node "%script_path%" %* node %script_path% %*
) ELSE ( ) ELSE (
ECHO. ECHO.
ECHO ERROR: Could not find 'version' script in 'cordova' folder, aborting...>&2 ECHO ERROR: Could not find 'version' script in 'cordova' folder, aborting...>&2

View File

@@ -19,18 +19,13 @@
under the License. under the License.
*/ */
var path = require('path'); var path = require('path');
var args = process.argv;
var create = require('./lib/create'); var create = require('./lib/create');
var args = require('./lib/simpleargs').getArgs(process.argv);
// Support basic help commands if (args['--help'] || args._.length === 0) {
if(args.length < 3 || (args[2] == '--help' || args[2] == '/?' || args[2] == '-h' || console.log('Usage: ' + path.relative(process.cwd(), path.join(__dirname, 'update')) + ' <path_to_project> [--shared]');
args[2] == 'help' || args[2] == '-help' || args[2] == '/help')) { console.log(' --shared will use the CordovaLib project directly instead of making a copy.');
console.log('Usage: ' + path.relative(process.cwd(), path.join(__dirname, 'update')) + ' <path_to_project>');
process.exit(1); process.exit(1);
} else {
create.updateProject(args[2]).done(null, function(err) {
console.error(err);
process.exit(2);
});
} }
create.updateProject(args._[0], args['--shared']).done();

View File

@@ -17,43 +17,7 @@
specific language governing permissions and limitations specific language governing permissions and limitations
under the License. under the License.
--> -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.apache.cordova" android:versionName="1.0" android:versionCode="1"> package="org.apache.cordova" android:versionName="1.0" android:versionCode="1">
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:resizeable="true"
android:anyDensity="true"
/>
<!-- android:xlargeScreens="true" screen supported only after Android-9 -->
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.RECORD_VIDEO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<application android:icon="@drawable/icon" android:label="@string/app_name"
android:debuggable="true">
<activity android:name="org.apache.cordova.DroidGap" android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="8" /> <uses-sdk android:minSdkVersion="8" />
</manifest> </manifest>

View File

@@ -1,5 +1,5 @@
// Platform: android // Platform: android
// 3.2.0 // 3.2.0-dev-5ad41a7
/* /*
Licensed to the Apache Software Foundation (ASF) under one Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file or more contributor license agreements. See the NOTICE file
@@ -19,7 +19,7 @@
under the License. under the License.
*/ */
;(function() { ;(function() {
var CORDOVA_JS_BUILD_LABEL = '3.2.0'; var CORDOVA_JS_BUILD_LABEL = '3.2.0-dev-5ad41a7';
// file: lib/scripts/require.js // file: lib/scripts/require.js
/*jshint -W079 */ /*jshint -W079 */
@@ -1074,36 +1074,6 @@ module.exports = androidExec;
}); });
// file: lib/common/exec/proxy.js
define("cordova/exec/proxy", function(require, exports, module) {
// internal map of proxy function
var CommandProxyMap = {};
module.exports = {
// example: cordova.commandProxy.add("Accelerometer",{getCurrentAcceleration: function(successCallback, errorCallback, options) {...},...);
add:function(id,proxyObj) {
console.log("adding proxy for " + id);
CommandProxyMap[id] = proxyObj;
return proxyObj;
},
// cordova.commandProxy.remove("Accelerometer");
remove:function(id) {
var proxy = CommandProxyMap[id];
delete CommandProxyMap[id];
CommandProxyMap[id] = null;
return proxy;
},
get:function(service,action) {
return ( CommandProxyMap[service] ? CommandProxyMap[service][action] : null );
}
};
});
// file: lib/common/init.js // file: lib/common/init.js
define("cordova/init", function(require, exports, module) { define("cordova/init", function(require, exports, module) {

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.2.0"; public static final String CORDOVA_VERSION = "3.2.0-dev";
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,20 +1,3 @@
# 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.
-optimizationpasses 5 -optimizationpasses 5
-dontusemixedcaseclassnames -dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclasses

View File

@@ -1,22 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
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.
-->
<resources> <resources>
<string name="app_name">CordovaTests</string> <string name="app_name">CordovaTests</string>
</resources> </resources>