apply plugin: 'com.android.application' apply plugin: 'org.jetbrains.kotlin.android' def apiBaseUrl = project.findProperty("API_BASE_URL") ?: "https://sign.linkedcorp.net/api" def keystoreProperties = new Properties() def keystorePropertiesFile = rootProject.file("keystore.properties") def hasReleaseKeystore = keystorePropertiesFile.exists() if (hasReleaseKeystore) { keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) } android { namespace 'net.linkedcorp.linkedsign' compileSdk 35 defaultConfig { applicationId "net.linkedcorp.linkedsign" minSdk 26 targetSdk 35 versionCode 10219 versionName "1.2.19" buildConfigField "String", "API_BASE_URL", "\"${apiBaseUrl}\"" } signingConfigs { if (hasReleaseKeystore) { release { storeFile rootProject.file(keystoreProperties['storeFile']) storePassword keystoreProperties['storePassword'] keyAlias keystoreProperties['keyAlias'] keyPassword keystoreProperties['keyPassword'] } } } buildTypes { debug { minifyEnabled false } release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' if (hasReleaseKeystore) { signingConfig signingConfigs.release } } } compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = '17' } buildFeatures { compose true buildConfig true } composeOptions { kotlinCompilerExtensionVersion compose_compiler_version } packaging { resources { excludes += '/META-INF/{AL2.0,LGPL2.1}' } } } dependencies { implementation platform('androidx.compose:compose-bom:2024.09.00') implementation 'androidx.appcompat:appcompat:1.7.0' implementation 'androidx.core:core-ktx:1.13.1' implementation 'androidx.activity:activity-compose:1.9.2' implementation 'androidx.biometric:biometric:1.1.0' implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.6' implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.8.6' implementation 'androidx.compose.ui:ui' implementation 'androidx.compose.ui:ui-tooling-preview' implementation 'androidx.compose.material3:material3' implementation 'androidx.compose.material:material-icons-extended' implementation 'androidx.security:security-crypto:1.1.0-alpha06' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1' implementation 'com.squareup.retrofit2:retrofit:2.11.0' implementation 'com.squareup.retrofit2:converter-moshi:2.11.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.squareup.moshi:moshi-kotlin:1.15.1' debugImplementation 'androidx.compose.ui:ui-tooling' debugImplementation 'androidx.compose.ui:ui-test-manifest' }