# Integration Guide (Core)

## **Steps to integrate Acquire android-sdk-core are as follows :**

**Step 1 :**

Add the SDK to your project by including the following snippets in the **`build.gradle`** file:

Project level build.gradle :

```javascript
allprojects {
...
    repositories {
   // Add this lines 
        maven {
                url "https://android-sdk.acquire.io/artifactory/libs-release-local/"
        }
    }
...
}

```

Module build.gradle :

```javascript
dependencies {
    implementation 'com.acquireio:core:3.+'
    implementation "org.jetbrains.kotlin:kotlin-stdlib:1.5.20"
    implementation 'androidx.appcompat:appcompat:1.3.0'
    implementation 'com.google.android.material:material:1.3.0'
    implementation 'androidx.core:core-ktx:1.5.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.2"
    implementation 'com.squareup.okhttp3:okhttp:4.9.0'
    api('io.socket:socket.io-client:1.0.1') {
        exclude group: 'org.json', module: 'json'
    }
    implementation 'com.google.code.gson:gson:2.8.6'
    implementation 'com.beust:klaxon:5.0.1'
    implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
    implementation "androidx.fragment:fragment-ktx:1.3.5"
    implementation "androidx.room:room-runtime:$room_version"
    kapt "androidx.room:room-compiler:$room_version"
    implementation "androidx.room:room-ktx:$room_version"
    implementation 'org.greenrobot:eventbus:3.2.0'
    implementation 'org.webrtc:google-webrtc:1.0.32006'
    implementation 'com.squareup.picasso:picasso:2.71828'
    api 'androidx.emoji:emoji-appcompat:1.1.0'
    api 'pl.droidsonroids.gif:android-gif-drawable:1.2.20'
    api 'androidx.browser:browser:1.3.0'
}
```

{% hint style="info" %}
If you have added any of this dependency already then try to match the version.
{% endhint %}

**Step 2 :**

Initialize Acquire in the **`onCreate()`** method of an Activity where you plan to use the SDK, or an Application subclass. Use the initialization details provided by the Acquire Support admin and an Application instance:

```javascript
class XYZApp : Application() {
    override fun onCreate() {
        super.onCreate()
        AcquireApp.init(this, “put your account id here”)
    }
}
```

To know more about initialization options [click here](https://developer.acquire.io/master/android/start-using-acquire#initialize-acquire-sdk).&#x20;

To handle chat events manually [click here](https://developer.acquire.io/master/acquire-apis#chat-apis).&#x20;

To customize our chat widget [click here](https://developer.acquire.io/master/custom-ui-widget#customize-chat-widget).

&#x20;To reduce apk size (e.g. for release version).

{% hint style="info" %}
Use **apk split feature of android**&#x20;

[**https://developer.android.com/studio/build/configure-apk-splits**](https://developer.android.com/studio/build/configure-apk-splits)

for reference see below screenshot ->
{% endhint %}

![](https://4291449717-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMa9C05MmCnAr03_v9O%2F-LcoBf4x7mIvDR2_G6s5%2F-LcoBwsi4TEi2zIb4nfA%2Fimage.png?alt=media\&token=d66c714c-c19e-4628-b267-8fc41d3148de)


---

# Agent Instructions: 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:

```
GET https://developer.acquire.io/master/android/getting-started/integration-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
