104 lines
3.3 KiB
Groovy
104 lines
3.3 KiB
Groovy
plugins {
|
|
id 'com.android.library'
|
|
id 'kotlin-android'
|
|
id 'com.google.devtools.ksp'
|
|
id 'androidx.navigation.safeargs.kotlin'
|
|
id 'dagger.hilt.android.plugin'
|
|
id 'kotlin-parcelize'
|
|
id 'org.jetbrains.kotlin.plugin.compose'
|
|
}
|
|
|
|
android {
|
|
|
|
defaultConfig {
|
|
compileSdk 35
|
|
minSdkVersion 24
|
|
targetSdkVersion 35
|
|
vectorDrawables.useSupportLibrary = true
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '17'
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
compose true
|
|
}
|
|
testOptions {
|
|
animationsDisabled = true
|
|
unitTests {
|
|
includeAndroidResources = true
|
|
}
|
|
}
|
|
namespace 'org.dash.wallet.integrations.coinbase'
|
|
}
|
|
|
|
hilt {
|
|
enableAggregatingTask = true
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
|
|
dependencies {
|
|
|
|
// Core
|
|
implementation 'androidx.core:core-ktx:1.6.0'
|
|
implementation 'androidx.appcompat:appcompat:1.3.1'
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-play-services:$coroutinesVersion"
|
|
implementation "org.dashj:dashj-core:$dashjVersion"
|
|
|
|
// Architecture
|
|
implementation "androidx.navigation:navigation-fragment-ktx:$navigationVersion"
|
|
implementation "androidx.navigation:navigation-ui-ktx:$navigationVersion"
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
|
|
implementation "androidx.datastore:datastore-preferences:$datastoreVersion"
|
|
|
|
// DI
|
|
implementation "com.google.dagger:hilt-android:$hiltVersion"
|
|
ksp "com.google.dagger:hilt-android-compiler:$hiltVersion"
|
|
ksp "androidx.hilt:hilt-compiler:$hiltCompilerVersion"
|
|
|
|
// UI
|
|
implementation "com.google.android.material:material:$materialVersion"
|
|
implementation "androidx.recyclerview:recyclerview:$recyclerViewVersion"
|
|
implementation "androidx.constraintlayout:constraintlayout:$constrainLayoutVersion"
|
|
implementation "io.coil-kt:coil:$coilVersion"
|
|
implementation 'me.grantland:autofittextview:0.2.1'
|
|
implementation "androidx.browser:browser:$browserVersion"
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:$swipeRefreshLayoutVersion"
|
|
|
|
// Compose
|
|
implementation(platform("androidx.compose:compose-bom:$composeBom"))
|
|
implementation("androidx.compose.ui:ui")
|
|
implementation("androidx.compose.material3:material3")
|
|
|
|
// Logging
|
|
implementation "org.slf4j:slf4j-api:$slf4jVersion"
|
|
|
|
// Tests
|
|
testImplementation 'junit:junit:4.13.2'
|
|
testImplementation "io.mockk:mockk:1.13.8"
|
|
testImplementation "androidx.test:core-ktx:1.4.0"
|
|
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion"
|
|
testImplementation 'org.hamcrest:hamcrest:2.2'
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
implementation project(path: ':common')
|
|
} |