Files
coco 7846a45f2c a
2026-07-03 15:47:27 +08:00

91 lines
2.9 KiB
Groovy

plugins {
id 'com.android.library'
id 'kotlin-android'
id 'com.google.devtools.ksp'
id 'dagger.hilt.android.plugin'
id 'org.jlleitschuh.gradle.ktlint'
}
android {
defaultConfig {
compileSdk 35
minSdkVersion 24
targetSdkVersion 35
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
configureEach {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
consumerProguardFiles 'proguard-rules.pro'
}
release {
minifyEnabled true
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
buildFeatures {
viewBinding true
}
namespace 'org.dash.wallet.integrations.uphold'
}
hilt {
enableAggregatingTask = true
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(path: ':common')
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
implementation "org.dashj:dashj-core:$dashjVersion"
implementation 'com.scottyab:secure-preferences-lib:0.1.7'
implementation "org.slf4j:slf4j-api:$slf4jVersion"
// UI / Architecture
implementation "androidx.navigation:navigation-fragment-ktx:$navigationVersion"
implementation "androidx.constraintlayout:constraintlayout:$constrainLayoutVersion"
implementation "com.google.android.material:material:$materialVersion"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:$swipeRefreshLayoutVersion"
implementation "androidx.datastore:datastore-preferences:$datastoreVersion"
// DI
implementation "com.google.dagger:hilt-android:$hiltVersion"
ksp "com.google.dagger:hilt-compiler:$hiltVersion"
// JWT
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
runtimeOnly('io.jsonwebtoken:jjwt-orgjson:0.11.5') {
exclude(group: 'org.json', module: 'json') //provided by Android natively
}
implementation 'com.madgag.spongycastle:core:1.50.0.0'
implementation 'com.madgag.spongycastle:prov:1.50.0.0'
implementation 'com.madgag.spongycastle:pkix:1.50.0.0'
// Tests
testImplementation "junit:junit:$junitVersion"
testImplementation "androidx.test:core-ktx:1.5.0"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "org.mockito.kotlin:mockito-kotlin:$mockitoVersion"
testImplementation "com.squareup.okhttp3:mockwebserver:$ok_http_version"
androidTestImplementation("androidx.test.espresso:espresso-core:$espressoVersion", {
exclude group: 'com.android.support', module: 'support-annotations'
})
}