52 lines
1.4 KiB
Groovy
52 lines
1.4 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
buildToolsVersion "30.0.3"
|
|
|
|
defaultConfig {
|
|
applicationId "org.linphone.incomingcall"
|
|
minSdkVersion 23
|
|
targetSdkVersion 30
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
}
|
|
|
|
// We need to declare this repository to be able to use Liblinphone SDK
|
|
repositories {
|
|
maven {
|
|
url "https://linphone.org/maven_repository"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
implementation 'androidx.core:core-ktx:1.3.2'
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
implementation 'com.google.android.material:material:1.2.1'
|
|
// Latest version is 5.0.x, using + to get the latest available
|
|
implementation 'org.linphone:linphone-sdk-android:5.0+'
|
|
// Adding this dependency allows the linphone-sdk to automatically handle audio focus
|
|
implementation 'androidx.media:media:1.2.0'
|
|
} |