2023-08-15 14:33:02 -04:00
|
|
|
/*
|
|
|
|
* Copyright 2023 Signal Messenger, LLC
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id("signal-sample-app")
|
2024-12-20 11:23:57 -05:00
|
|
|
alias(libs.plugins.compose.compiler)
|
2023-08-15 14:33:02 -04:00
|
|
|
}
|
|
|
|
|
2023-08-16 15:29:45 -03:00
|
|
|
val signalBuildToolsVersion: String by rootProject.extra
|
|
|
|
val signalCompileSdkVersion: String by rootProject.extra
|
|
|
|
val signalTargetSdkVersion: Int by rootProject.extra
|
|
|
|
val signalMinSdkVersion: Int by rootProject.extra
|
|
|
|
val signalJavaVersion: JavaVersion by rootProject.extra
|
|
|
|
val signalKotlinJvmTarget: String by rootProject.extra
|
2023-08-15 14:33:02 -04:00
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "org.thoughtcrime.video.app"
|
|
|
|
compileSdkVersion = signalCompileSdkVersion
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId = "org.thoughtcrime.video.app"
|
2024-01-12 18:18:01 -05:00
|
|
|
minSdk = 23
|
2023-08-15 14:33:02 -04:00
|
|
|
targetSdk = signalTargetSdkVersion
|
|
|
|
versionCode = 1
|
|
|
|
versionName = "1.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
vectorDrawables {
|
|
|
|
useSupportLibrary = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
isMinifyEnabled = false
|
|
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = signalJavaVersion
|
|
|
|
targetCompatibility = signalJavaVersion
|
|
|
|
}
|
|
|
|
kotlinOptions {
|
2023-08-16 15:29:45 -03:00
|
|
|
jvmTarget = signalKotlinJvmTarget
|
2023-08-15 14:33:02 -04:00
|
|
|
}
|
|
|
|
buildFeatures {
|
|
|
|
compose = true
|
|
|
|
}
|
|
|
|
composeOptions {
|
2024-05-17 10:48:55 -04:00
|
|
|
kotlinCompilerExtensionVersion = "1.5.4"
|
2023-08-15 14:33:02 -04:00
|
|
|
}
|
|
|
|
packaging {
|
|
|
|
resources {
|
|
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.androidx.fragment.ktx)
|
|
|
|
implementation(libs.androidx.activity.compose)
|
|
|
|
implementation(platform(libs.androidx.compose.bom))
|
|
|
|
implementation(libs.androidx.compose.material3)
|
|
|
|
implementation(libs.bundles.media3)
|
2024-01-12 18:18:01 -05:00
|
|
|
implementation(project(":video"))
|
|
|
|
implementation(project(":core-util"))
|
2024-08-22 11:23:53 -04:00
|
|
|
implementation("androidx.work:work-runtime-ktx:2.9.1")
|
|
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.4")
|
2024-01-22 17:32:29 -05:00
|
|
|
implementation(libs.androidx.compose.ui.tooling.core)
|
|
|
|
implementation(libs.androidx.compose.ui.test.manifest)
|
2024-01-22 17:08:27 -05:00
|
|
|
androidTestImplementation(testLibs.junit.junit)
|
|
|
|
androidTestImplementation(testLibs.androidx.test.runner)
|
|
|
|
androidTestImplementation(testLibs.androidx.test.ext.junit.ktx)
|
2023-08-15 14:33:02 -04:00
|
|
|
}
|