Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28F6FDC4A for ; Mon, 3 Sep 2012 18:32:58 +0000 (UTC) Received: (qmail 24015 invoked by uid 500); 3 Sep 2012 18:32:58 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 23996 invoked by uid 500); 3 Sep 2012 18:32:58 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 23989 invoked by uid 99); 3 Sep 2012 18:32:58 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 18:32:58 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id AEF332482A; Mon, 3 Sep 2012 18:32:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: macdonst@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: android commit: CB-1304: Update PhoneGap References to Apache Cordova Message-Id: <20120903183257.AEF332482A@tyr.zones.apache.org> Date: Mon, 3 Sep 2012 18:32:57 +0000 (UTC) Updated Branches: refs/heads/master dc40d8afa -> 9d0c5349b CB-1304: Update PhoneGap References to Apache Cordova Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/9d0c5349 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/9d0c5349 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/9d0c5349 Branch: refs/heads/master Commit: 9d0c5349bbd228bbd01d2ae026215e410b2e0b2f Parents: dc40d8a Author: Simon MacDonald Authored: Mon Sep 3 14:10:00 2012 -0400 Committer: Simon MacDonald Committed: Mon Sep 3 14:31:35 2012 -0400 ---------------------------------------------------------------------- README.md | 6 +- framework/src/com/phonegap/api/IPlugin.java | 27 -------- framework/src/com/phonegap/api/LOG.java | 28 -------- .../src/com/phonegap/api/PhonegapActivity.java | 28 -------- framework/src/com/phonegap/api/Plugin.java | 27 -------- framework/src/com/phonegap/api/PluginManager.java | 37 ---------- framework/src/com/phonegap/api/PluginResult.java | 53 --------------- test/.project | 2 +- test/res/layout/main.xml | 2 +- .../org/apache/cordova/test/ActivityPlugin.java | 4 +- .../apache/cordova/test/CordovaActivityTest.java | 2 +- test/src/org/apache/cordova/test/CordovaTest.java | 6 +- .../cordova/test/CordovaWebViewTestActivity.java | 10 ++-- .../src/org/apache/cordova/test/GapClientTest.java | 2 +- .../org/apache/cordova/test/PluginManagerTest.java | 4 +- 15 files changed, 19 insertions(+), 219 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9d0c5349/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 9e1fe10..813633e 100755 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ Start adb logcat (console.log calls output here): Creating a new Cordova Android Project --- - ./bin/create ~/Desktop/myapp com.phonegap.special MyApp + ./bin/create ~/Desktop/myapp com.myapp.special MyApp Importing a Cordova Android Project into Eclipse ---- @@ -105,5 +105,5 @@ Further Reading --- - [http://developer.android.com](http://developer.android.com) -- [http://docs.phonegap.com](http://docs.phonegap.com) -- [http://wiki.phonegap.com](http://wiki.phonegap.com) +- [http://incubator.apache.org/cordova/](http://incubator.apache.org/cordova/) +- [http://wiki.apache.org/cordova/](http://wiki.apache.org/cordova/) http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9d0c5349/framework/src/com/phonegap/api/IPlugin.java ---------------------------------------------------------------------- diff --git a/framework/src/com/phonegap/api/IPlugin.java b/framework/src/com/phonegap/api/IPlugin.java deleted file mode 100755 index 2b8979b..0000000 --- a/framework/src/com/phonegap/api/IPlugin.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - 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 com.phonegap.api; - -/** - * Plugin interface must be implemented by any plugin classes. - * - * The execute method is called by the PluginManager. - */ -public interface IPlugin extends org.apache.cordova.api.IPlugin { -} http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9d0c5349/framework/src/com/phonegap/api/LOG.java ---------------------------------------------------------------------- diff --git a/framework/src/com/phonegap/api/LOG.java b/framework/src/com/phonegap/api/LOG.java deleted file mode 100755 index e9a37d2..0000000 --- a/framework/src/com/phonegap/api/LOG.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - 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 com.phonegap.api; - -/** - * Log to Android logging system. - * - * Log message can be a string or a printf formatted string with arguments. - * See http://developer.android.com/reference/java/util/Formatter.html - */ -public class LOG extends org.apache.cordova.api.LOG { -} http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9d0c5349/framework/src/com/phonegap/api/PhonegapActivity.java ---------------------------------------------------------------------- diff --git a/framework/src/com/phonegap/api/PhonegapActivity.java b/framework/src/com/phonegap/api/PhonegapActivity.java deleted file mode 100755 index c1b7c46..0000000 --- a/framework/src/com/phonegap/api/PhonegapActivity.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - 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 com.phonegap.api; - -import android.app.Activity; - -/** - * The Cordova activity abstract class that is extended by DroidGap. - * It is used to isolate plugin development, and remove dependency on entire Cordova library. - */ -public abstract class PhonegapActivity extends Activity implements org.apache.cordova.api.CordovaInterface { -} http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9d0c5349/framework/src/com/phonegap/api/Plugin.java ---------------------------------------------------------------------- diff --git a/framework/src/com/phonegap/api/Plugin.java b/framework/src/com/phonegap/api/Plugin.java deleted file mode 100755 index 05f32b7..0000000 --- a/framework/src/com/phonegap/api/Plugin.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - 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 com.phonegap.api; - -/** - * Plugin interface must be implemented by any plugin classes. - * - * The execute method is called by the PluginManager. - */ -public abstract class Plugin extends org.apache.cordova.api.Plugin { -} http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9d0c5349/framework/src/com/phonegap/api/PluginManager.java ---------------------------------------------------------------------- diff --git a/framework/src/com/phonegap/api/PluginManager.java b/framework/src/com/phonegap/api/PluginManager.java deleted file mode 100755 index 0497e7d..0000000 --- a/framework/src/com/phonegap/api/PluginManager.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - 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 com.phonegap.api; - -import org.apache.cordova.CordovaWebView; -import org.apache.cordova.api.CordovaInterface; - -import android.webkit.WebView; - -/** - * PluginManager is exposed to JavaScript in the Cordova WebView. - * - * Calling native plugin code can be done by calling PluginManager.exec(...) - * from JavaScript. - */ -public class PluginManager extends org.apache.cordova.api.PluginManager { - - public PluginManager(WebView app, CordovaInterface ctx) throws Exception { - super((CordovaWebView) app, ctx); - } -} http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9d0c5349/framework/src/com/phonegap/api/PluginResult.java ---------------------------------------------------------------------- diff --git a/framework/src/com/phonegap/api/PluginResult.java b/framework/src/com/phonegap/api/PluginResult.java deleted file mode 100755 index 8649135..0000000 --- a/framework/src/com/phonegap/api/PluginResult.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - 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 com.phonegap.api; - -import org.json.JSONArray; -import org.json.JSONObject; - -public class PluginResult extends org.apache.cordova.api.PluginResult { - - public PluginResult(Status status) { - super(status); - } - - public PluginResult(Status status, String message) { - super(status, message); - } - - public PluginResult(Status status, JSONArray message) { - super(status, message); - } - - public PluginResult(Status status, JSONObject message) { - super(status, message); - } - - public PluginResult(Status status, int i) { - super(status, i); - } - - public PluginResult(Status status, float f) { - super(status, f); - } - - public PluginResult(Status status, boolean b) { - super(status, b); - } -} http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9d0c5349/test/.project ---------------------------------------------------------------------- diff --git a/test/.project b/test/.project index 8f21f7f..7bacb6f 100644 --- a/test/.project +++ b/test/.project @@ -1,6 +1,6 @@ - PhoneGapViewTestActivity + CordovaViewTestActivity http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9d0c5349/test/res/layout/main.xml ---------------------------------------------------------------------- diff --git a/test/res/layout/main.xml b/test/res/layout/main.xml index 45e2d06..9b002ab 100644 --- a/test/res/layout/main.xml +++ b/test/res/layout/main.xml @@ -23,7 +23,7 @@ android:orientation="vertical" > http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9d0c5349/test/src/org/apache/cordova/test/ActivityPlugin.java ---------------------------------------------------------------------- diff --git a/test/src/org/apache/cordova/test/ActivityPlugin.java b/test/src/org/apache/cordova/test/ActivityPlugin.java index 553ef2a..805454a 100755 --- a/test/src/org/apache/cordova/test/ActivityPlugin.java +++ b/test/src/org/apache/cordova/test/ActivityPlugin.java @@ -24,8 +24,8 @@ import org.json.JSONException; import android.content.Intent; -import com.phonegap.api.Plugin; -import com.phonegap.api.PluginResult; +import org.apache.cordova.api.Plugin; +import org.apache.cordova.api.PluginResult; /** * This class provides a service. http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9d0c5349/test/src/org/apache/cordova/test/CordovaActivityTest.java ---------------------------------------------------------------------- diff --git a/test/src/org/apache/cordova/test/CordovaActivityTest.java b/test/src/org/apache/cordova/test/CordovaActivityTest.java index 766dd53..daa0271 100644 --- a/test/src/org/apache/cordova/test/CordovaActivityTest.java +++ b/test/src/org/apache/cordova/test/CordovaActivityTest.java @@ -20,7 +20,7 @@ package org.apache.cordova.test; import org.apache.cordova.CordovaWebView; -import com.phonegap.api.PluginManager; +import org.apache.cordova.api.PluginManager; import android.app.Instrumentation; import android.test.ActivityInstrumentationTestCase2; http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9d0c5349/test/src/org/apache/cordova/test/CordovaTest.java ---------------------------------------------------------------------- diff --git a/test/src/org/apache/cordova/test/CordovaTest.java b/test/src/org/apache/cordova/test/CordovaTest.java index 4a24792..64cd036 100644 --- a/test/src/org/apache/cordova/test/CordovaTest.java +++ b/test/src/org/apache/cordova/test/CordovaTest.java @@ -19,7 +19,7 @@ package org.apache.cordova.test; import org.apache.cordova.CordovaWebView; -import com.phonegap.api.PluginManager; +import org.apache.cordova.api.PluginManager; import android.app.Instrumentation; import android.test.ActivityInstrumentationTestCase2; @@ -34,13 +34,13 @@ public class CordovaTest extends private String rString; public CordovaTest() { - super("com.phonegap.test.activities", CordovaWebViewTestActivity.class); + super("org.apache.cordova.test.activities", CordovaWebViewTestActivity.class); } protected void setUp() throws Exception { super.setUp(); testActivity = this.getActivity(); - testView = testActivity.findViewById(R.id.phoneGapView); + testView = testActivity.findViewById(R.id.cordovaWebView); } public void testPreconditions() { http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9d0c5349/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java ---------------------------------------------------------------------- diff --git a/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java b/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java index d25caa5..b111143 100644 --- a/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java +++ b/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java @@ -30,7 +30,7 @@ import android.os.Bundle; public class CordovaWebViewTestActivity extends Activity implements CordovaInterface { - CordovaWebView phoneGap; + CordovaWebView cordovaWebView; /** Called when the activity is first created. */ @Override @@ -39,17 +39,17 @@ public class CordovaWebViewTestActivity extends Activity implements CordovaInter setContentView(R.layout.main); - phoneGap = (CordovaWebView) findViewById(R.id.phoneGapView); + cordovaWebView = (CordovaWebView) findViewById(R.id.cordovaWebView); - phoneGap.loadUrl("file:///android_asset/www/index.html"); + cordovaWebView.loadUrl("file:///android_asset/www/index.html"); } public void onDestroy() { super.onDestroy(); - if (phoneGap.pluginManager != null) { - phoneGap.pluginManager.onDestroy(); + if (cordovaWebView.pluginManager != null) { + cordovaWebView.pluginManager.onDestroy(); } } http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/9d0c5349/test/src/org/apache/cordova/test/GapClientTest.java ---------------------------------------------------------------------- diff --git a/test/src/org/apache/cordova/test/GapClientTest.java b/test/src/org/apache/cordova/test/GapClientTest.java index bfee863..512c9a2 100644 --- a/test/src/org/apache/cordova/test/GapClientTest.java +++ b/test/src/org/apache/cordova/test/GapClientTest.java @@ -41,7 +41,7 @@ public class GapClientTest extends ActivityInstrumentationTestCase2