Compare commits
No commits in common. "6bf6e7e8eac202fffb3286179c15237d33a3a3e0" and "d652c1237e6a4b3e7c44095a9ac54fb3ad7114b3" have entirely different histories.
6bf6e7e8ea
...
d652c1237e
4 changed files with 94 additions and 5 deletions
87
android/build.gradle
Normal file
87
android/build.gradle
Normal file
|
|
@ -0,0 +1,87 @@
|
||||||
|
group = "xyz.nuark.liblinphone_flutter"
|
||||||
|
version = "1.0-SNAPSHOT"
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
ext.kotlin_version = "2.1.0"
|
||||||
|
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.9.1")
|
||||||
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
apply plugin: "com.android.library"
|
||||||
|
apply plugin: "kotlin-android"
|
||||||
|
|
||||||
|
android {
|
||||||
|
namespace = "xyz.nuark.liblinphone_flutter"
|
||||||
|
|
||||||
|
compileSdk = 36
|
||||||
|
|
||||||
|
compileOptions {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
targetCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
kotlinOptions {
|
||||||
|
jvmTarget = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
main.java.srcDirs += "src/main/kotlin"
|
||||||
|
test.java.srcDirs += "src/test/kotlin"
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
minSdk = 24
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "linphone.org maven repository"
|
||||||
|
url = uri("https://download.linphone.org/maven_repository")
|
||||||
|
content {
|
||||||
|
includeGroup("org.linphone")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
// implementation(files("libs/linphone-sdk-android-5.2.0.aar"))
|
||||||
|
implementation("org.linphone:linphone-sdk-android:5.4.84")
|
||||||
|
|
||||||
|
testImplementation("org.jetbrains.kotlin:kotlin-test")
|
||||||
|
testImplementation("org.mockito:mockito-core:5.0.0")
|
||||||
|
}
|
||||||
|
|
||||||
|
testOptions {
|
||||||
|
unitTests.all {
|
||||||
|
useJUnitPlatform()
|
||||||
|
|
||||||
|
testLogging {
|
||||||
|
events "passed", "skipped", "failed", "standardOut", "standardError"
|
||||||
|
outputs.upToDateWhen {false}
|
||||||
|
showStandardStreams = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -8,8 +8,11 @@ buildscript {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
name = "nuarkMvnPublic"
|
name = "linphone.org maven repository"
|
||||||
url = uri("https://reposilite.ac.nuark.xyz/public")
|
url = uri("https://download.linphone.org/maven_repository")
|
||||||
|
content {
|
||||||
|
includeGroup("org.linphone")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -76,8 +79,6 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("org.linphone:linphone-sdk-android:5.5.0-beta.2+907e6bafba")
|
|
||||||
|
|
||||||
testImplementation("org.jetbrains.kotlin:kotlin-test")
|
testImplementation("org.jetbrains.kotlin:kotlin-test")
|
||||||
testImplementation("org.mockito:mockito-core:5.0.0")
|
testImplementation("org.mockito:mockito-core:5.0.0")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1
android/settings.gradle
Normal file
1
android/settings.gradle
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
rootProject.name = 'liblinphone_flutter'
|
||||||
|
|
@ -219,7 +219,7 @@ class LinphoneBridge(
|
||||||
core.uploadBandwidth = 512
|
core.uploadBandwidth = 512
|
||||||
core.downloadBandwidth = 1500
|
core.downloadBandwidth = 1500
|
||||||
|
|
||||||
val preferredAudio = listOf("g729", "opus", "speex", "pcmu", "pcma") // in order of preference
|
val preferredAudio = listOf("opus", "speex", "pcmu", "pcma") // in order of preference
|
||||||
val preferredVideo = listOf("h264", "vp8")
|
val preferredVideo = listOf("h264", "vp8")
|
||||||
|
|
||||||
core.audioPayloadTypes.forEach { pt: PayloadType ->
|
core.audioPayloadTypes.forEach { pt: PayloadType ->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue