1plugins {2 id "com.android.application"3 id "org.jetbrains.kotlin.android"4 id "org.jetbrains.kotlin.plugin.compose"5 id "org.jetbrains.kotlin.plugin.parcelize"6 id "org.jetbrains.kotlin.plugin.serialization"7 id "kotlin-kapt"8 id "com.google.dagger.hilt.android"9}1011android {12 namespace "com.peachpasswords"13 compileSdk 351415 defaultConfig {16 applicationId "com.peachpasswords"17 minSdk 2618 targetSdk 3519 versionCode 23670020 versionName "2.3.67"2122 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"23 vectorDrawables {24 useSupportLibrary true25 }26 }2728 signingConfigs {29 release {30 // Read from local.properties (koh-ignored) so the keystore and its31 // password never enter version history. Absent on a machine without32 // the key -> release build stays unsigned rather than failing.33 def props = new Properties()34 def f = rootProject.file("local.properties")35 if (f.exists()) { f.withInputStream { props.load(it) } }36 if (props.getProperty("peachStoreFile")) {37 storeFile file(props.getProperty("peachStoreFile"))38 storePassword props.getProperty("peachStorePassword")39 keyAlias props.getProperty("peachKeyAlias")40 keyPassword props.getProperty("peachKeyPassword")41 }42 }43 }4445 buildTypes {46 debug {47 applicationIdSuffix ".debug"48 versionNameSuffix "-debug"49 debuggable true50 }51 release {52 signingConfig signingConfigs.release53 minifyEnabled false54 proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"55 }56 }5758 compileOptions {59 sourceCompatibility JavaVersion.VERSION_1760 targetCompatibility JavaVersion.VERSION_1761 }6263 kotlinOptions {64 jvmTarget = "17"65 }6667 buildFeatures {68 compose true69 buildConfig true70 }7172 composeOptions {73 kotlinCompilerExtensionVersion "1.5.15"74 }7576 packaging {77 resources {78 excludes += [79 "/META-INF/{AL2.0,LGPL2.1}",80 "META-INF/DEPENDENCIES",81 "META-INF/LICENSE*",82 "META-INF/NOTICE*",83 ]84 }85 }86}8788dependencies {89 implementation platform("androidx.compose:compose-bom:2024.06.00")90 androidTestImplementation platform("androidx.compose:compose-bom:2024.06.00")9192 implementation "androidx.activity:activity-compose:1.9.2"93 implementation "androidx.autofill:autofill:1.1.0"94 implementation "androidx.biometric:biometric:1.1.0"95 implementation "androidx.core:core-splashscreen:1.0.1"96 implementation "androidx.appcompat:appcompat:1.7.0"97 implementation "androidx.credentials:credentials:1.5.0"98 implementation "androidx.credentials:credentials-play-services-auth:1.5.0"99 implementation "androidx.glance:glance-appwidget:1.1.0"100 implementation "androidx.glance:glance-material3:1.1.0"101 implementation "androidx.hilt:hilt-navigation-compose:1.2.0"102 implementation "androidx.lifecycle:lifecycle-runtime-compose:2.8.4"103 implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.8.4"104 implementation "androidx.lifecycle:lifecycle-process:2.8.4"105 implementation "androidx.navigation:navigation-compose:2.8.0"106 // MN-6: androidx.security:security-crypto has no stable 1.1.x release — the only107 // stable line is 1.0.0 (2021), which lacks the Tink updates and Android 12+ fixes108 // in the 1.1.0 alphas and is widely superseded in production. Deliberately pinned109 // to an exact alpha (never a floating range) so the resolved artifact is110 // reproducible. Revisit if/when 1.1.0 stabilises. Used only for the duress/license111 // EncryptedSharedPreferences; the vault slots are sealed by VaultCrypto, not this.112 implementation "androidx.security:security-crypto:1.1.0-alpha06"113 implementation "androidx.compose.material3:material3"114 implementation "androidx.compose.ui:ui"115 implementation "androidx.compose.ui:ui-tooling-preview"116 implementation "androidx.compose.foundation:foundation"117 implementation "androidx.compose.material:material-icons-extended"118 implementation "androidx.core:core-ktx:1.13.1"119 implementation "com.google.android.material:material:1.12.0"120121 implementation "com.google.dagger:hilt-android:2.51.1"122 kapt "com.google.dagger:hilt-compiler:2.51.1"123 implementation "com.google.zxing:core:3.5.3"124 implementation "androidx.camera:camera-core:1.3.4"125 implementation "androidx.camera:camera-camera2:1.3.4"126 implementation "androidx.camera:camera-lifecycle:1.3.4"127 implementation "androidx.camera:camera-view:1.3.4"128 implementation "com.squareup.okhttp3:okhttp:4.12.0"129 implementation "org.bouncycastle:bcprov-jdk18on:1.78.1"130 // zstd-jni (reference libzstd) — per-section compression for the PeachScript131 // PCHS binary format (MF-2). Required for cross-platform interop with the132 // browser's zstd sections. The @aar variant ships the Android jniLibs133 // (lib/<abi>/libzstd-jni.so); the plain jar bundles only desktop natives and134 // would fail with UnsatisfiedLinkError on-device.135 implementation "com.github.luben:zstd-jni:1.5.6-3@aar"136 // The @aar ships only Android .so; the plain jar carries the desktop natives137 // the host JVM unit tests need.138 testImplementation "com.github.luben:zstd-jni:1.5.6-3"139 implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1"140 implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1"141142 debugImplementation "androidx.compose.ui:ui-tooling"143 debugImplementation "androidx.compose.ui:ui-test-manifest"144145 androidTestImplementation "androidx.test.ext:junit:1.2.1"146 androidTestImplementation "androidx.test.espresso:espresso-core:3.6.1"147 androidTestImplementation "androidx.compose.ui:ui-test-junit4"148149 testImplementation "junit:junit:4.13.2"150 testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.1"151}