From 88c5f1606f4dceea41a2477e681d00f26b54ce33 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aslak=20Helles=C3=B8y?=
Date: Fri, 6 Jul 2018 10:42:48 +0100
Subject: [PATCH] Delete android, now moved to cucumber/cucumber-android
---
android/.travis.yml | 34 -
android/README.md | 82 ---
android/android-studio/Cukeulator/.gitignore | 6 -
android/android-studio/Cukeulator/README.md | 73 ---
.../android-studio/Cukeulator/app/.gitignore | 1 -
.../Cukeulator/app/build.gradle | 237 -------
.../Cukeulator/app/proguard-rules.pro | 17 -
.../assets/features/extra/calculate.feature | 20 -
.../features/operations/addition.feature | 31 -
.../features/operations/division.feature | 31 -
.../operations/multiplication.feature | 31 -
.../features/operations/subtraction.feature | 31 -
.../test/CalculatorActivitySteps.java | 142 -----
.../cukeulator/test/CucumberRunner.java | 74 ---
.../cukeulator/test/SomeDependency.java | 5 -
.../test/TypeRegistryConfiguration.java | 47 --
.../app/src/debug/AndroidManifest.xml | 9 -
.../app/src/main/AndroidManifest.xml | 19 -
.../cukeulator/CalculatorActivity.java | 152 -----
.../main/res/drawable-hdpi/ic_launcher.png | Bin 6468 -> 0 bytes
.../main/res/drawable-mdpi/ic_launcher.png | Bin 3664 -> 0 bytes
.../main/res/drawable-xhdpi/ic_launcher.png | Bin 9291 -> 0 bytes
.../main/res/drawable-xxhdpi/ic_launcher.png | Bin 16093 -> 0 bytes
.../main/res/layout/activity_calculator.xml | 187 ------
.../app/src/main/res/menu/menu_main.xml | 5 -
.../app/src/main/res/values-v21/styles.xml | 5 -
.../app/src/main/res/values-w820dp/dimens.xml | 6 -
.../app/src/main/res/values/dimens.xml | 5 -
.../app/src/main/res/values/strings.xml | 9 -
.../app/src/main/res/values/styles.xml | 8 -
.../android-studio/Cukeulator/build.gradle | 23 -
.../Cukeulator/gradle.properties | 18 -
.../gradle/wrapper/gradle-wrapper.jar | Bin 49896 -> 0 bytes
.../gradle/wrapper/gradle-wrapper.properties | 6 -
android/android-studio/Cukeulator/gradlew | 164 -----
android/android-studio/Cukeulator/gradlew.bat | 90 ---
.../android-studio/Cukeulator/settings.gradle | 1 -
android/cucumber-android-test/.gitignore | 1 -
android/cucumber-android-test/README.md | 25 -
android/cucumber-android-test/pom.xml | 44 --
.../cucumber-android-test/project.properties | 15 -
.../src/main/AndroidManifest.xml | 40 --
.../src/main/assets/features/Test.feature | 6 -
.../android/test/CucumberActivity.java | 11 -
.../android/test/CucumberActivitySteps.java | 68 --
.../example/android/test/SomeDependency.java | 5 -
.../main/res/drawable-hdpi/ic_launcher.png | Bin 3766 -> 0 bytes
.../src/main/res/layout/main.xml | 11 -
.../src/main/res/values/strings.xml | 4 -
android/cucumber-android/.gitignore | 1 -
android/cucumber-android/pom.xml | 92 ---
.../api/android/CucumberInstrumentation.java | 29 -
.../android/CucumberInstrumentationCore.java | 94 ---
.../runtime/android/AndroidObjectFactory.java | 75 ---
.../runtime/android/AndroidResource.java | 61 --
.../android/AndroidResourceLoader.java | 62 --
.../cucumber/runtime/android/Arguments.java | 195 ------
.../runtime/android/CoverageDumper.java | 103 ----
.../runtime/android/CucumberExecutor.java | 199 ------
.../runtime/android/DebuggerWaiter.java | 32 -
.../runtime/android/DexClassFinder.java | 97 ---
.../runtime/android/FeatureCompiler.java | 34 -
.../AndroidInstrumentationReporter.java | 331 ----------
.../formatter/AndroidLogcatReporter.java | 85 ---
.../formatter/MissingStepDefinitionError.java | 16 -
.../src/test/java/com/vladium/emma/rt/RT.java | 39 --
.../android/AndroidObjectFactoryTest.java | 136 ----
.../android/AndroidResourceLoaderTest.java | 105 ----
.../runtime/android/AndroidResourceTest.java | 65 --
.../runtime/android/ArgumentsTest.java | 468 --------------
.../runtime/android/CoverageDumperTest.java | 152 -----
.../runtime/android/DebuggerWaiterTest.java | 55 --
.../runtime/android/DexClassFinderTest.java | 136 ----
.../runtime/android/shadow/ShadowDexFile.java | 23 -
.../stub/unwanted/SomeUnwantedClass.java | 4 -
.../runtime/android/stub/wanted/Manifest.java | 4 -
.../runtime/android/stub/wanted/R.java | 8 -
.../android/stub/wanted/SomeClass.java | 4 -
.../AndroidInstrumentationReporterTest.java | 579 ------------------
.../MissingStepDefinitionErrorTest.java | 21 -
android/cukeulator-test/.gitignore | 8 -
android/cukeulator-test/README.md | 49 --
android/cukeulator-test/ant.properties | 19 -
android/cukeulator-test/build.xml | 92 ---
android/cukeulator-test/custom_rules.xml | 19 -
android/cukeulator-test/libs/README.md | 23 -
android/cukeulator-test/libs/init.sh | 9 -
android/cukeulator-test/libs/init.xml | 39 --
android/cukeulator-test/pom.xml | 72 ---
android/cukeulator-test/proguard-project.txt | 20 -
android/cukeulator-test/project.properties | 16 -
.../src/main/AndroidManifest.xml | 19 -
.../assets/features/extra/calculate.feature | 20 -
.../features/operations/addition.feature | 31 -
.../features/operations/division.feature | 31 -
.../operations/multiplication.feature | 31 -
.../features/operations/subtraction.feature | 31 -
.../test/CalculatorActivitySteps.java | 110 ----
.../cukeulator/test/SomeDependency.java | 5 -
.../test/TypeRegistryConfiguration.java | 45 --
.../android/cukeulator/test/Utils.java | 49 --
android/cukeulator/.gitignore | 7 -
android/cukeulator/README.md | 33 -
android/cukeulator/ant.properties | 16 -
android/cukeulator/build.xml | 92 ---
android/cukeulator/pom.xml | 32 -
android/cukeulator/proguard-project.txt | 20 -
android/cukeulator/project.properties | 16 -
.../cukeulator/src/main/AndroidManifest.xml | 21 -
.../cukeulator/CalculatorActivity.java | 152 -----
.../main/res/drawable-hdpi/ic_launcher.png | Bin 6468 -> 0 bytes
.../main/res/drawable-mdpi/ic_launcher.png | Bin 3664 -> 0 bytes
.../main/res/drawable-xhdpi/ic_launcher.png | Bin 9291 -> 0 bytes
.../main/res/drawable-xxhdpi/ic_launcher.png | Bin 16093 -> 0 bytes
.../main/res/layout/activity_calculator.xml | 187 ------
.../src/main/res/values/strings.xml | 5 -
android/pom.xml | 69 ---
android/wait_for_emulator | 17 -
118 files changed, 6509 deletions(-)
delete mode 100644 android/.travis.yml
delete mode 100644 android/README.md
delete mode 100644 android/android-studio/Cukeulator/.gitignore
delete mode 100644 android/android-studio/Cukeulator/README.md
delete mode 100644 android/android-studio/Cukeulator/app/.gitignore
delete mode 100644 android/android-studio/Cukeulator/app/build.gradle
delete mode 100644 android/android-studio/Cukeulator/app/proguard-rules.pro
delete mode 100644 android/android-studio/Cukeulator/app/src/androidTest/assets/features/extra/calculate.feature
delete mode 100644 android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/addition.feature
delete mode 100644 android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/division.feature
delete mode 100644 android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/multiplication.feature
delete mode 100644 android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/subtraction.feature
delete mode 100644 android/android-studio/Cukeulator/app/src/androidTest/java/cucumber/cukeulator/test/CalculatorActivitySteps.java
delete mode 100644 android/android-studio/Cukeulator/app/src/androidTest/java/cucumber/cukeulator/test/CucumberRunner.java
delete mode 100644 android/android-studio/Cukeulator/app/src/androidTest/java/cucumber/cukeulator/test/SomeDependency.java
delete mode 100644 android/android-studio/Cukeulator/app/src/androidTest/java/cucumber/cukeulator/test/TypeRegistryConfiguration.java
delete mode 100644 android/android-studio/Cukeulator/app/src/debug/AndroidManifest.xml
delete mode 100644 android/android-studio/Cukeulator/app/src/main/AndroidManifest.xml
delete mode 100644 android/android-studio/Cukeulator/app/src/main/java/cucumber/cukeulator/CalculatorActivity.java
delete mode 100755 android/android-studio/Cukeulator/app/src/main/res/drawable-hdpi/ic_launcher.png
delete mode 100755 android/android-studio/Cukeulator/app/src/main/res/drawable-mdpi/ic_launcher.png
delete mode 100755 android/android-studio/Cukeulator/app/src/main/res/drawable-xhdpi/ic_launcher.png
delete mode 100755 android/android-studio/Cukeulator/app/src/main/res/drawable-xxhdpi/ic_launcher.png
delete mode 100644 android/android-studio/Cukeulator/app/src/main/res/layout/activity_calculator.xml
delete mode 100644 android/android-studio/Cukeulator/app/src/main/res/menu/menu_main.xml
delete mode 100644 android/android-studio/Cukeulator/app/src/main/res/values-v21/styles.xml
delete mode 100644 android/android-studio/Cukeulator/app/src/main/res/values-w820dp/dimens.xml
delete mode 100644 android/android-studio/Cukeulator/app/src/main/res/values/dimens.xml
delete mode 100644 android/android-studio/Cukeulator/app/src/main/res/values/strings.xml
delete mode 100644 android/android-studio/Cukeulator/app/src/main/res/values/styles.xml
delete mode 100644 android/android-studio/Cukeulator/build.gradle
delete mode 100644 android/android-studio/Cukeulator/gradle.properties
delete mode 100644 android/android-studio/Cukeulator/gradle/wrapper/gradle-wrapper.jar
delete mode 100644 android/android-studio/Cukeulator/gradle/wrapper/gradle-wrapper.properties
delete mode 100755 android/android-studio/Cukeulator/gradlew
delete mode 100644 android/android-studio/Cukeulator/gradlew.bat
delete mode 100644 android/android-studio/Cukeulator/settings.gradle
delete mode 100644 android/cucumber-android-test/.gitignore
delete mode 100644 android/cucumber-android-test/README.md
delete mode 100644 android/cucumber-android-test/pom.xml
delete mode 100644 android/cucumber-android-test/project.properties
delete mode 100644 android/cucumber-android-test/src/main/AndroidManifest.xml
delete mode 100644 android/cucumber-android-test/src/main/assets/features/Test.feature
delete mode 100644 android/cucumber-android-test/src/main/java/cucumber/example/android/test/CucumberActivity.java
delete mode 100644 android/cucumber-android-test/src/main/java/cucumber/example/android/test/CucumberActivitySteps.java
delete mode 100644 android/cucumber-android-test/src/main/java/cucumber/example/android/test/SomeDependency.java
delete mode 100644 android/cucumber-android-test/src/main/res/drawable-hdpi/ic_launcher.png
delete mode 100644 android/cucumber-android-test/src/main/res/layout/main.xml
delete mode 100644 android/cucumber-android-test/src/main/res/values/strings.xml
delete mode 100644 android/cucumber-android/.gitignore
delete mode 100644 android/cucumber-android/pom.xml
delete mode 100644 android/cucumber-android/src/main/java/cucumber/api/android/CucumberInstrumentation.java
delete mode 100644 android/cucumber-android/src/main/java/cucumber/api/android/CucumberInstrumentationCore.java
delete mode 100644 android/cucumber-android/src/main/java/cucumber/runtime/android/AndroidObjectFactory.java
delete mode 100644 android/cucumber-android/src/main/java/cucumber/runtime/android/AndroidResource.java
delete mode 100644 android/cucumber-android/src/main/java/cucumber/runtime/android/AndroidResourceLoader.java
delete mode 100644 android/cucumber-android/src/main/java/cucumber/runtime/android/Arguments.java
delete mode 100644 android/cucumber-android/src/main/java/cucumber/runtime/android/CoverageDumper.java
delete mode 100644 android/cucumber-android/src/main/java/cucumber/runtime/android/CucumberExecutor.java
delete mode 100644 android/cucumber-android/src/main/java/cucumber/runtime/android/DebuggerWaiter.java
delete mode 100644 android/cucumber-android/src/main/java/cucumber/runtime/android/DexClassFinder.java
delete mode 100644 android/cucumber-android/src/main/java/cucumber/runtime/android/FeatureCompiler.java
delete mode 100644 android/cucumber-android/src/main/java/cucumber/runtime/formatter/AndroidInstrumentationReporter.java
delete mode 100644 android/cucumber-android/src/main/java/cucumber/runtime/formatter/AndroidLogcatReporter.java
delete mode 100644 android/cucumber-android/src/main/java/cucumber/runtime/formatter/MissingStepDefinitionError.java
delete mode 100644 android/cucumber-android/src/test/java/com/vladium/emma/rt/RT.java
delete mode 100644 android/cucumber-android/src/test/java/cucumber/runtime/android/AndroidObjectFactoryTest.java
delete mode 100644 android/cucumber-android/src/test/java/cucumber/runtime/android/AndroidResourceLoaderTest.java
delete mode 100644 android/cucumber-android/src/test/java/cucumber/runtime/android/AndroidResourceTest.java
delete mode 100644 android/cucumber-android/src/test/java/cucumber/runtime/android/ArgumentsTest.java
delete mode 100644 android/cucumber-android/src/test/java/cucumber/runtime/android/CoverageDumperTest.java
delete mode 100644 android/cucumber-android/src/test/java/cucumber/runtime/android/DebuggerWaiterTest.java
delete mode 100644 android/cucumber-android/src/test/java/cucumber/runtime/android/DexClassFinderTest.java
delete mode 100644 android/cucumber-android/src/test/java/cucumber/runtime/android/shadow/ShadowDexFile.java
delete mode 100644 android/cucumber-android/src/test/java/cucumber/runtime/android/stub/unwanted/SomeUnwantedClass.java
delete mode 100644 android/cucumber-android/src/test/java/cucumber/runtime/android/stub/wanted/Manifest.java
delete mode 100644 android/cucumber-android/src/test/java/cucumber/runtime/android/stub/wanted/R.java
delete mode 100644 android/cucumber-android/src/test/java/cucumber/runtime/android/stub/wanted/SomeClass.java
delete mode 100644 android/cucumber-android/src/test/java/cucumber/runtime/formatter/AndroidInstrumentationReporterTest.java
delete mode 100644 android/cucumber-android/src/test/java/cucumber/runtime/formatter/MissingStepDefinitionErrorTest.java
delete mode 100644 android/cukeulator-test/.gitignore
delete mode 100644 android/cukeulator-test/README.md
delete mode 100644 android/cukeulator-test/ant.properties
delete mode 100644 android/cukeulator-test/build.xml
delete mode 100644 android/cukeulator-test/custom_rules.xml
delete mode 100644 android/cukeulator-test/libs/README.md
delete mode 100755 android/cukeulator-test/libs/init.sh
delete mode 100644 android/cukeulator-test/libs/init.xml
delete mode 100644 android/cukeulator-test/pom.xml
delete mode 100644 android/cukeulator-test/proguard-project.txt
delete mode 100644 android/cukeulator-test/project.properties
delete mode 100644 android/cukeulator-test/src/main/AndroidManifest.xml
delete mode 100644 android/cukeulator-test/src/main/assets/features/extra/calculate.feature
delete mode 100644 android/cukeulator-test/src/main/assets/features/operations/addition.feature
delete mode 100644 android/cukeulator-test/src/main/assets/features/operations/division.feature
delete mode 100644 android/cukeulator-test/src/main/assets/features/operations/multiplication.feature
delete mode 100644 android/cukeulator-test/src/main/assets/features/operations/subtraction.feature
delete mode 100644 android/cukeulator-test/src/main/java/cucumber/example/android/cukeulator/test/CalculatorActivitySteps.java
delete mode 100644 android/cukeulator-test/src/main/java/cucumber/example/android/cukeulator/test/SomeDependency.java
delete mode 100644 android/cukeulator-test/src/main/java/cucumber/example/android/cukeulator/test/TypeRegistryConfiguration.java
delete mode 100644 android/cukeulator-test/src/main/java/cucumber/example/android/cukeulator/test/Utils.java
delete mode 100644 android/cukeulator/.gitignore
delete mode 100644 android/cukeulator/README.md
delete mode 100644 android/cukeulator/ant.properties
delete mode 100644 android/cukeulator/build.xml
delete mode 100644 android/cukeulator/pom.xml
delete mode 100644 android/cukeulator/proguard-project.txt
delete mode 100644 android/cukeulator/project.properties
delete mode 100644 android/cukeulator/src/main/AndroidManifest.xml
delete mode 100644 android/cukeulator/src/main/java/cucumber/example/android/cukeulator/CalculatorActivity.java
delete mode 100755 android/cukeulator/src/main/res/drawable-hdpi/ic_launcher.png
delete mode 100755 android/cukeulator/src/main/res/drawable-mdpi/ic_launcher.png
delete mode 100755 android/cukeulator/src/main/res/drawable-xhdpi/ic_launcher.png
delete mode 100755 android/cukeulator/src/main/res/drawable-xxhdpi/ic_launcher.png
delete mode 100644 android/cukeulator/src/main/res/layout/activity_calculator.xml
delete mode 100644 android/cukeulator/src/main/res/values/strings.xml
delete mode 100644 android/pom.xml
delete mode 100755 android/wait_for_emulator
diff --git a/android/.travis.yml b/android/.travis.yml
deleted file mode 100644
index 23df2d1541..0000000000
--- a/android/.travis.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-language: android
-jdk: oraclejdk8
-sudo: false
-
-cache:
- directories:
- - "$HOME/.m2"
-
-before_cache:
-- rm -rf $HOME/.m2/repository/io/cucumber
-
-android:
- components:
- - tools
- - platform-tools
- - tools
- - build-tools-26.0.0
- - android-21
- - sys-img-armeabi-v7a-android-21
-
-before_install:
- - echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
- - emulator -avd test -no-skin -no-audio -no-window &
-
-install:
- - mvn -q install --also-make --projects android,picocontainer -DskipTests=true
- -Dmaven.javadoc.skip=true
-
-before_script:
- - android-wait-for-emulator
-
-script:
- - mvn install --activate-profiles android-examples --projects examples/android
- --also-make-dependents -Dandroid.device=test
diff --git a/android/README.md b/android/README.md
deleted file mode 100644
index 20430d66e6..0000000000
--- a/android/README.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# Cucumber-Android
-
-This project implements Android support for Cucumber-JVM
-
-## Developers
-
-### Prerequisites
-
-Taken from the [maven-android-plugin](https://code.google.com/p/maven-android-plugin/wiki/GettingStarted) documentation.
-
-1. JDK 1.6+ installed as required for Android development
-2. [Android SDK](http://developer.android.com/sdk/index.html) (r21 or later, latest is best supported) installed, preferably with all platforms.
-
-Integration-tests are in `examples/android/android-test/cucumber-test/`.
-
-### Building
-
-```sh
-mvn package -pl android -am
-```
-
-### Using Cucumber-Android
-1. Include the following jars into your Android project either through Maven or directly copy into libs folder: cucumber-android.jar, cucumber-core.jar, cucumber-html.jar, cucumber-java.jar, cucumber-junit.jar, cucumber-jvm-deps.jar, gherkin.jar. Also cucumber-picocontainer.jar and picocontainer.jar if you want to use picocontainer. You can download the jar files from the [public maven repo](http://repo1.maven.org/maven2/info/cukes/)
-
-2. Create a class that extends TestCase or any of its subclasses, and add @CucumberOptions annotation to that class. This class doesn't need to have anything in it, but you can also put some codes in it if you want. The purpose of doing this is to provide cucumber options. A simple example can be found at cucumber-jvm / examples / android / android-test / src / cucumber / example / android / test / CucumberActivitySteps.java. Or a more complicated example here:
-```java
-@CucumberOptions(glue = "com.mytest.steps", format = {"junit:/data/data/com.mytest/JUnitReport.xml", "json:/data/data/com.mytest/JSONReport.json"}, tags = { "~@wip" }, features = "features")
-public class MyTests extends TestCase
-{
-}
-```
-glue is the path to step definitions, format is the path for report outputs, tags is the tags you want cucumber-android to run or not run, features is the path to the feature files.
-You can also use command line to provide these options to cucumber-android. Here is the detailed documentation on how to use command line to provide these options: [Command Line Options for Cucumber Android](https://github.com/cucumber/cucumber-jvm/pull/597)
-
-3. Write your .feature files under your test project's assets/ folder. If you specify features = "features" like the example above then it's assets/features.
-
-4. Write your step definitions under the package name specified in glue. For example, if you specified glue = "com.mytest.steps", then create a new package under your src folder named "com.mytest.steps" and put your step definitions under it. Note that all subpackages will also be included, so you can also put in "com.mytest.steps.mycomponent".
-
-5. Add the followings in your test project's AndroidManifest.xml
-```xml
-
-
-
-
-
-```
-
-6. If you are running from Eclipse, create a new Android JUnit run configuration, select "Run all tests in the selected project or package", and select your test project. It's recommended to select the package where the class with @CucumberOptions is in, because the cucumber-android will scan all files you give it for that class. If you specify the whole project, it will take long for cucumber-android to find that class. Sellect cucumber.api.android.CucumberInstrumentation for the Instrumentation runner.
-
-### Debugging
-Please read [the Android documentation on debugging](https://developer.android.com/tools/debugging/index.html).
-
-### Examples
-
-To *build* all android example modules with maven:
-
-```
-mvn package -pl examples/android -am -amd -P android,android-examples
-```
-
-To *clean* all android example modules with maven:
-
-```
-mvn clean -pl examples/android -amd -P android-examples
-```
-
-The example projects depend on the current (unreleased) Cucumber-JVM modules.
-If any of the examples fail to build, just build the android module and its dependencies once first:
-
-```
-mvn clean install -pl android -am
-```
-
-To create a virtual device and start an [Android emulator](https://developer.android.com/tools/devices/index.html):
-
-```
-$ANDROID_HOME/tools/android avd
-```
\ No newline at end of file
diff --git a/android/android-studio/Cukeulator/.gitignore b/android/android-studio/Cukeulator/.gitignore
deleted file mode 100644
index afbdab33e9..0000000000
--- a/android/android-studio/Cukeulator/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-.gradle
-/local.properties
-/.idea/workspace.xml
-/.idea/libraries
-.DS_Store
-/build
diff --git a/android/android-studio/Cukeulator/README.md b/android/android-studio/Cukeulator/README.md
deleted file mode 100644
index 85a7000249..0000000000
--- a/android/android-studio/Cukeulator/README.md
+++ /dev/null
@@ -1,73 +0,0 @@
-## Cukeulator Example Test
-This is the example test-project for the Cukeulator app for Android Studio 3.0+
-
-### Setup
-Features must be placed in `assets/features/`. Subdirectories are allowed.
-
-The rest of the dependencies are added automatically in `app/build.gradle`.
-
-The cucumber-android dependency is added as (see `app/build.gradle`):
-
-```
-androidTestCompile 'io.cucumber:cucumber-android:'
-```
-
-### Using gradle
-
-To build the test apk:
-
-```
-cd cucumber-jvm/examples/android/android-studio/Cukeulator
-
-./gradlew --parallel :app:assembleDebugTest
-```
-
-The build generates an apk in app/build/outputs/apk/app-debug.apk.
-
-To install the apk on a device:
-
-```
-adb install -r app/build/outputs/apk/app-debug.apk
-```
-
-To verify that the test is installed, run:
-
-```
-adb shell pm list instrumentation
-```
-
-The command output should display;
-
-```
-instrumentation:cucumber.cukeulator.test/cucumber.api.android.CucumberInstrumentation (target=cucumber.cukeulator)
-```
-
-To run the test:
-
-```
-cd cucumber-jvm/examples/android/android-studio/Cukeulator;
-./gradlew connectedCheck
-```
-
-As an alternative option, the test can be run with adb:
-
-```
-adb shell am instrument -w cucumber.cukeulator.test/cucumber.cukeulator.test.Instrumentation
-```
-
-### Using an Android Studio IDE
-1. Import the example to Android Studio: `File > Import Project`.
-2. Create a test run configuration:
- 1. Run > Edit Configurations
- 2. Click `+` button and select Android Tests
- 3. Specify test name: `CalculatorTest`
- 4. Select module: `app`
- 5. Enter a Specific instrumentation runner: `cucumber.cukeulator.test.Instrumentation`
- 6. Click Ok
-
-### Output
-Filter for the logcat tag `cucumber-android` in [DDMS](https://developer.android.com/tools/debugging/ddms.html).
-
-### Using this project with locally built Cucumber-JVM
-See [app/build.gradle](app/build.gradle) under `dependencies`.
-There is a source-code comment which explains how to use a locally built Cucumber-JVM Android library.
\ No newline at end of file
diff --git a/android/android-studio/Cukeulator/app/.gitignore b/android/android-studio/Cukeulator/app/.gitignore
deleted file mode 100644
index 796b96d1c4..0000000000
--- a/android/android-studio/Cukeulator/app/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
diff --git a/android/android-studio/Cukeulator/app/build.gradle b/android/android-studio/Cukeulator/app/build.gradle
deleted file mode 100644
index 9e168218b7..0000000000
--- a/android/android-studio/Cukeulator/app/build.gradle
+++ /dev/null
@@ -1,237 +0,0 @@
-apply plugin: 'com.android.application'
-apply plugin: 'jacoco'
-
-// ==================================================================
-// Android configuration
-// ==================================================================
-
-android {
- compileSdkVersion 27
- buildToolsVersion '27.0.3'
-
- defaultConfig {
- applicationId "cucumber.cukeulator"
- minSdkVersion 16
- targetSdkVersion 27
- versionCode 1
- versionName "1.0"
-
- testApplicationId "cucumber.cukeulator.test"
- testInstrumentationRunner "cucumber.cukeulator.test.CucumberRunner"
- }
-
- packagingOptions {
- exclude 'LICENSE.txt'
- }
-
- lintOptions {
- abortOnError false
- }
-
- // With the following option we does not have to mock everything,
- // e.g. super calls cannot be mocked with Mockito only (just with Powermock).
- testOptions {
- unitTests.returnDefaultValues = true
- animationsDisabled true
- }
-
- sourceSets {
- androidTest {
- assets.srcDirs = ['src/androidTest/assets']
- }
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
-}
-
-// ==================================================================
-// Project dependencies
-// ==================================================================
-
-dependencies {
- //
- // The following dependency works, if you build Cucumber-JVM on your local machine:
- //
- // androidTestCompile 'io.cucumber:cucumber-android:2.3.2-SNAPSHOT'
- //
- // (If you enable it, you must disable the dependency to the stable Cucumber version above.)
- //
- // If you have not yet built Cucumber-JVM on your local machine, build it with:
- //
- // cd
- // mvn clean install
- //
- // Hint: you find the Cucumber-JVM source root under a parent directory of this file.
- //
- // If you only change the Android source, you also can do:
- //
- // cd /android
- // mvn install
- //
- // Now, after you have been built Cucumber-JVM with one of the commands above, it is published
- // to your local Maven repository and may be used by other projects on your local machine.
- //
- // For our example project, that means you can execute the feature files, with the just built
- // Cucumber-JVM library by using the following command (press Alt+F12 in Android Studio):
- //
- // gradlew connectedCheck --refresh-dependencies
- //
- // The --refresh-dependencies option seems not to be required anymore for recent Android Studio
- // and Gradle versions. But, if your Cucumber-JVM snapshot dependency is not updated
- // automatically by Gradle, the flag always bypasses any caching of dependencies.
-
-
- implementation 'com.android.support:appcompat-v7:27.1.1'
-
-// testImplementation 'junit:junit:4.12'
-// testImplementation 'org.mockito:mockito-core:2.10.0'
- androidTestImplementation 'com.android.support.test:runner:1.0.2'
- androidTestImplementation 'com.android.support.test:rules:1.0.2'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
- androidTestImplementation 'com.android.support:support-annotations:27.1.1'
-
- // Use the stable Cucumber version
- androidTestImplementation 'io.cucumber:cucumber-android:3.0.2'
- androidTestImplementation 'io.cucumber:cucumber-picocontainer:3.0.2'
-}
-
-// ==================================================================
-// Custom tasks
-// ==================================================================
-
-/*
- * Downloads all Cucumber reports from the connected device.
- */
-task downloadCucumberReports {
- group "Verification"
- description "Downloads the rich Cucumber report files (HTML, XML, JSON) from the connected device"
-
- doLast {
- def deviceSourcePath = getCucumberDevicePath()
- def localReportPath = new File(buildDir, "reports/cucumber")
- if (!localReportPath.exists()) {
- localReportPath.mkdirs()
- }
- if (!localReportPath.exists()) {
- throw new GradleException("Could not create $localReportPath")
- }
- def adb = getAdbPath()
- def files = getCucumberReportFileNames()
- files.each { fileName ->
- exec {
- commandLine adb, 'pull', "$deviceSourcePath/$fileName", localReportPath
- }
- }
- }
-}
-
-/**
- * Deletes existing Cucumber reports on the device.
- */
-task deleteExistingCucumberReports {
- group "Verification"
- description "Removes the rich Cucumber report files (HTML, XML, JSON) from the connected device"
- doLast {
- def deviceSourcePath = getCucumberDevicePath()
- def files = getCucumberReportFileNames()
- files.each { fileName ->
- def deviceFileName = deviceSourcePath + '/' + fileName
- def output2 = executeAdb('if [ -d "' + deviceFileName + '" ]; then rm -r "' + deviceFileName + '"; else rm -r "' + deviceFileName + '" ; fi')
- println output2
- }
- }
-}
-
-/**
- * Sets the required permissions for Cucumber to write on the internal storage.
- */
-task grantPermissions(dependsOn: 'installDebug') {
- doLast {
- def adb = getAdbPath()
- // We only set the permissions for the main application
- def mainPackageName = android.defaultConfig.applicationId
- def readPermission = "android.permission.READ_EXTERNAL_STORAGE"
- def writePermission = "android.permission.WRITE_EXTERNAL_STORAGE"
- exec { commandLine adb, 'shell', 'pm', 'grant', mainPackageName, readPermission }
- exec { commandLine adb, 'shell', 'pm', 'grant', mainPackageName, writePermission }
- }
-}
-
-// Delete existing Cucumber reports on the device before connected test-run
-connectedCheck.dependsOn deleteExistingCucumberReports
-connectedCheck.mustRunAfter deleteExistingCucumberReports
-
-// Grant storage permissions to store Cucumber reports before connected test-run
-connectedCheck.dependsOn grantPermissions
-connectedCheck.mustRunAfter grantPermissions
-
-// Store the new cucumber reports to the reports directory after connected test-run
-connectedCheck.finalizedBy downloadCucumberReports
-
-// ==================================================================
-// Utility methods
-// ==================================================================
-
-/**
- * Utility method to get the full ADB path
- * @return the absolute ADB path
- */
-String getAdbPath() {
- def adb = android.getAdbExecutable().toString()
- if (adb.isEmpty()) {
- throw new GradleException("Could not detect adb path")
- }
- return adb
-}
-
-/**
- * Sometime adb returns '\r' character multiple times.
- * @param s the original string returned by adb
- * @return the fixed string without '\r'
- */
-static def fixAdbOutput(String s) {
- return s.replaceAll("[\r\n]+", "\n").trim()
-}
-
-/**
- * Runs the adb tool
- * @param program the program which is executed on the connected device
- * @return the output of the adb tool
- */
-def executeAdb(String program) {
- def process = new ProcessBuilder(getAdbPath(), "shell", program).redirectErrorStream(true).start()
- String text = new BufferedReader(new InputStreamReader(process.inputStream)).text
- return fixAdbOutput(text)
-}
-
-/**
- * Gets the 'external' storage path which is confusingly the internal storage of the phone.
- * @return
- */
-def getExternalStoragePath() {
- String r = executeAdb('echo $EXTERNAL_STORAGE')
- if (!r.matches('(/[^/]+)+')) {
- throw new GradleException("Could not detect external storage path")
- }
- return r
-}
-
-/**
- * The path which is used to store the Cucumber files.
- * @return
- */
-def getCucumberDevicePath() {
- return getExternalStoragePath() + '/cucumber'
-}
-
-/**
- * @return the known Cucumber report files/directories
- */
-static def getCucumberReportFileNames() {
- return ['cucumber.json', 'cucumber.xml', 'cucumber.html']
-}
diff --git a/android/android-studio/Cukeulator/app/proguard-rules.pro b/android/android-studio/Cukeulator/app/proguard-rules.pro
deleted file mode 100644
index 178b5337c7..0000000000
--- a/android/android-studio/Cukeulator/app/proguard-rules.pro
+++ /dev/null
@@ -1,17 +0,0 @@
-# Add project specific ProGuard rules here.
-# By default, the flags in this file are appended to flags specified
-# in /Users/mdzyuba/Code/android/adt-bundle-mac-x86_64-20140702/sdk/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the proguardFiles
-# directive in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# Add any project specific keep options here:
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
diff --git a/android/android-studio/Cukeulator/app/src/androidTest/assets/features/extra/calculate.feature b/android/android-studio/Cukeulator/app/src/androidTest/assets/features/extra/calculate.feature
deleted file mode 100644
index ad05180c70..0000000000
--- a/android/android-studio/Cukeulator/app/src/androidTest/assets/features/extra/calculate.feature
+++ /dev/null
@@ -1,20 +0,0 @@
-Feature: Calculate a result
- Perform an arithmetic operation on two numbers using a mathematical operator
- """The purpose of this feature is to illustrate how existing step-definitions
- can be efficiently reused."""
-
- Scenario Outline: Enter a digit, an operator and another digit
- Given I have a CalculatorActivity
- When I press
- And I press
- And I press
- And I press =
- Then I should see "" on the display
-
- Examples:
- | num1 | num2 | op | result |
- | 9 | 8 | + | 17.0 |
- | 7 | 6 | – | 1.0 |
- | 5 | 4 | x | 20.0 |
- | 3 | 2 | / | 1.5 |
- | 1 | 0 | / | Infinity |
diff --git a/android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/addition.feature b/android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/addition.feature
deleted file mode 100644
index 9199cd5f08..0000000000
--- a/android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/addition.feature
+++ /dev/null
@@ -1,31 +0,0 @@
-Feature: Add two numbers
- Calculate the sum of two numbers which consist of one or more digits
-
- Scenario Outline: Enter one digit per number and press =
- Given I have a CalculatorActivity
- When I press
- And I press +
- And I press
- And I press =
- Then I should see "" on the display
-
- Examples:
- | num1 | num2 | sum |
- | 0 | 0 | 0.0 |
- | 0 | 1 | 1.0 |
- | 1 | 1 | 2.0 |
-
- Scenario Outline: Enter two digits per number and press =
- Given I have a CalculatorActivity
- When I press
- When I press
- And I press +
- And I press
- And I press
- And I press =
- Then I should see "" on the display
-
- Examples:
- | num1 | num2 | num3 | num4 | sum |
- | 0 | 0 | 2 | 0 | 20.0 |
- | 9 | 8 | 7 | 6 | 174.0 |
diff --git a/android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/division.feature b/android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/division.feature
deleted file mode 100644
index e6dc09a875..0000000000
--- a/android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/division.feature
+++ /dev/null
@@ -1,31 +0,0 @@
-Feature: Divide two numbers
- Calculate the quotient of two numbers which consist of one or more digits
-
- Scenario Outline: Enter one digit per number and press =
- Given I have a CalculatorActivity
- When I press
- And I press /
- And I press
- And I press =
- Then I should see "" on the display
-
- Examples:
- | num1 | num2 | quotient |
- | 0 | 0 | NaN |
- | 1 | 0 | Infinity |
- | 1 | 2 | 0.5 |
-
- Scenario Outline: Enter two digits per number and press =
- Given I have a CalculatorActivity
- When I press
- When I press
- And I press /
- And I press
- And I press
- And I press =
- Then I should see "" on the display
-
- Examples:
- | num1 | num2 | num3 | num4 | quotient |
- | 2 | 2 | 2 | 2 | 1.0 |
- | 2 | 0 | 1 | 0 | 2.0 |
diff --git a/android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/multiplication.feature b/android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/multiplication.feature
deleted file mode 100644
index 311d4ecb1d..0000000000
--- a/android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/multiplication.feature
+++ /dev/null
@@ -1,31 +0,0 @@
-Feature: Multiply two numbers
- Calculate the product of two numbers which consist of one or more digits
-
- Scenario Outline: Enter one digit per number and press =
- Given I have a CalculatorActivity
- When I press
- And I press x
- And I press
- And I press =
- Then I should see "" on the display
-
- Examples:
- | num1 | num2 | product |
- | 0 | 0 | 0.0 |
- | 0 | 1 | 0.0 |
- | 1 | 2 | 2.0 |
-
- Scenario Outline: Enter two digits per number and press =
- Given I have a CalculatorActivity
- When I press
- When I press
- And I press x
- And I press
- And I press
- And I press =
- Then I should see "" on the display
-
- Examples:
- | num1 | num2 | num3 | num4 | product |
- | 2 | 2 | 2 | 2 | 484.0 |
- | 2 | 0 | 1 | 0 | 200.0 |
diff --git a/android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/subtraction.feature b/android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/subtraction.feature
deleted file mode 100644
index 51a3771ac5..0000000000
--- a/android/android-studio/Cukeulator/app/src/androidTest/assets/features/operations/subtraction.feature
+++ /dev/null
@@ -1,31 +0,0 @@
-Feature: Subtract two numbers
- Calculate the difference of two numbers which consist of one or more digits
-
- Scenario Outline: Enter one digit per number and press =
- Given I have a CalculatorActivity
- When I press
- And I press –
- And I press
- And I press =
- Then I should see "" on the display
-
- Examples:
- | num1 | num2 | delta |
- | 0 | 0 | 0.0 |
- | 0 | 1 | -1.0 |
- | 1 | 2 | -1.0 |
-
- Scenario Outline: Enter two digits per number and press =
- Given I have a CalculatorActivity
- When I press
- When I press
- And I press –
- And I press
- And I press
- And I press =
- Then I should see "" on the display
-
- Examples:
- | num1 | num2 | num3 | num4 | delta |
- | 2 | 2 | 2 | 2 | 0.0 |
- | 2 | 0 | 1 | 0 | 10.0 |
diff --git a/android/android-studio/Cukeulator/app/src/androidTest/java/cucumber/cukeulator/test/CalculatorActivitySteps.java b/android/android-studio/Cukeulator/app/src/androidTest/java/cucumber/cukeulator/test/CalculatorActivitySteps.java
deleted file mode 100644
index e3e9673381..0000000000
--- a/android/android-studio/Cukeulator/app/src/androidTest/java/cucumber/cukeulator/test/CalculatorActivitySteps.java
+++ /dev/null
@@ -1,142 +0,0 @@
-package cucumber.cukeulator.test;
-
-import android.app.Activity;
-import android.support.test.rule.ActivityTestRule;
-
-import org.junit.Rule;
-
-import cucumber.api.java.After;
-import cucumber.api.java.Before;
-import cucumber.api.java.en.Given;
-import cucumber.api.java.en.Then;
-import cucumber.api.java.en.When;
-import cucumber.cukeulator.CalculatorActivity;
-import cucumber.cukeulator.R;
-
-import static android.support.test.espresso.Espresso.onView;
-import static android.support.test.espresso.action.ViewActions.click;
-import static android.support.test.espresso.assertion.ViewAssertions.matches;
-import static android.support.test.espresso.matcher.ViewMatchers.withId;
-import static android.support.test.espresso.matcher.ViewMatchers.withText;
-import static org.junit.Assert.assertNotNull;
-
-/**
- * We use {@link ActivityTestRule} in order to have access to methods like getActivity
- * and getInstrumentation.
- *