132 lines
4.6 KiB
Groovy
132 lines
4.6 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'org.jetbrains.kotlin.plugin.serialization'
|
|
id 'com.mikepenz.aboutlibraries.plugin'
|
|
id 'com.google.dagger.hilt.android'
|
|
|
|
id 'kotlin-kapt'
|
|
}
|
|
|
|
android {
|
|
compileSdk 33
|
|
|
|
defaultConfig {
|
|
applicationId "chat.revolt"
|
|
minSdk 23
|
|
targetSdk 33
|
|
versionCode Integer.parseInt("000_001_000".replaceAll("_", ""), 10)
|
|
versionName "0.1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
coreLibraryDesugaringEnabled true
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion compose_version
|
|
}
|
|
packagingOptions {
|
|
resources {
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
}
|
|
}
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
namespace 'chat.revolt'
|
|
}
|
|
|
|
dependencies {
|
|
// Android/Kotlin Core
|
|
implementation 'androidx.core:core-ktx:1.9.0'
|
|
|
|
// Kotlinx - various first-party extensions for Kotlin
|
|
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-datetime:0.4.0"
|
|
|
|
// Compose BOM
|
|
implementation platform("androidx.compose:compose-bom:$compose_bom_version")
|
|
|
|
// Jetpack Compose
|
|
implementation "androidx.compose.ui:ui"
|
|
implementation "androidx.compose.ui:ui-util"
|
|
implementation 'androidx.compose.material:material'
|
|
implementation 'androidx.compose.material3:material3'
|
|
implementation "androidx.compose.ui:ui-tooling-preview"
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1'
|
|
implementation 'androidx.activity:activity-compose:1.6.1'
|
|
|
|
// Accompanist - Jetpack Compose Extensions
|
|
implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version"
|
|
implementation "com.google.accompanist:accompanist-permissions:$accompanist_version"
|
|
implementation "com.google.accompanist:accompanist-navigation-animation:$accompanist_version"
|
|
implementation "com.google.accompanist:accompanist-navigation-material:$accompanist_version"
|
|
implementation "com.google.accompanist:accompanist-flowlayout:$accompanist_version"
|
|
|
|
// KTOR - HTTP+WebSocket Library
|
|
implementation "io.ktor:ktor-client-core:$ktor_version"
|
|
implementation "io.ktor:ktor-client-okhttp:$ktor_version"
|
|
implementation "io.ktor:ktor-client-logging:$ktor_version"
|
|
implementation "io.ktor:ktor-client-content-negotiation:$ktor_version"
|
|
implementation "io.ktor:ktor-serialization-kotlinx-json:$ktor_version"
|
|
|
|
// Screen Navigation
|
|
implementation "androidx.navigation:navigation-compose:$nav_version"
|
|
|
|
// Jetpack Compose Tooling
|
|
debugImplementation "androidx.compose.ui:ui-tooling"
|
|
debugImplementation "androidx.compose.ui:ui-test-manifest"
|
|
|
|
// Hilt - Dependency Injection
|
|
implementation "com.google.dagger:hilt-android:$hilt_version"
|
|
implementation "androidx.hilt:hilt-navigation-compose:1.1.0-alpha01"
|
|
kapt "com.google.dagger:hilt-compiler:$hilt_version"
|
|
|
|
// Glide - Image Loading
|
|
implementation "com.github.bumptech.glide:glide:$glide_version"
|
|
implementation "com.github.bumptech.glide:compose:1.0.0-alpha.1"
|
|
|
|
// AboutLibraries - automated OSS library attribution
|
|
implementation "com.mikepenz:aboutlibraries-compose:$aboutlibraries_version"
|
|
|
|
// Sentry - crash reporting
|
|
implementation 'io.sentry:sentry-android:6.15.0'
|
|
implementation 'io.sentry:sentry-compose-android:6.15.0'
|
|
|
|
// Other AndroidX libraries - used for various things and never seem to have a consistent version
|
|
implementation 'androidx.documentfile:documentfile:1.0.1'
|
|
implementation "androidx.browser:browser:1.5.0"
|
|
implementation "androidx.datastore:datastore-preferences:1.1.0-alpha01"
|
|
implementation "androidx.datastore:datastore:1.1.0-alpha01"
|
|
|
|
// JDK Desugaring - polyfill for new Java APIs
|
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.2'
|
|
|
|
// Markdown
|
|
implementation project(':markdown')
|
|
}
|
|
|
|
kapt {
|
|
correctErrorTypes true
|
|
} |