- Clone the repository:
git https://github.com/amadeus4dev/amadeus-android.git
- Install latest Android Studio version
- Open project's root folder
build.gradle
with Android StudioFile > Open
- For authentication: Open the
.gradle
folder (root user) and edit/create thegradle.properties
file. Add your API Key and API Secret in thegradle.properties
:
amadeus.api.key="REPLACE_BY_YOUR_API_KEY"
amadeus.api.secret="REPLACE_BY_YOUR_API_SECRET"
To run the tests using a terminal.
cd amadeus-android
./gradlew testDebugUnitTest --tests 'com.amadeus.android.unit*'
You can publish a new version of the library locally and directly use it with one of your project or the Android Hotel Demo app.
Increment the number inside gradle.properties
file.
# publication properties
VERSION=X.X.X
...
Publish your new version locally.
./gradlew publishToMavenLocal
You can now use this new version in your build.gradle file.
implementation 'com.amadeus:amadeus-android:X.X.X'
-
Ensure the bug was not already reported by searching on GitHub under Issues.
-
If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a title and clear description, as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring.
-
Open a new GitHub pull request with the patch.
-
Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable.
-
Suggest your change in a new issue and start writing code.
-
Make sure your new code does not break any tests and include new tests.
-
With good code comes good documentation. Try to copy the existing documentation and adapt it to your needs.
-
Close the issue or mark it as inactive if you decide to discontinue working on the code.
- Ask any question about how to use the library by raising a new issue.