> 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-pt/area-do-desenvolvedor/codelab-implementacao-sdk-ttp/baixando-as-dependencias.md).

# Baixando as dependências

{% stepper %}
{% step %}
Agora, vamos definir nossas dependências e as versões delas. Abra o arquivo libs.versions.toml, que está na pasta gradle.\
Definiremos o número das versões. As dependências serão separadas em três versões diferentes (dev, hml e prod) na seção \[versions].

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

Em seguida, defina a dependência na seção \[libraries].

`= "com.first-tech:taponphone-sdk-v2-hml", version.ref = "taponphoneSdkV2DEV" }`

{% endstep %}

{% step %}
Com todas as alterações concluídas, o arquivo libs.versions.toml ficará da seguinte maneira:

<figure><img src="/files/pqsXs4AWdDUF8suE2yDB" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
&#x20;Agora vamos consumir a dependência do SDK (TTP) no arquivo build.gradle.kts do módulo do aplicativo (app). Para isso, adicione o trecho de código abaixo no bloco dependencies. Adicionaremos cada tipo de dependência separadamente: dev, hml e prod.

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

<figure><img src="/files/u8T8wThxPF14TJbTSZJ7" alt=""><figcaption></figcaption></figure>

{% endstep %}

{% step %}
O arquivo build.gradle.kts ficará da seguinte maneira.

<figure><img src="/files/hkypHD4oue6b1XXLvQrL" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Dentro do tópico "buildTypes", adicionaremos o seguinte trecho de código abaixo. Para que a dependencia seja baixada de acordo com nosso tipode build.

```
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/WIFE7xTePy9ns445bcXI" 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/n3adKc9TtHcRV3jTmBgp" 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-pt/area-do-desenvolvedor/codelab-implementacao-sdk-ttp/baixando-as-dependencias.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.
