bdk-ffi/bdk-kotlin/aar/build.gradle

76 lines
2.2 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
2021-06-14 22:38:29 -07:00
//apply plugin: 'kotlin-android-extensions'
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'
}
}
}
//task buildRust(type: Exec) {
// workingDir '../'
// commandLine './build.sh'
//}
afterEvaluate {
// android.libraryVariants.all { variant ->
// variant.javaCompileProvider.get().dependsOn(buildRust)
// }
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.
2021-06-14 22:38:29 -07:00
groupId = 'org.bitcoindevkit'
artifactId = 'bdk'
version = '0.0.1-dev'
}
// Creates a Maven publication called “debug”.
debug(MavenPublication) {
// Applies the component for the debug build variant.
from components.debug
2021-06-14 22:38:29 -07:00
groupId = 'org.bitcoindevkit'
artifactId = 'bdk-debug'
version = '0.0.1-dev'
}
}
}
}
dependencies {
2021-06-14 22:38:29 -07:00
implementation (project(':jar')) {
exclude group: 'net.java.dev.jna', module: 'jna'
}
api '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'
testImplementation 'junit:junit:4.12'
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'
}