build.gradle 1.77 KB
Newer Older
Javokhir Savriev's avatar
Javokhir Savriev committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
plugins {
    id "com.android.application"
    id "org.jetbrains.kotlin.android"
}

android {
    compileSdk 33

    defaultConfig {
        applicationId "uz.myid.sdk.sample"
        minSdk 21
        targetSdk 33
        versionCode 1
        versionName "1.0.0"
    }

    buildTypes {
        debug {
            minifyEnabled false
            proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
        }
        release {
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    buildFeatures {
        viewBinding true
    }
}

dependencies {
Javokhir Savriev's avatar
Javokhir Savriev committed
40
    implementation(files("libs/myid-sdk-2.1.7-release.aar"))
Javokhir Savriev's avatar
Javokhir Savriev committed
41
42
43
44
45
46

    implementation("androidx.appcompat:appcompat:1.5.1")
    implementation("androidx.constraintlayout:constraintlayout:2.1.4")
    implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1")
    implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.5.1")

Javohir Savriy's avatar
2.1.5    
Javohir Savriy committed
47
    def cameraVersion = "1.2.2"
Javokhir Savriev's avatar
Javokhir Savriev committed
48
49
50
51
    implementation("androidx.camera:camera-camera2:$cameraVersion")
    implementation("androidx.camera:camera-lifecycle:$cameraVersion")
    implementation("androidx.camera:camera-view:$cameraVersion")

Javohir Savriy's avatar
2.1.5    
Javohir Savriy committed
52
    implementation("com.google.android.material:material:1.8.0")
Javokhir Savriev's avatar
Javokhir Savriev committed
53
54
    implementation("com.google.android.gms:play-services-mlkit-face-detection:17.1.0")
    implementation("com.google.android.gms:play-services-mlkit-text-recognition:18.0.2")
Javohir Savriy's avatar
2.1.5    
Javohir Savriy committed
55
    implementation("com.google.android.gms:play-services-mlkit-barcode-scanning:18.2.0")
Javokhir Savriev's avatar
Javokhir Savriev committed
56

Javohir Savriy's avatar
2.1.5    
Javohir Savriy committed
57
    implementation("io.ktor:ktor-client-android:2.1.2")
Javokhir Savriev's avatar
Javokhir Savriev committed
58
}