linphone-tutorials/android/kotlin/2-PushNotifications/app/build.gradle
2021-09-08 10:26:42 +02:00

55 lines
1.5 KiB
Groovy

plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "org.linphone.pushnotifications"
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+'
// Required for firebase push notifications
implementation 'com.google.firebase:firebase-messaging:19.0.1'
}
// Required for firebase push notifications
apply plugin: 'com.google.gms.google-services'