-
Notifications
You must be signed in to change notification settings - Fork 76
/
build.gradle
131 lines (116 loc) · 3.66 KB
/
build.gradle
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
buildscript {
ext.kotlin_version = "2.0.0"
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "com.android.tools.build:gradle:8.6.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
classpath "org.jetbrains.kotlin:compose-compiler-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'org.jetbrains.kotlin.plugin.serialization'
apply plugin: 'org.jetbrains.kotlin.plugin.parcelize'
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
repositories {
google()
mavenCentral()
gradlePluginPortal()
exclusiveContent {
forRepository {
maven {
url 'https://repo.mobile.jumio.ai'
}
}
filter {
includeGroup "com.jumio.android"
includeGroup "com.iproov.sdk"
}
}
}
ext {
SDK_VERSION = "4.12.0"
}
dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')
// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.0.0"
// only for the sample code
implementation "androidx.activity:activity-ktx:1.9.2"
implementation "androidx.multidex:multidex:2.0.1"
implementation platform("androidx.compose:compose-bom:2024.09.03")
implementation "androidx.compose.material3:material3"
implementation "androidx.compose.ui:ui"
implementation "androidx.compose.ui:ui-tooling-preview"
implementation "androidx.activity:activity-compose:1.9.2"
implementation "androidx.compose.compiler:compiler:1.5.15"
implementation "androidx.navigation:navigation-compose:2.8.2"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3"
implementation "androidx.lifecycle:lifecycle-runtime-compose:2.8.6"
// Jumio dependencies
implementation "com.jumio.android:core:${SDK_VERSION}"
implementation "com.jumio.android:docfinder:${SDK_VERSION}"
implementation "com.jumio.android:nfc:${SDK_VERSION}"
implementation "com.jumio.android:barcode-mlkit:${SDK_VERSION}"
implementation "com.jumio.android:iproov:${SDK_VERSION}"
implementation "com.jumio.android:defaultui:${SDK_VERSION}"
implementation "com.jumio.android:datadog:${SDK_VERSION}"
implementation "com.jumio.android:digital-identity:${SDK_VERSION}"
implementation "com.jumio.android:liveness:${SDK_VERSION}"
implementation "com.jumio.android:camerax:${SDK_VERSION}"
}
android {
compileSdkVersion 35
buildToolsVersion "35.0.0"
namespace "com.jumio.sample"
defaultConfig {
versionCode 1
versionName "Jumio Sample"
minSdkVersion 21
targetSdkVersion 35
multiDexEnabled true
vectorDrawables.useSupportLibrary true
}
buildFeatures {
// Determines whether to support View Binding.
viewBinding true
// Determines whether to support Data Binding.
dataBinding false
// Determines whether to support Jetpack Compose.
compose true
}
compileOptions {
sourceCompatibility 17
targetCompatibility 17
}
kotlinOptions {
jvmTarget = 17
}
lint {
abortOnError false
}
buildTypes {
debug {
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
resources.excludes.add("META-INF/kotlin-project-structure-metadata.json")
resources.excludes.add("META-INF/kotlinx_coroutines_core.version")
resources.excludes.add("META-INF/versions/9/OSGI-INF/MANIFEST.MF")
resources.excludes.add("commonMain/default/manifest")
}
composeOptions {
// compose version must be compatible with kotlin version (version of org.jetbrains.kotlin:kotlin-gradle-plugin)
// Refer to https://developer.android.com/jetpack/androidx/releases/compose-kotlin
kotlinCompilerExtensionVersion = "1.5.15"
}
}