| 1 |
apply plugin: 'com.android.application' |
| 2 |
|
| 3 |
android { |
| 4 |
compileSdk 33 |
| 5 |
buildFeatures.buildConfig true |
| 6 |
|
| 7 |
|
| 8 |
defaultConfig { |
| 9 |
applicationId "org.pjsip.pjsua2.app" |
| 10 |
minSdkVersion 23 |
| 11 |
targetSdkVersion 33 |
| 12 |
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| 13 |
} |
| 14 |
|
| 15 |
buildTypes { |
| 16 |
release { |
| 17 |
minifyEnabled false |
| 18 |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' |
| 19 |
} |
| 20 |
} |
| 21 |
flavorDimensions "version" |
| 22 |
productFlavors { |
| 23 |
demo { |
| 24 |
isDefault true |
| 25 |
dimension "version" |
| 26 |
buildConfigField "int", "SIP_PORT", "6000" |
| 27 |
buildConfigField "boolean", "IS_TEST", "false" |
| 28 |
buildConfigField "String", "TEST_TAG", "\"demo\"" |
| 29 |
} |
| 30 |
ciTest { |
| 31 |
dimension "version" |
| 32 |
buildConfigField "int", "SIP_PORT", "6677" |
| 33 |
buildConfigField "boolean", "IS_TEST", "true" |
| 34 |
buildConfigField "String", "TEST_TAG", "\"ciTest\"" |
| 35 |
} |
| 36 |
} |
| 37 |
namespace 'org.pjsip.pjsua2.app' |
| 38 |
} |
| 39 |
|
| 40 |
dependencies { |
| 41 |
implementation project(path: ':pjsua2') |
| 42 |
implementation 'androidx.appcompat:appcompat:1.6.1' |
| 43 |
implementation 'androidx.test.espresso:espresso-idling-resource:3.5.1' |
| 44 |
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' |
| 45 |
androidTestImplementation 'androidx.test.espresso:espresso-idling-resource:3.5.1' |
| 46 |
androidTestImplementation 'androidx.test.ext:junit:1.1.5' |
| 47 |
androidTestImplementation 'androidx.test.ext:junit-ktx:1.1.5' |
| 48 |
androidTestImplementation 'androidx.test:runner:1.5.2' |
| 49 |
androidTestImplementation 'androidx.test:rules:1.5.0' |
| 50 |
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0' |
| 51 |
testImplementation 'junit:junit:4.12' |
| 52 |
} |