isolaatti-android/app/build.gradle

165 lines
5.6 KiB
Groovy
Raw Permalink Normal View History

2023-02-06 13:44:27 -06:00
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
2023-07-27 22:49:06 -06:00
id 'kotlin-android'
2023-02-06 13:44:27 -06:00
id 'com.google.dagger.hilt.android'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.8.0'
2023-07-15 20:58:57 -06:00
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
2023-07-31 00:25:25 -06:00
id 'androidx.navigation.safeargs.kotlin'
id 'com.google.gms.google-services'
id 'com.google.firebase.crashlytics'
id 'com.google.android.gms.oss-licenses-plugin'
2024-12-24 10:32:12 -06:00
id 'org.jetbrains.kotlin.plugin.compose' version '2.1.0'
id 'com.google.devtools.ksp'
2023-02-06 13:44:27 -06:00
}
android {
namespace 'com.isolaatti'
2025-04-13 19:35:34 -06:00
compileSdk 35
2023-02-06 13:44:27 -06:00
viewBinding {
enabled = true
}
2024-11-10 23:48:00 -06:00
buildFeatures {
compose true
}
2023-02-06 13:44:27 -06:00
defaultConfig {
applicationId "com.isolaatti"
2023-09-09 16:09:22 -06:00
minSdk 24
2024-01-14 12:18:29 -06:00
targetSdk 34
2024-07-14 13:21:34 -06:00
versionCode 7
versionName "0.7-vc7"
2023-02-06 13:44:27 -06:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
2023-07-31 00:25:25 -06:00
coreLibraryDesugaringEnabled true
2023-07-27 22:49:06 -06:00
sourceCompatibility JavaVersion.VERSION_17
2023-07-09 13:12:04 -06:00
targetCompatibility JavaVersion.VERSION_17
2023-02-06 13:44:27 -06:00
}
kotlinOptions {
2023-07-09 13:12:04 -06:00
jvmTarget = '17'
2023-02-06 13:44:27 -06:00
}
}
dependencies {
2024-12-24 10:32:12 -06:00
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.3'
2023-02-06 13:44:27 -06:00
2024-03-14 22:22:25 -06:00
implementation 'androidx.core:core-ktx:1.12.0'
2023-07-08 17:11:55 -06:00
implementation 'androidx.appcompat:appcompat:1.6.1'
2024-03-14 22:22:25 -06:00
implementation "androidx.recyclerview:recyclerview:1.3.2"
2023-02-06 13:44:27 -06:00
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
2024-03-14 22:22:25 -06:00
implementation 'androidx.core:core-ktx:1.12.0'
2025-01-26 01:54:04 -06:00
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-guava:1.10.1'
2023-02-06 13:44:27 -06:00
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
2023-07-08 17:11:55 -06:00
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1'
2023-02-06 13:44:27 -06:00
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
2023-12-11 23:10:57 -06:00
implementation "androidx.preference:preference-ktx:1.2.1"
2023-02-06 13:44:27 -06:00
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
2024-02-28 22:04:32 -06:00
implementation "androidx.datastore:datastore-preferences:1.0.0"
2023-02-06 13:44:27 -06:00
// Hilt
2024-12-24 10:32:12 -06:00
implementation "com.google.dagger:hilt-android:2.53.1"
ksp "com.google.dagger:hilt-compiler:2.53.1"
2023-02-06 13:44:27 -06:00
// Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
// Material 3
implementation "com.google.android.material:material:1.12.0"
2023-02-06 13:44:27 -06:00
// Navigation
2024-03-14 22:22:25 -06:00
def nav_version = "2.7.7"
2023-02-06 13:44:27 -06:00
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
implementation "androidx.navigation:navigation-dynamic-features-fragment:$nav_version"
androidTestImplementation "androidx.navigation:navigation-testing:$nav_version"
// Splash screen
2023-07-08 17:11:55 -06:00
implementation "androidx.core:core-splashscreen:1.0.1"
2023-02-06 13:44:27 -06:00
// Data security
implementation "androidx.security:security-crypto:1.0.0"
2023-02-11 23:41:23 -06:00
// Markwon
final def markwon_version = '4.6.2'
2023-07-08 02:17:19 -06:00
// Customtabs
2024-03-14 22:22:25 -06:00
implementation 'androidx.browser:browser:1.8.0'
2023-07-08 02:17:19 -06:00
2025-01-29 00:41:04 -06:00
// Coil
implementation 'io.coil-kt.coil3:coil:3.0.4'
implementation 'io.coil-kt.coil3:coil-svg:3.0.4'
implementation "io.coil-kt.coil3:coil-compose:3.0.1"
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.1")
2023-02-11 23:41:23 -06:00
implementation "io.noties.markwon:core:$markwon_version"
implementation "io.noties.markwon:editor:$markwon_version"
implementation "io.noties.markwon:linkify:$markwon_version"
implementation "io.noties.markwon:image-coil:$markwon_version"
2023-07-15 20:58:57 -06:00
implementation ('io.socket:socket.io-client:2.1.0') {
// excluding org.json which is provided by Android
exclude group: 'org.json', module: 'json'
}
2023-12-11 23:10:57 -06:00
// Room Database
2024-12-24 10:32:12 -06:00
def room_version = "2.6.1"
2023-07-15 20:58:57 -06:00
implementation "androidx.room:room-runtime:$room_version"
2024-12-24 10:32:12 -06:00
ksp("androidx.room:room-compiler:$room_version")
implementation "androidx.room:room-ktx:$room_version"
2023-08-20 16:11:07 -06:00
2023-12-11 23:10:57 -06:00
// Image viewer
2023-08-20 16:11:07 -06:00
implementation 'com.github.MikeOrtiz:TouchImageView:3.5'
2023-12-11 23:10:57 -06:00
// Media 3
implementation 'androidx.media3:media3-session:1.2.0'
implementation 'androidx.media3:media3-exoplayer:1.2.0'
implementation "androidx.media3:media3-ui:1.2.0"
2024-01-13 23:12:31 -06:00
// QR
implementation 'com.github.androidmads:QRGenerator:1.0.1'
// Firebase
2024-12-24 10:32:12 -06:00
implementation(platform("com.google.firebase:firebase-bom:33.7.0"))
implementation("com.google.firebase:firebase-crashlytics")
implementation("com.google.firebase:firebase-analytics")
2024-03-05 22:04:03 -06:00
implementation("com.google.firebase:firebase-messaging")
// OSS screen
implementation 'com.google.android.gms:play-services-oss-licenses:17.1.0'
2024-11-10 23:48:00 -06:00
2024-12-24 10:32:12 -06:00
def composeBom = platform('androidx.compose:compose-bom:2024.12.01')
2024-11-10 23:48:00 -06:00
implementation composeBom
androidTestImplementation composeBom
implementation 'androidx.compose.material3:material3'
implementation 'androidx.compose.ui:ui-tooling-preview'
debugImplementation 'androidx.compose.ui:ui-tooling'
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
debugImplementation 'androidx.compose.ui:ui-test-manifest'
implementation 'androidx.activity:activity-compose:1.9.2'
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.8.5'
implementation 'androidx.compose.runtime:runtime-livedata'
2025-01-26 01:54:04 -06:00
implementation("com.google.accompanist:accompanist-permissions:0.36.0")
2025-03-15 17:31:56 -06:00
implementation "androidx.work:work-runtime-ktx:2.10.0"
2023-02-06 13:44:27 -06:00
}