118 lines
4.4 KiB
Groovy
118 lines
4.4 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'com.google.devtools.ksp'
|
|
apply plugin: 'kotlin-parcelize'
|
|
apply plugin: 'dagger.hilt.android.plugin'
|
|
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
|
|
|
|
android {
|
|
|
|
defaultConfig {
|
|
compileSdk 35
|
|
minSdkVersion 24
|
|
targetSdkVersion 35
|
|
vectorDrawables.useSupportLibrary = true
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
consumerProguardFiles 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
multiDexEnabled true
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '17'
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding true
|
|
compose = true
|
|
}
|
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
|
kotlinOptions {
|
|
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
|
|
}
|
|
}
|
|
namespace 'org.dash.wallet.common'
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
// Core
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
implementation "org.dashj:dashj-core:$dashjVersion"
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
|
|
|
|
// Firebase
|
|
implementation platform("com.google.firebase:firebase-bom:$firebaseVersion")
|
|
implementation 'com.google.firebase:firebase-analytics-ktx'
|
|
implementation 'com.google.firebase:firebase-crashlytics-ktx'
|
|
|
|
// Retrofit + OkHttp
|
|
api "com.squareup.okhttp3:okhttp:$ok_http_version"
|
|
api "com.squareup.okhttp3:logging-interceptor:$ok_http_version"
|
|
api 'com.squareup.retrofit2:retrofit:2.6.4'
|
|
api 'com.squareup.retrofit2:converter-gson:2.6.1'
|
|
|
|
// Android Arch
|
|
implementation "androidx.core:core-ktx:$jetpackVersion"
|
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
|
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion"
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion"
|
|
implementation "androidx.navigation:navigation-fragment-ktx:$navigationVersion"
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
|
|
implementation "androidx.datastore:datastore-preferences:1.0.0"
|
|
implementation "androidx.room:room-ktx:$roomVersion"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$serializationVersion"
|
|
|
|
// Compose
|
|
implementation(platform("androidx.compose:compose-bom:$composeBom"))
|
|
implementation("androidx.compose.ui:ui")
|
|
implementation("androidx.compose.ui:ui-tooling")
|
|
implementation("androidx.compose.material3:material3")
|
|
implementation("androidx.activity:activity-compose:1.8.0")
|
|
|
|
// UI
|
|
implementation "com.github.bumptech.glide:glide:$glideVersion"
|
|
ksp "com.github.bumptech.glide:compiler:$glideVersion"
|
|
implementation "io.coil-kt:coil:$coilVersion"
|
|
implementation "com.google.android.material:material:$materialVersion"
|
|
implementation "androidx.browser:browser:$browserVersion"
|
|
implementation "androidx.constraintlayout:constraintlayout:$constrainLayoutVersion"
|
|
//noinspection GradleDependency
|
|
implementation "com.google.zxing:core:$zxingVersion"
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:$swipeRefreshLayoutVersion"
|
|
implementation 'com.github.amulyakhare:textdrawable:558677ea31'
|
|
|
|
// DI
|
|
implementation "com.google.dagger:hilt-android:$hiltVersion"
|
|
ksp "com.google.dagger:hilt-compiler:$hiltVersion"
|
|
implementation 'javax.inject:javax.inject:1'
|
|
|
|
testImplementation "junit:junit:$junitVersion"
|
|
testImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoVersion"
|
|
testImplementation "androidx.arch.core:core-testing:$coreTestingVersion"
|
|
androidTestImplementation('androidx.test.espresso:espresso-core:3.3.0', {
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
})
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation 'com.google.guava:guava:29.0-android'
|
|
implementation "org.slf4j:slf4j-api:$slf4jVersion"
|
|
}
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
} |