| 1 | group 'com.cakewallet.mweb' |
| 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 | 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.mweb' |
| 32 | } |
| 33 | |
| 34 | compileOptions { |
| 35 | sourceCompatibility JavaVersion.VERSION_17 |
| 36 | targetCompatibility JavaVersion.VERSION_17 |
| 37 | } |
| 38 | |
| 39 | kotlinOptions { |
| 40 | jvmTarget = '17' |
| 41 | } |
| 42 | |
| 43 | sourceSets { |
| 44 | main.java.srcDirs += 'src/main/kotlin' |
| 45 | test.java.srcDirs += 'src/test/kotlin' |
| 46 | } |
| 47 | |
| 48 | defaultConfig { |
| 49 | minSdkVersion 16 |
| 50 | } |
| 51 | |
| 52 | dependencies { |
| 53 | testImplementation 'org.jetbrains.kotlin:kotlin-test' |
| 54 | testImplementation 'org.mockito:mockito-core:5.0.0' |
| 55 | } |
| 56 | |
| 57 | testOptions { |
| 58 | unitTests.all { |
| 59 | useJUnitPlatform() |
| 60 | |
| 61 | testLogging { |
| 62 | events "passed", "skipped", "failed", "standardOut", "standardError" |
| 63 | outputs.upToDateWhen {false} |
| 64 | showStandardStreams = true |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | } |