aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbootstraponline <code@bootstraponline.com>2015-02-12 14:07:21 -0500
committerbootstraponline <code@bootstraponline.com>2015-02-12 17:28:20 -0500
commitbbb1420499989db89492d59b148f9411883bcd19 (patch)
tree7d94b22ab8842460a8b81d4cc3dfbaf2b62ee997
parentf47b864385e0439c0f857aa86741d5a95417108c (diff)
downloaddroiddriver-bbb1420499989db89492d59b148f9411883bcd19.tar.gz
Update documentation
Change-Id: Iaa138c841161d736bff305747c22eec22b65ad62
-rw-r--r--contributing.md59
-rw-r--r--contributing_aosp.md56
-rw-r--r--readme.md8
3 files changed, 78 insertions, 45 deletions
diff --git a/contributing.md b/contributing.md
index 727d778..f8ae829 100644
--- a/contributing.md
+++ b/contributing.md
@@ -1,54 +1,23 @@
-## Working on AOSP
+# Contributing
-#### Downloading source
+DroidDriver issues are [tracked on GitHub](https://github.com/appium/droiddriver/issues)
-Follow instructions at https://source.android.com/source/downloading.html except those noted below. You need to set up authentication to be able to submit changes.
-DroidDriver is an "unbundled" project. If you specify the repo manifest branch "droiddriver-dev" (see below), you'll get only the relevant projects instead of the whole AOSP tree.
+The [`master` branch](https://github.com/appium/droiddriver/tree/master) on GitHub tracks [the AOSP master branch](https://android.googlesource.com/platform/external/droiddriver). [All releases](releasing_to_jcenter.md) are made from the master branch.
-Create a dir for AOSP, e.g. ~/android/aosp. It should be separate from your work on the internal repo to avoid confusion.
-Then get a local client of the repo:
+Code changes should be [submitted to AOSP](contributing_aosp.md) and then they'll be synced to GitHub once they've passed code reivew on Gerrit.
-```bash
-$ mkdir droiddriver-dev
-$ cd droiddriver-dev
-$ repo init -u https://android.googlesource.com/a/platform/manifest -b droiddriver-dev
-$ repo sync
-```
+#### Requirements
-The code should be downloaded to the current dir. You may see some lines in the output like:
-curl: (22) The requested URL returned error: 401 Unauthorized
-These messages seem non-fatal and you should see these dirs after it is done:
-build/ external/ frameworks/ Makefile prebuilts/
+Gradle 2.2.1 or better is required to be installed on the system. In Android Studio, you'll need to provide the gradle location.
-#### Submitting Patches
+On Mac OSX with homebrew, `brew install gradle` will install gradle. To locate the path, use `brew info gradle` The homebrew path follows this format: `/usr/local/Cellar/gradle/2.2.1/libexec`
-[Submitting patches to Android](https://source.android.com/source/submit-patches.html)
+If you installed gradle using the zip (`gradle-2.2.1-bin.zip`), then the path will be the `gradle-2.2.1` folder.
-- `cd external/droiddriver/`
-- `repo start appium .`
-- `git pull git@github.com:appium/droiddriver.git`
-- `repo upload`
+#### Import into Android Studio
-After submitting a branch to gerrit for review, each commit will show up as an individual patch set on gerrit. First the code needs to be code reviewed (+2), then verified & submitted by an approver. Reviewers without approval rights are limited to adding a code review +1.
-
-If commits are uploaded together (on the same branch) then they are considered dependent upon eachother. To submit an individual commit without requiring other commits to be merged first, that commit must be cherry picked to a new branch. This can be done either locally or via the gerrit UI.
-
-#### Updating patches on Gerrit
-
-- `repo sync`
-- Use the `get fetch` command from the gerrit changeset under the Download menu
-- Make new commit then squash into previous commit to retain the gerrit change id
-- `repo upload`
-
-#### Building
-
-This sets up environment and some bash functions, particularly "tapas"
-(the counterpart of "lunch" for unbundled projects) and "m".
-
-```bash
-$ . build/envsetup.sh
-$ tapas droiddriver ManualDD
-$ m
-```
-
-ManualDD is an APK you can use to manually test DroidDriver.
+- Clone from git
+- Launch Android Studio and select `Open an existing Android Studio project`
+- Navigate to `droiddriver/build.gradle` and press Choose
+- Select `Use local gradle distribution` and enter the Gradle path
+- Android Studio will now import the project successfully
diff --git a/contributing_aosp.md b/contributing_aosp.md
new file mode 100644
index 0000000..8bd78b6
--- /dev/null
+++ b/contributing_aosp.md
@@ -0,0 +1,56 @@
+## Working on AOSP
+
+#### Downloading source
+
+Follow instructions at https://source.android.com/source/downloading.html except those noted below. You need to set up authentication to be able to submit changes.
+DroidDriver is an "unbundled" project. If you specify the repo manifest branch "droiddriver-dev" (see below), you'll get only the relevant projects instead of the whole AOSP tree.
+
+Create a dir for AOSP, e.g. ~/android/aosp. It should be separate from your work on the internal repo to avoid confusion.
+Then get a local client of the repo:
+
+```bash
+$ mkdir droiddriver-dev
+$ cd droiddriver-dev
+$ repo init -u https://android.googlesource.com/a/platform/manifest -b droiddriver-dev
+$ repo sync
+```
+
+The code should be downloaded to the current dir. You may see some lines in the output like:
+curl: (22) The requested URL returned error: 401 Unauthorized
+These messages seem non-fatal and you should see these dirs after it is done:
+build/ external/ frameworks/ Makefile prebuilts/
+
+#### Submitting Patches
+
+[Submitting patches to Android](https://source.android.com/source/submit-patches.html)
+
+- `cd external/droiddriver/`
+- `repo start somebranchname .`
+- make changes and commit them
+- `repo upload`
+
+After submitting a branch to gerrit for review, each commit will show up as an individual patch set on gerrit. First the code needs to be code reviewed (+2), then verified & submitted by an approver. Reviewers without approval rights are limited to adding a code review +1.
+
+If commits are uploaded together (on the same branch) then they are considered dependent upon eachother. To submit an individual commit without requiring other commits to be merged first, that commit must be cherry picked to a new branch. This can be done either locally or via the gerrit UI.
+
+#### Updating patches on Gerrit
+
+- `repo sync`
+- Use the `get fetch` command from the gerrit changeset under the Download menu
+- Make new commit then squash into previous commit to retain the gerrit change id
+- `repo upload`
+
+The [`repo prune`](https://source.android.com/source/using-repo.html) command can be used to delete already merged branches.
+
+#### Building
+
+This sets up environment and some bash functions, particularly "tapas"
+(the counterpart of "lunch" for unbundled projects) and "m".
+
+```bash
+$ . build/envsetup.sh
+$ tapas droiddriver ManualDD
+$ m
+```
+
+ManualDD is an APK you can use to manually test DroidDriver.
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..34749da
--- /dev/null
+++ b/readme.md
@@ -0,0 +1,8 @@
+# droiddriver
+
+DroidDriver is an framework for Android UI testing.
+
+- [Java Docs](http://appium.github.io/droiddriver/javadoc/)
+- [DroidDriver examples](https://github.com/appium/droiddriver_examples)
+- [Contributing to droiddriver](contributing.md)
+- [Making releases](releasing_to_jcenter.md)