2023-02-26 22:07:43 +01:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
id 'org.jetbrains.kotlin.android'
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace 'com.readrops.app.compose'
|
2023-08-27 22:31:47 +02:00
|
|
|
compileSdk rootProject.ext.compileSdkVersion
|
2023-02-26 22:07:43 +01:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.readrops.app.compose"
|
2023-08-27 22:31:47 +02:00
|
|
|
minSdk rootProject.ext.minSdkVersion
|
|
|
|
targetSdk rootProject.ext.targetSdkVersion
|
2023-02-26 22:07:43 +01:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
|
|
|
|
debug {
|
|
|
|
minifyEnabled false
|
|
|
|
shrinkResources false
|
|
|
|
|
|
|
|
testCoverageEnabled true
|
|
|
|
applicationIdSuffix ".debug"
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
2023-08-15 22:44:44 +02:00
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
2023-02-26 22:07:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
kotlinOptions {
|
2023-08-15 22:44:44 +02:00
|
|
|
jvmTarget = '17'
|
2023-02-26 22:07:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
buildConfig true
|
|
|
|
compose true
|
|
|
|
}
|
|
|
|
|
|
|
|
composeOptions {
|
|
|
|
kotlinCompilerExtensionVersion = "1.4.0"
|
|
|
|
}
|
2023-08-14 15:58:29 +02:00
|
|
|
|
|
|
|
lint {
|
|
|
|
abortOnError false
|
|
|
|
}
|
2023-02-26 22:07:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-02-28 22:05:32 +01:00
|
|
|
implementation project(':api')
|
|
|
|
implementation project(':db')
|
|
|
|
|
2023-02-26 22:07:43 +01:00
|
|
|
implementation 'androidx.core:core-ktx:1.7.0'
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
|
|
implementation 'com.google.android.material:material:1.8.0'
|
|
|
|
|
|
|
|
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-29 10:48:41 +01:00
|
|
|
def composeBom = platform('androidx.compose:compose-bom:2024.02.01')
|
2023-02-26 22:07:43 +01:00
|
|
|
implementation composeBom
|
|
|
|
androidTestImplementation composeBom
|
|
|
|
|
2023-08-15 19:07:55 +02:00
|
|
|
implementation 'androidx.palette:palette-ktx:1.0.0'
|
2024-02-29 10:48:41 +01:00
|
|
|
implementation 'androidx.activity:activity-compose:1.8.2'
|
2023-02-26 22:07:43 +01:00
|
|
|
implementation 'androidx.compose.material3:material3'
|
|
|
|
|
2023-07-23 17:18:03 +02:00
|
|
|
implementation "com.google.accompanist:accompanist-swiperefresh:0.30.1"
|
|
|
|
|
2024-03-01 19:40:44 +01:00
|
|
|
def voyager = "1.0.0"
|
2023-02-26 22:07:43 +01:00
|
|
|
implementation "cafe.adriel.voyager:voyager-navigator:$voyager"
|
|
|
|
implementation "cafe.adriel.voyager:voyager-tab-navigator:$voyager"
|
2023-03-08 22:45:52 +01:00
|
|
|
implementation "cafe.adriel.voyager:voyager-koin:$voyager"
|
2023-08-02 21:28:58 +02:00
|
|
|
implementation "cafe.adriel.voyager:voyager-transitions:$voyager"
|
2023-02-26 22:07:43 +01:00
|
|
|
|
2024-02-29 10:48:41 +01:00
|
|
|
def tooling = "1.6.2"
|
|
|
|
debugImplementation "androidx.compose.ui:ui-tooling:$tooling"
|
|
|
|
implementation "androidx.compose.ui:ui-tooling-preview:$tooling"
|
2023-03-08 22:45:52 +01:00
|
|
|
|
2024-02-29 10:48:41 +01:00
|
|
|
def lifecycle_version = "2.7.0"
|
2023-03-08 22:45:52 +01:00
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycle_version"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-savedstate:$lifecycle_version"
|
|
|
|
|
|
|
|
/*def koin_version = "3.3.3"
|
|
|
|
implementation "io.insert-koin:koin-core:$koin_version"
|
|
|
|
implementation "io.insert-koin:koin-android:$koin_version"
|
|
|
|
implementation "io.insert-koin:koin-androidx-compose:3.4.2"*/
|
2023-07-18 22:39:20 +02:00
|
|
|
|
|
|
|
androidTestImplementation "io.insert-koin:koin-test-junit4:$rootProject.ext.koin_version"
|
|
|
|
androidTestImplementation "io.insert-koin:koin-test:$rootProject.ext.koin_version"
|
|
|
|
|
2023-07-21 22:29:52 +02:00
|
|
|
androidTestImplementation 'com.squareup.okhttp3:mockwebserver:4.9.0'
|
2023-07-27 17:37:36 +02:00
|
|
|
|
2023-08-14 22:40:29 +02:00
|
|
|
implementation "io.coil-kt:coil:2.4.0"
|
|
|
|
implementation "io.coil-kt:coil-compose:2.4.0"
|
2023-08-20 12:22:25 +02:00
|
|
|
|
2024-01-11 22:16:30 +01:00
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3"
|
|
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3'
|
|
|
|
androidTestImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3"
|
2023-08-20 17:54:56 +02:00
|
|
|
|
2024-02-29 10:48:41 +01:00
|
|
|
def lifecycle = "2.7.0"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycle"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-runtime-compose:$lifecycle"
|
2023-02-26 22:07:43 +01:00
|
|
|
}
|