Exclude netcipher from netcipher-webkit to avoid duplicate R classes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
117 lines
3.6 KiB
Kotlin
117 lines
3.6 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("org.jetbrains.kotlin.plugin.compose")
|
|
id("org.jetbrains.kotlin.plugin.serialization") version "2.1.0"
|
|
id("com.google.devtools.ksp")
|
|
}
|
|
|
|
android {
|
|
namespace = "uk.silverlabs.silverdroid"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
applicationId = "uk.silverlabs.silverdroid"
|
|
minSdk = 26
|
|
targetSdk = 35
|
|
versionCode = 1
|
|
versionName = "1.0.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary = true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
signingConfig = signingConfigs.getByName("debug")
|
|
}
|
|
release {
|
|
// Temporarily disable minification for debugging
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
// Using debug signing for now - unsigned release
|
|
signingConfig = signingConfigs.getByName("debug")
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
|
|
packaging {
|
|
resources {
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Core Android
|
|
implementation("androidx.core:core-ktx:1.15.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
|
|
implementation("androidx.activity:activity-compose:1.9.3")
|
|
|
|
// Compose BOM and UI
|
|
implementation(platform("androidx.compose:compose-bom:2025.01.00"))
|
|
implementation("androidx.compose.ui:ui")
|
|
implementation("androidx.compose.ui:ui-graphics")
|
|
implementation("androidx.compose.ui:ui-tooling-preview")
|
|
implementation("androidx.compose.material3:material3")
|
|
implementation("androidx.compose.material:material-icons-extended")
|
|
|
|
// Compose Navigation
|
|
implementation("androidx.navigation:navigation-compose:2.8.5")
|
|
|
|
// WebView
|
|
implementation("androidx.webkit:webkit:1.12.1")
|
|
|
|
// Room Database
|
|
implementation("androidx.room:room-runtime:2.6.1")
|
|
implementation("androidx.room:room-ktx:2.6.1")
|
|
ksp("androidx.room:room-compiler:2.6.1")
|
|
|
|
// Coroutines
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.1")
|
|
|
|
// DataStore (for preferences)
|
|
implementation("androidx.datastore:datastore-preferences:1.1.1")
|
|
|
|
// JSON parsing
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.0")
|
|
|
|
// Coil for image loading
|
|
implementation("io.coil-kt.coil3:coil-compose:3.0.4")
|
|
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
|
|
|
|
// Blur effect library
|
|
implementation("com.github.Dimezis:BlurView:version-2.0.5")
|
|
|
|
// Tor (Orbot integration)
|
|
implementation("info.guardianproject.netcipher:netcipher:2.1.0")
|
|
implementation("info.guardianproject.netcipher:netcipher-webkit:2.1.0") {
|
|
exclude(group = "info.guardianproject.netcipher", module = "netcipher")
|
|
}
|
|
|
|
// Testing
|
|
testImplementation("junit:junit:4.13.2")
|
|
androidTestImplementation("androidx.test.ext:junit:1.2.1")
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
|
|
androidTestImplementation(platform("androidx.compose:compose-bom:2025.01.00"))
|
|
androidTestImplementation("androidx.compose.ui:ui-test-junit4")
|
|
debugImplementation("androidx.compose.ui:ui-tooling")
|
|
debugImplementation("androidx.compose.ui:ui-test-manifest")
|
|
} |