cake_wallet/cw_decred/android/build.gradle

60 lines
1.2 KiB
Groovy
Raw Normal View History

group 'com.cakewallet.cw_decred'
version '1.0-SNAPSHOT'
buildscript {
2024-10-17 09:15:58 +00:00
ext.kotlin_version = '2.0.21'
repositories {
google()
mavenCentral()
}
dependencies {
2024-10-17 09:15:58 +00:00
classpath 'com.android.tools.build:gradle:8.7.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
2024-10-17 09:15:58 +00:00
rootProject.allprojects {
repositories {
google()
mavenCentral()
}
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
android {
2024-10-17 09:15:58 +00:00
compileSdkVersion 33
if (project.android.hasProperty("namespace")) {
namespace 'com.cakewallet.cw_decred'
}
compileOptions {
2024-10-17 09:15:58 +00:00
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
2024-10-17 09:15:58 +00:00
jvmTarget = '17'
}
sourceSets {
main {
java.srcDirs += 'src/main/kotlin'
jniLibs.srcDirs 'libs' // contains libdcrwallet.so shared libraries
}
}
defaultConfig {
2024-10-17 09:15:58 +00:00
minSdkVersion 21
}
2024-10-17 09:15:58 +00:00
externalNativeBuild {
cmake {
}
}
}
2024-10-17 09:15:58 +00:00
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}