Permalink
Browse files

Adding remote project to the robotium root with maven build

1 parent be6ebbd commit d76978fa0b00497a00ace56d28661a2ddd6eb9e5 Jing Dong committed Aug 20, 2010
Showing with 718 additions and 3 deletions.
  1. +2 −0 .gitignore
  2. +8 −2 pom.xml
  3. +124 −0 robotium-server/pom.xml
  4. +7 −0 robotium-server/robotium-server-app/.externalToolBuilders/org.maven.ide.eclipse.maven2Builder.launch
  5. +17 −0 robotium-server/robotium-server-app/AndroidManifest.xml
  6. +11 −0 robotium-server/robotium-server-app/default.properties
  7. BIN robotium-server/robotium-server-app/lib/ddmlib.jar
  8. BIN robotium-server/robotium-server-app/lib/powermock-easymock-1.4-full.jar
  9. +180 −0 robotium-server/robotium-server-app/pom.xml
  10. BIN robotium-server/robotium-server-app/res/drawable-hdpi/icon.png
  11. BIN robotium-server/robotium-server-app/res/drawable-ldpi/icon.png
  12. BIN robotium-server/robotium-server-app/res/drawable-mdpi/icon.png
  13. +44 −0 robotium-server/robotium-server-app/res/layout/main.xml
  14. BIN robotium-server/robotium-server-app/res/raw/braincandy.m4a
  15. +4 −0 robotium-server/robotium-server-app/res/values/strings.xml
  16. +57 −0 ...r/robotium-server-app/src/main/java/com/jayway/android/robotium/server/RemoteControlActivity.java
  17. +57 −0 ...um-server/robotium-server-app/src/main/java/com/jayway/android/robotium/server/RemoteService.java
  18. +88 −0 ...ver/robotium-server-app/src/main/java/com/jayway/android/robotium/server/TelnetServerHandler.java
  19. +38 −0 ...tium-server-app/src/main/java/com/jayway/android/robotium/server/TelnetServerPipelineFactory.java
  20. +7 −0 ...server-app/src/main/java/com/jayway/android/robotium/server/util/InstrumentationRemoteRunner.java
  21. +47 −0 ...robotium-server-app/src/main/java/com/jayway/android/robotium/server/util/ShellCommandWriter.java
  22. +11 −0 robotium-solo/pom.xml
  23. +5 −0 robotium-solo/src/main/java/com/jayway/android/robotium/ISolo.java
  24. +7 −0 robotium-solo/src/main/java/com/jayway/android/robotium/remote/RemoteSolo.java
  25. +4 −1 robotium-solo/src/main/java/com/jayway/android/robotium/solo/Solo.java
View
@@ -7,3 +7,5 @@ target
.project
.settings
.springBeans
+bin
+gen
View
10 pom.xml
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.jayway.android.robotium</groupId>
@@ -10,6 +11,7 @@
<inceptionYear>2009</inceptionYear>
<modules>
<module>robotium-solo</module>
+ <module>robotium-server</module>
</modules>
<properties>
<scm.branch>master</scm.branch>
@@ -175,7 +177,11 @@
</plugins>
</build>
- <distributionManagement>
+ <dependencyManagement>
+ <dependencies>
+ </dependencies>
+ </dependencyManagement>
+ <distributionManagement>
<repository>
<id>oss.sonatype.org-jayway-staging</id>
<name>OpenSource Release Staging on Sonatype.org</name>
@@ -247,4 +253,4 @@
</profile>
</profiles>
-</project>
+</project>
View
@@ -0,0 +1,124 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>robotium</artifactId>
+ <groupId>com.jayway.android.robotium</groupId>
+ <version>1.6.1-SNAPSHOT</version>
+ </parent>
+ <groupId>com.jayway.android.robotium.robotium-server</groupId>
+ <artifactId>robotium-server</artifactId>
+ <version>1.6.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>Robotium :: Remote Server</name>
+ <description>Remote Server package, including app and test</description>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>com.google.android</groupId>
+ <artifactId>android</artifactId>
+ <version>1.6_r2</version>
+ <type>jar</type>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.android</groupId>
+ <artifactId>android-test</artifactId>
+ <version>1.6_r2</version>
+ <type>jar</type>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <profiles>
+ <!-- build all profile -->
+ <profile>
+ <id>all</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <modules>
+ <module>robotium-server-app</module>
+ <module>robotium-server-test</module>
+ </modules>
+ </profile>
+
+ <!-- App build profile -->
+ <profile>
+ <id>app-build</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <modules> <!-- only building the application here -->
+ <module>robotium-server-app</module>
+ </modules>
+ </profile>
+
+ <!-- Instrumentation test profile -->
+ <profile>
+ <id>instrument</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <modules>
+ <module>robotium-server-test</module>
+ </modules>
+ </profile>
+
+ <!--sign and release profile -->
+ <profile>
+ <id>release</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <modules>
+ <module>robotium-server-app</module>
+ </modules>
+ </profile>
+ </profiles>
+ <modules>
+ <module>robotium-server-app</module>
+ </modules>
+
+ <!--default settings common to all profiles unless overriden -->
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>com.jayway.maven.plugins.android.generation2</groupId>
+ <artifactId>maven-android-plugin</artifactId>
+ <configuration>
+ <sdk>
+ <platform>4</platform>
+ </sdk>
+ <androidConfiguration>
+ <use_custom_gen_folder>true</use_custom_gen_folder>
+ <custom_gen_folder_relative_path>
+ /target/generated-sources/gen
+ </custom_gen_folder_relative_path>
+ </androidConfiguration>
+ <deleteConflictingFiles>true</deleteConflictingFiles>
+ <undeployBeforeDeploy>true</undeployBeforeDeploy>
+ <zipalign>
+ <verbose>true</verbose>
+ </zipalign>
+ <sign>
+ <debug>false</debug>
+ </sign>
+ </configuration>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+</project>
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.ui.externaltools.ProgramBuilderLaunchConfigurationType">
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="false"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_DISABLED_BUILDER" value="org.maven.ide.eclipse.maven2Builder"/>
+<mapAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"/>
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
+</launchConfiguration>
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ android:versionCode="1"
+ android:versionName="1.0" package="com.jayway.android.robotium.server">
+ <application android:icon="@drawable/icon" android:label="@string/app_name">
+ <activity android:label="@string/app_name" android:name=".RemoteControlActivity">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+
+ <service android:name=".RemoteService"></service>
+</application>
+ <uses-sdk android:minSdkVersion="4" />
+ <uses-permission android:name="android.permission.RUN_INSTRUMENTATION" />
+</manifest>
@@ -0,0 +1,11 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "build.properties", and override values to adapt the script to your
+# project structure.
+
+# Project target.
+target=android-4
Binary file not shown.
@@ -0,0 +1,180 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>com.jayway.android.robotium.robotium-server</groupId>
+ <artifactId>robotium-server</artifactId>
+ <version>1.6.1-SNAPSHOT</version>
+ </parent>
+
+ <groupId>com.jayway.android.robotium.robotium-server-app</groupId>
+ <artifactId>robotium-server-app</artifactId>
+ <version>0.0.1</version>
+ <packaging>apk</packaging>
+ <name>Robotium :: Remote Server</name>
+
+ <description>Robotium Server Android Application</description>
+
+
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <url>http://repository.jboss.org/nexus/content/groups/public/</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.netty</groupId>
+ <artifactId>netty</artifactId>
+ <version>3.1.0.GA</version>
+ <scope>provided</scope>
+ </dependency>
+
+
+ <dependency>
+ <groupId>com.google.android</groupId>
+ <artifactId>android</artifactId>
+ <version>1.6_r2</version>
+ <type>jar</type>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.8.1</version>
+ <type>jar</type>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <!--default case. acts when no profile selected-->
+ <!--
+ the application gets installed into the local maven repository so that
+ the instrumentation test project can use it
+ -->
+ <build>
+ <defaultGoal>install</defaultGoal>
+ <finalName>${project.artifactId}-${project.version}</finalName>
+ <plugins>
+ <plugin>
+ <groupId>com.jayway.maven.plugins.android.generation2</groupId>
+ <artifactId>maven-android-plugin</artifactId>
+
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
+ <!--
+ needs additional config/parameters to work: a keystore along with
+ access data to it. parameters for the keystore as seen below
+ -->
+ <profiles>
+ <profile>
+ <!--
+ release profile. uses keystore defined in keystore.* properties.
+ signs and zipaligns the app to the target folder
+ -->
+ <id>release</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <build>
+ <defaultGoal>install</defaultGoal>
+ <finalName>${project.artifactId}-${project.version}</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jarsigner-plugin</artifactId>
+ <version>1.2</version>
+ <executions>
+ <execution>
+ <id>signing</id>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ <phase>package</phase>
+ <inherited>true</inherited>
+ <configuration>
+ <includes>
+ <include>${project.build.directory}/target/${project.artifactId}-${project.version}.apk</include>
+ </includes>
+ <keystore>${keystore.location}</keystore>
+ <storepass>${keystore.password}</storepass>
+ <keypass>${keystore.keypass}</keypass>
+ <alias>${keystore.alias}</alias>
+ <verbose>true</verbose>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.jayway.maven.plugins.android.generation2</groupId>
+ <artifactId>maven-android-plugin</artifactId>
+ <configuration>
+ <zipalign>
+ <verbose>true</verbose>
+ <skip>false</skip><!-- defaults to true -->
+ <inputApk>${project.build.directory}/${project.artifactId}-${project.version}.apk</inputApk>
+ <outputApk>${project.build.directory}/RobotiumServer_v${project.version}.apk</outputApk>
+ </zipalign>
+ <sign>
+ <debug>false</debug>
+ </sign>
+ </configuration>
+ <executions>
+ <execution>
+ <id>zipalign</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>zipalign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile><!-- builds an unsigned apk-->
+ <id>unsign</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <defaultGoal>install</defaultGoal>
+ <finalName>RobotiumServer_v${project.version}_unsigned</finalName>
+ <plugins>
+ <plugin>
+ <groupId>com.jayway.maven.plugins.android.generation2</groupId>
+ <artifactId>maven-android-plugin</artifactId>
+ <configuration>
+ <sign>
+ <debug>false</debug>
+ </sign>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+<properties>
+ <keystore.location>~/.android/debug.keystore</keystore.location>
+ <keystore.password>android</keystore.password>
+ <keystore.keypass>android</keystore.keypass>
+ <keystore.alias>androiddebugkey</keystore.alias>
+</properties>
+
+</project>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit d76978f

Please sign in to comment.