> 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="/files/AhswsqrQVKFUFOrCNqGt" 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="/files/2cDbAMLnNlItrMoX6G5g" alt=""><figcaption></figcaption></figure>
{% endstep %}

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

<figure><img src="/files/b6ibqs2Yne7FoN5HCsIy" 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="/files/HuAMHSQSznK2CCdN0vQO" 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="/files/gRuxPSMHYCWkZeHeoUBo" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
