mirror of
https://github.com/vernu/textbee.git
synced 2026-07-31 01:17:52 -04:00
131 lines
4.2 KiB
Groovy
131 lines
4.2 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'com.google.gms.google-services'
|
|
id 'com.google.firebase.crashlytics'
|
|
id 'org.jetbrains.kotlin.android'
|
|
}
|
|
|
|
android {
|
|
compileSdk 34
|
|
|
|
defaultConfig {
|
|
minSdk 24
|
|
targetSdk 34
|
|
versionCode 18
|
|
versionName "2.8.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
// javaCompileOptions {
|
|
// annotationProcessorOptions {
|
|
// arguments["room.schemaLocation"] = "$projectDir/schemas"
|
|
// }
|
|
// }
|
|
}
|
|
signingConfigs {
|
|
debug {
|
|
storeFile file("${System.getenv("HOME")}/.android/debug.keystore")
|
|
storePassword "android"
|
|
keyAlias "androiddebugkey"
|
|
keyPassword "android"
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
// TODO: Change to release signing config
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
debug {
|
|
minifyEnabled false
|
|
debuggable true
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
|
|
flavorDimensions "environment"
|
|
|
|
productFlavors {
|
|
dev {
|
|
dimension "environment"
|
|
applicationId "com.vernu.sms.dev"
|
|
versionNameSuffix "-dev"
|
|
buildConfigField "String", "API_BASE_URL", '"https://api.dev.textbee.dev/api/v1/"'
|
|
buildConfigField "String", "ENVIRONMENT", '"development"'
|
|
resValue "string", "app_name", "textbee.dev (Dev)"
|
|
}
|
|
|
|
prod {
|
|
dimension "environment"
|
|
applicationId "com.vernu.sms"
|
|
buildConfigField "String", "API_BASE_URL", '"https://api.textbee.dev/api/v1/"'
|
|
buildConfigField "String", "ENVIRONMENT", '"production"'
|
|
resValue "string", "app_name", "textbee.dev"
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion '1.4.8'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.3.0'
|
|
implementation 'com.google.android.material:material:1.8.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
|
|
implementation platform('com.google.firebase:firebase-bom:29.2.1')
|
|
implementation 'com.google.firebase:firebase-analytics'
|
|
implementation 'com.google.firebase:firebase-messaging'
|
|
implementation 'com.google.firebase:firebase-messaging-directboot'
|
|
implementation 'com.google.firebase:firebase-crashlytics'
|
|
|
|
implementation 'com.google.code.gson:gson:2.9.0'
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
|
|
|
|
implementation 'androidx.work:work-runtime:2.7.1'
|
|
|
|
// Jetpack Compose
|
|
implementation platform('androidx.compose:compose-bom:2023.08.00')
|
|
implementation 'androidx.compose.ui:ui'
|
|
implementation 'androidx.compose.material3:material3'
|
|
implementation 'androidx.compose.ui:ui-tooling-preview'
|
|
implementation 'androidx.compose.material:material-icons-extended'
|
|
debugImplementation 'androidx.compose.ui:ui-tooling'
|
|
|
|
// Compose integration
|
|
implementation 'androidx.activity:activity-compose:1.7.2'
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1'
|
|
implementation 'androidx.navigation:navigation-compose:2.7.2'
|
|
|
|
// Coroutines + Lifecycle
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1'
|
|
|
|
// def room_version = "2.4.2"
|
|
// implementation "androidx.room:room-runtime:$room_version"
|
|
// annotationProcessor "androidx.room:room-compiler:$room_version"
|
|
}
|
|
|