feat: upgrade linphone-sdk to 5.4.84 and add syncCurrentState

This commit is contained in:
Andrew 2026-02-03 15:53:40 +07:00
parent f29d9d42e5
commit 06a57d5c21
8 changed files with 36 additions and 3 deletions

View file

@ -47,8 +47,19 @@ android {
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(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")

View file

@ -180,6 +180,11 @@ class LiblinphoneFlutterPlugin : FlutterPlugin, ActivityAware, MethodCallHandler
result.success(true)
}
"syncCurrentState" -> {
linphoneBridge.syncCurrentState()
result.success(true)
}
else -> {
result.notImplemented()
}

View file

@ -335,6 +335,11 @@ class LinphoneBridge(
return currentCall != null
}
fun syncCurrentState() {
onRegistrationStateChanged(registrationState.ordinal)
onCallStateChanged(callState.ordinal)
}
enum class CallType {
Audio,
Video,