2022-01-22 17:54:06 +00:00
|
|
|
plugins {
|
|
|
|
|
id 'com.android.application'
|
2022-02-16 12:49:47 +00:00
|
|
|
id 'org.jetbrains.kotlin.android'
|
|
|
|
|
id 'org.jetbrains.kotlin.plugin.serialization'
|
2022-01-22 17:54:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
compileSdk 32
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
applicationId "chat.simplex.app"
|
2022-03-02 07:11:20 +00:00
|
|
|
minSdk 29
|
2022-01-22 17:54:06 +00:00
|
|
|
targetSdk 32
|
2022-04-20 12:44:29 +04:00
|
|
|
versionCode 26
|
2022-04-19 16:57:05 +04:00
|
|
|
versionName "1.6"
|
2022-01-22 17:54:06 +00:00
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
ndk {
|
|
|
|
|
abiFilters 'arm64-v8a'
|
|
|
|
|
}
|
2022-02-16 12:49:47 +00:00
|
|
|
vectorDrawables {
|
|
|
|
|
useSupportLibrary true
|
|
|
|
|
}
|
2022-01-22 17:54:06 +00:00
|
|
|
externalNativeBuild {
|
|
|
|
|
cmake {
|
|
|
|
|
cppFlags ''
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
release {
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
}
|
|
|
|
|
kotlinOptions {
|
|
|
|
|
jvmTarget = '1.8'
|
2022-02-27 12:14:26 +00:00
|
|
|
freeCompilerArgs += "-opt-in=kotlinx.coroutines.DelicateCoroutinesApi"
|
2022-03-17 09:42:59 +00:00
|
|
|
freeCompilerArgs += "-opt-in=androidx.compose.foundation.ExperimentalFoundationApi"
|
2022-02-27 12:14:26 +00:00
|
|
|
freeCompilerArgs += "-opt-in=androidx.compose.ui.text.ExperimentalTextApi"
|
|
|
|
|
freeCompilerArgs += "-opt-in=androidx.compose.material.ExperimentalMaterialApi"
|
|
|
|
|
freeCompilerArgs += "-opt-in=com.google.accompanist.insets.ExperimentalAnimatedInsets"
|
|
|
|
|
freeCompilerArgs += "-opt-in=com.google.accompanist.permissions.ExperimentalPermissionsApi"
|
2022-03-03 08:32:25 +00:00
|
|
|
freeCompilerArgs += "-opt-in=kotlinx.serialization.InternalSerializationApi"
|
2022-01-22 17:54:06 +00:00
|
|
|
}
|
|
|
|
|
externalNativeBuild {
|
|
|
|
|
cmake {
|
|
|
|
|
path file('src/main/cpp/CMakeLists.txt')
|
|
|
|
|
version '3.10.2'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
buildFeatures {
|
2022-02-16 12:49:47 +00:00
|
|
|
compose true
|
|
|
|
|
}
|
|
|
|
|
composeOptions {
|
|
|
|
|
kotlinCompilerExtensionVersion compose_version
|
|
|
|
|
}
|
|
|
|
|
packagingOptions {
|
|
|
|
|
resources {
|
|
|
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
|
|
|
}
|
2022-01-22 17:54:06 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation 'androidx.core:core-ktx:1.7.0'
|
2022-02-16 12:49:47 +00:00
|
|
|
implementation "androidx.compose.ui:ui:$compose_version"
|
|
|
|
|
implementation "androidx.compose.material:material:$compose_version"
|
|
|
|
|
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
|
2022-02-19 22:22:07 +00:00
|
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.1'
|
2022-02-28 10:44:48 +00:00
|
|
|
implementation 'androidx.lifecycle:lifecycle-process:2.4.1'
|
2022-02-19 22:22:07 +00:00
|
|
|
implementation 'androidx.activity:activity-compose:1.4.0'
|
2022-02-17 21:52:37 +00:00
|
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-datetime:0.3.2'
|
2022-02-16 12:49:47 +00:00
|
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2'
|
2022-02-18 13:10:24 +00:00
|
|
|
implementation "androidx.compose.material:material-icons-extended:$compose_version"
|
2022-02-19 22:22:07 +00:00
|
|
|
implementation "androidx.navigation:navigation-compose:2.4.1"
|
2022-02-22 07:46:42 +00:00
|
|
|
implementation "com.google.accompanist:accompanist-insets:0.23.0"
|
2022-02-19 22:22:07 +00:00
|
|
|
|
2022-02-27 12:14:26 +00:00
|
|
|
def work_version = "2.7.1"
|
|
|
|
|
implementation "androidx.work:work-runtime-ktx:$work_version"
|
|
|
|
|
implementation "androidx.work:work-multiprocess:$work_version"
|
|
|
|
|
|
2022-02-19 22:22:07 +00:00
|
|
|
def camerax_version = "1.1.0-beta01"
|
|
|
|
|
implementation "androidx.camera:camera-core:${camerax_version}"
|
|
|
|
|
implementation "androidx.camera:camera-camera2:${camerax_version}"
|
|
|
|
|
implementation "androidx.camera:camera-lifecycle:${camerax_version}"
|
|
|
|
|
implementation "androidx.camera:camera-view:${camerax_version}"
|
2022-04-25 11:05:09 +01:00
|
|
|
|
2022-02-19 22:22:07 +00:00
|
|
|
//Barcode
|
2022-04-25 11:05:09 +01:00
|
|
|
implementation 'org.boofcv:boofcv-android:0.40.1'
|
|
|
|
|
implementation 'org.boofcv:boofcv-core:0.40.1'
|
|
|
|
|
|
2022-02-19 22:22:07 +00:00
|
|
|
//Camera Permission
|
2022-02-22 07:46:42 +00:00
|
|
|
implementation "com.google.accompanist:accompanist-permissions:0.23.0"
|
2022-02-19 22:22:07 +00:00
|
|
|
|
2022-04-11 09:39:04 +01:00
|
|
|
// Link Previews
|
|
|
|
|
implementation 'org.jsoup:jsoup:1.13.1'
|
|
|
|
|
|
2022-02-16 12:49:47 +00:00
|
|
|
testImplementation 'junit:junit:4.13.2'
|
2022-01-22 17:54:06 +00:00
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
2022-02-16 12:49:47 +00:00
|
|
|
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
|
|
|
|
|
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
|
|
|
|
|
}
|