> For the complete documentation index, see [llms.txt](https://ftcoders.first-tech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ftcoders.first-tech.com/first-tech-ttp-sdk/developer-zone/sdk-implementation-ttp/downloading-dependencies.md).

# Downloading dependencies

{% stepper %}
{% step %}
Now, let's define our dependencies and their versions. Open the libs.versions.toml file, which is in the gradle folder.

We'll define the number of versions. The dependencies will be separated into hml and prod in the \[versions] section.

Ex: `taponphoneSdkV2HML = "1.0.23"`&#x20;

Then define the dependency in the \[libraries] section.

`= "com.first-tech:taponphone-sdk-v2-hml", version.ref = "taponphoneSdkV2HML" }`
{% endstep %}

{% step %}
With all the changes completed, the libs.versions.toml file will look like this:

<figure><img src="https://732834971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRHBTYHK49B1fSJrGzk2y%2Fuploads%2FQxZZWRK9CSV6K1RnyiNK%2FPrint2.png?alt=media&amp;token=fd03e946-03f8-45ff-901b-b27dcef2efdc" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Now let's consume the SDK dependency (TTP) in the build.gradle.kts file of the application module (app). To do this, add the code snippet below in the dependencies block. We'll add each type of dependency separately: dev, hml and prod.

`"hmlImplementation"(libs.taponphone.sdk.v2.homol)`\
`"releaseImplementation"(libs.taponphone.sdk.v2.release)`&#x20;

<figure><img src="https://732834971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRHBTYHK49B1fSJrGzk2y%2Fuploads%2FTOqVtLdp5b93Qwmd599W%2Fimage.png?alt=media&amp;token=935b9992-d242-420d-8e7e-3d3e16c8cf55" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
The build.gradle.kts file will look like this.

<figure><img src="https://732834971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRHBTYHK49B1fSJrGzk2y%2Fuploads%2FI3GeV9S6JCaS1siT7Q9r%2FPrint3.png?alt=media&amp;token=6efaa019-cd81-456c-afc3-748923c66523" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
In the “buildTypes” topic, we'll add the following code snippet. So that the dependency is downloaded according to our build type.

```
release {
    resValue("string", "app_name", "taponphone-mobileapp-mpp-native")
    isMinifyEnabled = false
    proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
​
}
create("hml") {
    resValue("string", "app_name", "[HML] taponphone-mobileapp-mpp-native")
    applicationIdSuffix = ".hml"
    signingConfig = signingConfigs.getByName("debug")
}
```

{% endstep %}

{% step %}
Nosso arquivo build.gradle.kts,ficara com a seguinte maneira.Após adicionar o trecho de código, clique em Sync Now para realizar a sincronização e baixar a dependência do SDK (TTP).

<figure><img src="https://732834971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRHBTYHK49B1fSJrGzk2y%2Fuploads%2FbWzwsAs7xbXM2g5cXjDX%2Fimage.png?alt=media&amp;token=3f9cdd2d-2e21-4e7a-8e79-6f6e5f5cd948" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Depois disso, em External Libraries, veja que a dependência do SDK (TTP) foi baixada com sucesso. Agora, ela está disponível para uso.

<figure><img src="https://732834971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRHBTYHK49B1fSJrGzk2y%2Fuploads%2FmmddB5cIzupH4YuJZ1pA%2FPrint4.png?alt=media&amp;token=16572386-a345-4c52-b723-339a00f0b6ca" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://ftcoders.first-tech.com/first-tech-ttp-sdk/developer-zone/sdk-implementation-ttp/downloading-dependencies.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
