Added BaresipApp to avoid baresip service starting before baresip library is loaded

This commit is contained in:
Juha Heinanen
2026-01-19 05:20:04 +02:00
parent b12ad8453b
commit 951dc55f60
4 changed files with 18 additions and 10 deletions
@@ -0,0 +1,15 @@
package com.tutpro.baresip
import android.app.Application
class BaresipApp : Application() {
override fun onCreate() {
super.onCreate()
if (!BaresipService.libraryLoaded) {
Log.i(TAG, "Loading baresip library")
System.loadLibrary("baresip")
BaresipService.libraryLoaded = true
}
}
}