136 lines
4.5 KiB
Groovy
136 lines
4.5 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'kotlin-android'
|
|
id 'kotlin-kapt'
|
|
id 'com.google.dagger.hilt.android'
|
|
id 'org.jetbrains.kotlin.plugin.serialization' version '1.8.0'
|
|
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
|
|
id 'androidx.navigation.safeargs.kotlin'
|
|
id 'com.google.gms.google-services'
|
|
id 'com.google.firebase.crashlytics'
|
|
}
|
|
|
|
android {
|
|
namespace 'com.isolaatti'
|
|
compileSdk 34
|
|
viewBinding {
|
|
enabled = true
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId "com.isolaatti"
|
|
minSdk 24
|
|
targetSdk 34
|
|
versionCode 1
|
|
versionName "0.1"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
coreLibraryDesugaringEnabled true
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '17'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'
|
|
|
|
implementation 'androidx.core:core-ktx:1.10.1'
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
implementation "androidx.recyclerview:recyclerview:1.3.1"
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
implementation 'androidx.core:core-ktx:1.10.1'
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.1'
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1'
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
|
|
implementation "androidx.preference:preference-ktx:1.2.1"
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
implementation "androidx.datastore:datastore-preferences:1.0.0"
|
|
|
|
// Hilt
|
|
implementation "com.google.dagger:hilt-android:2.47"
|
|
kapt "com.google.dagger:hilt-compiler:2.47"
|
|
|
|
|
|
// Retrofit
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
|
|
|
|
// Material 3
|
|
implementation "com.google.android.material:material:1.9.0"
|
|
|
|
// Navigation
|
|
def nav_version = "2.6.0"
|
|
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
|
|
implementation "androidx.core:core-splashscreen:1.0.1"
|
|
|
|
// Data security
|
|
implementation "androidx.security:security-crypto:1.0.0"
|
|
|
|
// Markwon
|
|
final def markwon_version = '4.6.2'
|
|
|
|
// Customtabs
|
|
implementation 'androidx.browser:browser:1.7.0'
|
|
|
|
implementation 'io.coil-kt:coil:2.5.0'
|
|
implementation 'io.coil-kt:coil-svg:2.5.0'
|
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
implementation ('io.socket:socket.io-client:2.1.0') {
|
|
// excluding org.json which is provided by Android
|
|
exclude group: 'org.json', module: 'json'
|
|
}
|
|
|
|
// Room Database
|
|
def room_version = "2.5.2"
|
|
implementation "androidx.room:room-runtime:$room_version"
|
|
annotationProcessor "androidx.room:room-compiler:$room_version"
|
|
kapt("androidx.room:room-compiler:$room_version")
|
|
implementation "androidx.room:room-ktx:2.5.2"
|
|
|
|
// Image viewer
|
|
implementation 'com.github.MikeOrtiz:TouchImageView:3.5'
|
|
|
|
// 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"
|
|
|
|
// QR
|
|
implementation 'com.github.androidmads:QRGenerator:1.0.1'
|
|
|
|
// Firebase
|
|
implementation(platform("com.google.firebase:firebase-bom:32.7.3"))
|
|
implementation("com.google.firebase:firebase-crashlytics")
|
|
implementation("com.google.firebase:firebase-analytics")
|
|
implementation("com.google.firebase:firebase-messaging")
|
|
} |