| 1 | group 'com.cakewallet.cw_decred' |
| 2 | version '1.0-SNAPSHOT' |
| 3 | |
| 4 | buildscript { |
| 5 | ext.kotlin_version = '2.0.21' |
| 6 | repositories { |
| 7 | google() |
| 8 | mavenCentral() |
| 9 | } |
| 10 | |
| 11 | dependencies { |
| 12 | classpath 'com.android.tools.build:gradle:8.7.1' |
| 13 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | rootProject.allprojects { |
| 18 | repositories { |
| 19 | google() |
| 20 | mavenCentral() |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | apply plugin: 'com.android.library' |
| 25 | apply plugin: 'kotlin-android' |
| 26 | |
| 27 | android { |
| 28 | compileSdkVersion 33 |
| 29 | |
| 30 | if (project.android.hasProperty("namespace")) { |
| 31 | namespace 'com.cakewallet.cw_decred' |
| 32 | } |
| 33 | |
| 34 | compileOptions { |
| 35 | sourceCompatibility JavaVersion.VERSION_17 |
| 36 | targetCompatibility JavaVersion.VERSION_17 |
| 37 | } |
| 38 | |
| 39 | kotlinOptions { |
| 40 | jvmTarget = '17' |
| 41 | } |
| 42 | sourceSets { |
| 43 | main { |
| 44 | java.srcDirs += 'src/main/kotlin' |
| 45 | jniLibs.srcDirs 'libs' // contains libdcrwallet.so shared libraries |
| 46 | } |
| 47 | } |
| 48 | defaultConfig { |
| 49 | minSdkVersion 21 |
| 50 | } |
| 51 | externalNativeBuild { |
| 52 | cmake { |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | dependencies { |
| 58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
| 59 | } |