2021-10-17 14:27:10 -07:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'maven-publish'
|
2021-11-06 00:22:38 +05:30
|
|
|
group = 'org.bitcoindevkit'
|
|
|
|
version = '0.1.0'
|
2021-10-17 14:27:10 -07:00
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion 30
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 21
|
|
|
|
targetSdkVersion 30
|
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
consumerProguardFiles 'consumer-rules.pro'
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
afterEvaluate {
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
|
2021-11-06 00:22:38 +05:30
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
url myMavenRepoWriteUrl
|
2021-10-17 14:27:10 -07:00
|
|
|
}
|
2021-11-06 00:22:38 +05:30
|
|
|
}
|
2021-10-17 14:27:10 -07:00
|
|
|
|
2021-11-06 00:22:38 +05:30
|
|
|
publications {
|
|
|
|
|
|
|
|
maven(MavenPublication) {
|
|
|
|
from components.release
|
|
|
|
artifactId = 'bdk-android'
|
2021-10-17 14:27:10 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-10-21 23:26:34 +05:30
|
|
|
// implementation(project(':jvm')) {
|
|
|
|
// exclude group: 'net.java.dev.jna', module: 'jna'
|
|
|
|
// }
|
2021-10-17 14:27:10 -07:00
|
|
|
|
|
|
|
implementation 'net.java.dev.jna:jna:5.8.0@aar'
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.3.0'
|
|
|
|
implementation 'androidx.core:core-ktx:1.5.0'
|
|
|
|
api "org.slf4j:slf4j-api:1.7.30"
|
|
|
|
|
|
|
|
androidTestImplementation 'com.github.tony19:logback-android:2.0.0'
|
2021-10-18 13:53:05 -07:00
|
|
|
androidTestImplementation(testFixtures(project(':jvm'))) {
|
2021-10-17 14:27:10 -07:00
|
|
|
exclude group: 'net.java.dev.jna', module: 'jna'
|
2021-10-18 13:53:05 -07:00
|
|
|
exclude group: 'ch.qos.logback', module: 'logback-core'
|
|
|
|
exclude group: 'ch.qos.logback', module: 'logback-classic'
|
2021-10-17 14:27:10 -07:00
|
|
|
}
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
|
|
androidTestImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1'
|
|
|
|
}
|