72 lines
2.2 KiB
Groovy
72 lines
2.2 KiB
Groovy
|
apply plugin: 'com.android.library'
|
||
|
apply plugin: 'kotlin-android'
|
||
|
apply plugin: 'maven-publish'
|
||
|
|
||
|
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 {
|
||
|
publications {
|
||
|
// Creates a Maven publication called "release".
|
||
|
release(MavenPublication) {
|
||
|
// Applies the component for the release build variant.
|
||
|
from components.release
|
||
|
|
||
|
// You can then customize attributes of the publication as shown below.
|
||
|
groupId = 'org.bitcoindevkit'
|
||
|
artifactId = 'bdk'
|
||
|
version = '0.0.1-SNAPSHOT'
|
||
|
}
|
||
|
// Creates a Maven publication called “debug”.
|
||
|
debug(MavenPublication) {
|
||
|
// Applies the component for the debug build variant.
|
||
|
from components.debug
|
||
|
|
||
|
groupId = 'org.bitcoindevkit'
|
||
|
artifactId = 'bdk-debug'
|
||
|
version = '0.0.1-SNAPSHOT'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation(project(':jvm')) {
|
||
|
exclude group: 'net.java.dev.jna', module: 'jna'
|
||
|
}
|
||
|
|
||
|
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'
|
||
|
androidTestImplementation(project(':test-fixtures')) {
|
||
|
exclude group: 'net.java.dev.jna', module: 'jna'
|
||
|
}
|
||
|
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'
|
||
|
}
|