This is a Android Client for testing Rest HTTP calls.
-
Make sure you have downloaded the latest version of Android Studio. It works on Linux, Windows and Mac. Download the correct version for your OS.
-
Go to the project repository and fork it by clicking "Fork" on the top right of the page.
-
If you are working on Windows, download Git Bash for Windows to get a full Unix bash with Git functionality.
-
Clone the forked project.
-
Open the project with Android Studio.
Note: When a repository is cloned, it has a default remote called origin that points to your fork on GitHub, not the original repository it was forked from. To keep track of the original repository, you should add another remote named upstream:
- Open terminal or git bash in your local repository and clone the repository:
$ git clone https://github.com/YOUR_USERNAME/rest-android.git
- Set the upstream:
$ git remote add upstream https://github.com/jboss-outreach/rest-android.git
- Run
$ git remote -v
to check the status, you should see something like the following:
origin https://github.com/YOUR_USERNAME/powerup-android.git (fetch)
origin https://github.com/YOUR_USERNAME/powerup-android.git (push)
upstream https://github.com/systers/powerup-android.git (fetch)
upstream https://github.com/systers/powerup-android.git (push)
- To update your local copy with remote changes, run the following:
$ git fetch upstream
$ git merge upstream/master
- This will give you an exact copy of the current remote. Make sure you don't have any local changes.
-
Make sure you are in the master branch
$ git checkout master
-
Sync your copy with
$ git pull
-
Create a new branch with a meaningful name
$ git checkout -b branch_name
-
Develop your feature on Android Studio and run it using the emulator or connecting your own Android device.
-
Clean your project from Android Studio > Build/Clean project.
-
Add the files you changed
$ git add file_name
(avoid using git add .) -
Commit your changes
$ git commit -m "Message briefly explaining the feature"
-
Keep one commit per feature. If you forgot to add changes, you can edit the previous commit
$ git commit --amend
-
Push to your forked repository
$ git push origin branch-name
-
Go into the Github repo and create a pull request explaining your changes.
-
If you are requested to make changes, update your commit using
$ git commit --amend
, push again and the pull request will edit automatically. -
You need to add a commit message to your commit for letting the reviewer know that changes are made.