2023-02-26 22:07:43 +01:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
id 'org.jetbrains.kotlin.android'
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace 'com.readrops.app.compose'
|
|
|
|
compileSdk 33
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.readrops.app.compose"
|
|
|
|
minSdk 21
|
|
|
|
targetSdk 33
|
|
|
|
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 {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = '1.8'
|
|
|
|
}
|
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
buildConfig true
|
|
|
|
compose true
|
|
|
|
}
|
|
|
|
|
|
|
|
composeOptions {
|
|
|
|
kotlinCompilerExtensionVersion = "1.4.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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'
|
|
|
|
|
2023-07-18 22:39:20 +02:00
|
|
|
def composeBom = platform('androidx.compose:compose-bom:2023.06.01')
|
2023-02-26 22:07:43 +01:00
|
|
|
implementation composeBom
|
|
|
|
androidTestImplementation composeBom
|
|
|
|
|
2023-07-18 22:39:20 +02:00
|
|
|
implementation 'androidx.activity:activity-compose:1.7.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"
|
|
|
|
|
2023-02-26 22:07:43 +01:00
|
|
|
def voyager = "1.0.0-rc03"
|
|
|
|
implementation "cafe.adriel.voyager:voyager-navigator:$voyager"
|
|
|
|
implementation "cafe.adriel.voyager:voyager-bottom-sheet-navigator:$voyager"
|
|
|
|
implementation "cafe.adriel.voyager:voyager-tab-navigator:$voyager"
|
|
|
|
implementation "cafe.adriel.voyager:voyager-androidx:$voyager"
|
2023-03-08 22:45:52 +01:00
|
|
|
implementation "cafe.adriel.voyager:voyager-koin:$voyager"
|
2023-02-26 22:07:43 +01:00
|
|
|
|
2023-07-18 22:39:20 +02:00
|
|
|
debugImplementation "androidx.compose.ui:ui-tooling:1.4.3"
|
|
|
|
implementation "androidx.compose.ui:ui-tooling-preview:1.4.3"
|
2023-03-08 22:45:52 +01:00
|
|
|
|
2023-07-18 22:39:20 +02:00
|
|
|
def lifecycle_version = "2.6.1"
|
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-02-26 22:07:43 +01:00
|
|
|
}
|