84 lines
1.8 KiB
Kotlin
84 lines
1.8 KiB
Kotlin
group = "xyz.nuark.liblinphone_flutter"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
buildscript {
|
|
val kotlinVersion = "2.2.20"
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
|
|
maven {
|
|
name = "linphone.org maven repository"
|
|
url = uri("https://download.linphone.org/maven_repository")
|
|
content {
|
|
includeGroup("org.linphone")
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
classpath("com.android.tools.build:gradle:8.11.1")
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id("com.android.library")
|
|
id("kotlin-android")
|
|
}
|
|
|
|
android {
|
|
namespace = "xyz.nuark.liblinphone_flutter"
|
|
|
|
compileSdk = 36
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_17.toString()
|
|
}
|
|
|
|
sourceSets {
|
|
getByName("main") {
|
|
java.srcDirs("src/main/kotlin")
|
|
}
|
|
getByName("test") {
|
|
java.srcDirs("src/test/kotlin")
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdk = 24
|
|
}
|
|
|
|
testOptions {
|
|
unitTests {
|
|
isIncludeAndroidResources = true
|
|
all {
|
|
it.useJUnitPlatform()
|
|
|
|
it.outputs.upToDateWhen { false }
|
|
|
|
it.testLogging {
|
|
events("passed", "skipped", "failed", "standardOut", "standardError")
|
|
showStandardStreams = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test")
|
|
testImplementation("org.mockito:mockito-core:5.0.0")
|
|
}
|