Skip to content

Commit

Permalink
DouniaBerrada: Moving Android library to the java tree.
Browse files Browse the repository at this point in the history
r15429
  • Loading branch information
Dounia Berrada committed Jan 6, 2012
1 parent dd5598b commit 40d60ac
Show file tree
Hide file tree
Showing 40 changed files with 77 additions and 94 deletions.
5 changes: 3 additions & 2 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<classpathentry kind="src" path="java/client/src"/>
<classpathentry kind="src" path="java/client/test"/>
<classpathentry kind="src" path="java/server/test"/>
<classpathentry kind="src" path="android"/>
<classpathentry kind="lib" path="third_party/java/junit/junit-dep-4.10.jar" sourcepath="third_party/java/junit/junit-dep-4.10-src.jar"/>
<classpathentry kind="lib" path="third_party/java/easymock/easymockclassextension-2.4.jar"/>
<classpathentry kind="lib" path="third_party/java/htmlunit/htmlunit-core-js-2.9.jar"/>
Expand All @@ -21,8 +22,8 @@
<classpathentry kind="lib" path="third_party/java/commons-codec/commons-codec-1.4.jar"/>
<classpathentry kind="lib" path="third_party/java/hamcrest/hamcrest-all-1.1.jar"/>
<classpathentry kind="lib" path="third_party/java/commons-logging/commons-logging-1.1.1.jar"/>
<classpathentry kind="lib" path="third_party/java/jna/jna-3.4.0.jar"/>
<classpathentry kind="lib" path="third_party/java/jna/jna-platform-3.4.0.jar"/>
<classpathentry kind="lib" path="third_party/java/jna/jna-3.4.0.jar"/>
<classpathentry kind="lib" path="third_party/java/jna/jna-platform-3.4.0.jar"/>
<classpathentry kind="lib" path="third_party/java/jetty/jetty-lite-7.2.0-repackaged-for-android.jar"/>
<classpathentry kind="lib" path="third_party/java/mx4j/mx4j-tools-3.0.1.jar"/>
<classpathentry kind="lib" path="third_party/java/jetty/jetty-webapp-7.2.0.v20101020.jar"/>
Expand Down
3 changes: 3 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion android/app/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ java_library(name = "server",
],
deps = [
":r",
"//android/library/src/java/org/openqa/selenium/android:android_library",
"//java/client/src/org/openqa/selenium/android:android_library",
"//java/client/src/org/openqa/selenium/remote",
"//java/client/src/org/openqa/selenium/support",
"//java/client/src/org/openqa/selenium/io",
Expand Down
2 changes: 1 addition & 1 deletion android/app/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<copy file="${third_party.location}/java/guava-libraries/guava-10.0.1.jar" todir="libs/" />
<copy file="${third_party.location}/java/jetty/jetty-lite-7.2.0-repackaged-for-android.jar" todir="libs/" />
<copy file="${third_party.location}/java/json/json-20080701.jar" todir="libs/" />
<copy file="${build.location}/android/library/src/java/org/openqa/selenium/android/android_library.jar" todir="libs" />
<copy file="${build.location}/java/client/src/java/org/openqa/selenium/android/android_library.jar" todir="libs" />
<copy file="${build.location}/java/client/src/org/openqa/selenium/io/io.jar" todir="libs" />
<copy file="${third_party.location}/java/junit/junit-dep-4.10.jar" todir="libs/" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.android.AndroidWebDriver;
import org.openqa.selenium.android.library.AndroidWebDriver;
import org.openqa.selenium.HasTouchScreen;
import org.openqa.selenium.html5.BrowserConnection;
import org.openqa.selenium.html5.LocalStorage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package org.openqa.selenium.android.app;

import static java.util.logging.Level.OFF;
import static org.openqa.selenium.logging.LogType.DRIVER;
import static org.openqa.selenium.remote.CapabilityType.LOGGING_PREFS;

Expand All @@ -28,8 +27,8 @@
import android.os.Bundle;
import android.os.IBinder;

import org.openqa.selenium.android.AndroidWebDriver;
import org.openqa.selenium.android.Logger;
import org.openqa.selenium.android.library.AndroidWebDriver;
import org.openqa.selenium.android.library.Logger;
import org.openqa.selenium.android.server.JettyService;
import org.openqa.selenium.logging.LoggingPreferences;
import org.openqa.selenium.remote.CapabilityType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.eclipse.jetty.server.handler.HandlerList;
import org.eclipse.jetty.server.nio.SelectChannelConnector;
import org.eclipse.jetty.servlet.ServletHolder;
import org.openqa.selenium.android.Logger;
import org.openqa.selenium.android.library.Logger;
import org.openqa.selenium.android.Platform;
import org.openqa.selenium.android.app.R;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.openqa.selenium.android.server.handler;

import org.openqa.selenium.android.AndroidWebElement;
import org.openqa.selenium.android.library.AndroidWebElement;
import org.openqa.selenium.remote.server.JsonParametersAware;
import org.openqa.selenium.remote.server.Session;
import org.openqa.selenium.remote.server.rest.ResultType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.openqa.selenium.android.server.handler;

import org.openqa.selenium.android.AndroidWebElement;
import org.openqa.selenium.android.library.AndroidWebElement;
import org.openqa.selenium.remote.server.Session;
import org.openqa.selenium.remote.server.rest.ResultType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.openqa.selenium.android.server.handler;

import org.openqa.selenium.android.AndroidWebElement;
import org.openqa.selenium.android.library.AndroidWebElement;
import org.openqa.selenium.remote.server.Session;
import org.openqa.selenium.remote.server.rest.ResultType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.openqa.selenium.android.server.handler;

import org.openqa.selenium.android.AndroidWebElement;
import org.openqa.selenium.android.library.AndroidWebElement;
import org.openqa.selenium.remote.server.Session;
import org.openqa.selenium.remote.server.rest.ResultType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.openqa.selenium.android.server.handler;

import org.openqa.selenium.android.AndroidWebElement;
import org.openqa.selenium.android.library.AndroidWebElement;
import org.openqa.selenium.remote.server.Session;
import org.openqa.selenium.remote.server.rest.ResultType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.openqa.selenium.android.server.handler;

import org.openqa.selenium.android.AndroidWebElement;
import org.openqa.selenium.android.library.AndroidWebElement;
import org.openqa.selenium.remote.server.Session;
import org.openqa.selenium.remote.server.rest.ResultType;

Expand Down
6 changes: 0 additions & 6 deletions android/library/.classpath

This file was deleted.

33 changes: 0 additions & 33 deletions android/library/.project

This file was deleted.

11 changes: 0 additions & 11 deletions android/library/src/java/org/openqa/selenium/android/build.desc

This file was deleted.

10 changes: 10 additions & 0 deletions java/client/src/org/openqa/selenium/android/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ java_library(name = "android",
"//java/client/src/org/openqa/selenium/remote",
])

java_library(name = "android_library",
srcs = ["library/*.java"],
deps = [
"//java/client/src/org/openqa/selenium:webdriver-api",
"//java/client/src/org/openqa/selenium/remote:common",
"//java/server/src/org/openqa/selenium/remote/server:server",
"//third_party/java/android",
"//third_party/java/guava-libraries",
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import java.util.EnumSet;
import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import org.openqa.selenium.Point;
import org.openqa.selenium.interactions.internal.Coordinates;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import android.view.KeyEvent;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import org.openqa.selenium.html5.LocalStorage;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import com.google.common.collect.Lists;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import org.openqa.selenium.html5.SessionStorage;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import com.google.common.collect.Lists;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
Expand Down Expand Up @@ -895,7 +895,7 @@ private String executeJavascriptInWebView(final String script) {
resultReady = false;
activity.runOnUiThread(new Runnable() {
public void run() {
org.openqa.selenium.android.JavascriptExecutor.executeJs(
org.openqa.selenium.android.library.JavascriptExecutor.executeJs(
webview, notifier, script);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import com.google.common.collect.Lists;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import android.os.Message;
import android.webkit.JsPromptResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

class DomWindow {
private final String key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import android.app.Activity;
import android.util.Log;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import android.app.Activity;
import android.webkit.WebView;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

/**
* Custom module that is added to the WebView's JavaScript engine to enable callbacks to java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

interface JavascriptResultNotifier {
void notifyResultReady(String result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import java.util.logging.Level;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import android.app.Activity;
import android.content.BroadcastReceiver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import com.google.common.collect.Sets;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import android.graphics.Bitmap;
import android.net.http.SslError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
*/

package org.openqa.selenium.android;
package org.openqa.selenium.android.library;

import android.util.Log;
import android.view.KeyEvent;
Expand Down
Loading

0 comments on commit 40d60ac

Please sign in to comment.