| 1 |
plugins { |
| 2 |
id 'com.android.application' |
| 3 |
id 'kotlin-android' |
| 4 |
} |
| 5 |
|
| 6 |
android { |
| 7 |
compileSdk 33 |
| 8 |
|
| 9 |
buildFeatures.buildConfig true |
| 10 |
|
| 11 |
defaultConfig { |
| 12 |
applicationId "org.pjsip.pjsua2.app_kotlin" |
| 13 |
minSdkVersion 23 |
| 14 |
targetSdkVersion 33 |
| 15 |
versionCode 1 |
| 16 |
versionName "1.0" |
| 17 |
} |
| 18 |
|
| 19 |
buildTypes { |
| 20 |
release { |
| 21 |
minifyEnabled false |
| 22 |
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
| 23 |
} |
| 24 |
} |
| 25 |
flavorDimensions "version" |
| 26 |
productFlavors { |
| 27 |
demo { |
| 28 |
isDefault true |
| 29 |
dimension "version" |
| 30 |
buildConfigField "int", "SIP_PORT", "6000" |
| 31 |
} |
| 32 |
ciTest { |
| 33 |
dimension "version" |
| 34 |
buildConfigField "int", "SIP_PORT", "6677" |
| 35 |
} |
| 36 |
} |
| 37 |
compileOptions { |
| 38 |
sourceCompatibility JavaVersion.VERSION_1_8 |
| 39 |
targetCompatibility JavaVersion.VERSION_1_8 |
| 40 |
} |
| 41 |
kotlinOptions { |
| 42 |
jvmTarget = '1.8' |
| 43 |
} |
| 44 |
namespace 'org.pjsip.pjsua2.app_kotlin' |
| 45 |
} |
| 46 |
|
| 47 |
dependencies { |
| 48 |
|
| 49 |
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" |
| 50 |
implementation 'androidx.appcompat:appcompat:1.6.1' |
| 51 |
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' |
| 52 |
implementation project(path: ':pjsua2') |
| 53 |
} |