2026-11-13 22:50:46 +01:00
|
|
|
plugins {
|
|
|
|
|
id("com.android.application")
|
|
|
|
|
id("org.jetbrains.kotlin.plugin.compose")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
namespace = "dev.alvin.smbexplorer"
|
|
|
|
|
compileSdk = 37
|
|
|
|
|
val releaseKeystore = providers.environmentVariable("ANDROID_KEYSTORE_PATH").orNull
|
|
|
|
|
if (releaseKeystore != null) {
|
|
|
|
|
signingConfigs {
|
|
|
|
|
create("release") {
|
|
|
|
|
storeFile = file(releaseKeystore)
|
|
|
|
|
storePassword = providers.environmentVariable("ANDROID_KEYSTORE_PASSWORD").get()
|
|
|
|
|
keyAlias = providers.environmentVariable("ANDROID_KEY_ALIAS").get()
|
|
|
|
|
keyPassword = providers.environmentVariable("ANDROID_KEY_PASSWORD").get()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
buildTypes {
|
|
|
|
|
getByName("release") { signingConfig = signingConfigs.getByName("release") }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
defaultConfig {
|
|
|
|
|
applicationId = "dev.alvin.smbexplorer"
|
|
|
|
|
minSdk = 28
|
|
|
|
|
targetSdk = 36
|
2026-11-14 11:54:14 +01:00
|
|
|
versionCode = 2
|
|
|
|
|
versionName = "1.0.0-rc.1"
|
2026-11-13 22:50:46 +01:00
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
}
|
|
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
|
}
|
|
|
|
|
buildFeatures { compose = true }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation(platform("androidx.compose:compose-bom:2026.09.00"))
|
|
|
|
|
implementation("androidx.activity:activity-compose:1.11.0")
|
|
|
|
|
implementation("androidx.compose.material3:material3")
|
|
|
|
|
implementation("androidx.compose.foundation:foundation")
|
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2")
|
|
|
|
|
implementation("com.hierynomus:smbj:0.15.0")
|
2026-11-14 11:54:14 +01:00
|
|
|
implementation("androidx.media3:media3-exoplayer:1.11.1")
|
|
|
|
|
implementation("androidx.media3:media3-ui:1.11.1")
|
2026-11-13 22:50:46 +01:00
|
|
|
androidTestImplementation("androidx.test:runner:1.7.0")
|
|
|
|
|
androidTestImplementation("androidx.test.ext:junit:1.3.0")
|
2026-11-14 11:54:14 +01:00
|
|
|
testImplementation("junit:junit:4.13.2")
|
2026-11-13 22:50:46 +01:00
|
|
|
}
|