Replaced zrtp module with gzrtp module

This commit is contained in:
Juha Heinanen
2022-08-24 17:09:44 +03:00
parent b341021071
commit 5b3c9d6bb4
6 changed files with 11 additions and 14 deletions

View File

@ -51,7 +51,7 @@ android {
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'androidx.appcompat:appcompat:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'com.google.android.material:material:1.6.1'
@ -64,6 +64,6 @@ dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1'
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
implementation "androidx.activity:activity-ktx:1.5.1"
implementation "androidx.fragment:fragment-ktx:1.5.1"
implementation "androidx.fragment:fragment-ktx:1.5.2"
implementation 'androidx.media:media:1.6.0'
}

View File

@ -52,13 +52,9 @@ add_library(lib_webrtc STATIC IMPORTED)
set_target_properties(lib_webrtc PROPERTIES IMPORTED_LOCATION
${distribution_DIR}/webrtc/lib/${ANDROID_ABI}/libwebrtc.a)
add_library(lib_bn STATIC IMPORTED)
set_target_properties(lib_bn PROPERTIES IMPORTED_LOCATION
${distribution_DIR}/bn/lib/${ANDROID_ABI}/libbn.a)
add_library(lib_zrtp STATIC IMPORTED)
set_target_properties(lib_zrtp PROPERTIES IMPORTED_LOCATION
${distribution_DIR}/zrtp/lib/${ANDROID_ABI}/libzrtp.a)
add_library(lib_zrtpcppcore STATIC IMPORTED)
set_target_properties(lib_zrtpcppcore PROPERTIES IMPORTED_LOCATION
${distribution_DIR}/gzrtp/lib/${ANDROID_ABI}/libzrtpcppcore.a)
add_library(lib_baresip STATIC IMPORTED)
set_target_properties(lib_baresip PROPERTIES IMPORTED_LOCATION
@ -90,7 +86,6 @@ target_link_libraries(baresip
lib_amrwb
lib_amrwbenc
lib_webrtc
lib_zrtp
lib_bn
lib_zrtpcppcore
z
log)

View File

@ -791,7 +791,7 @@ class BaresipService: Service() {
call!!.security = R.drawable.locked_yellow
} else {
call!!.security = R.drawable.locked_green
call.zid = ev[1]
call.zid = ev[3]
}
if (!isMainVisible)
return

View File

@ -18,6 +18,8 @@ object Config {
config = config.replace("webrtc_aec.so", "webrtc_aecm.so")
config = config.replace("module zrtp.so", "module gzrtp.so")
if (config.contains("rtp_stats no"))
replaceVariable("rtp_stats", "yes")

View File

@ -783,7 +783,7 @@ object Utils {
fun unZip(zipFilePath: String): Boolean {
val allFiles = listOf("accounts", "calls", "config", "contacts", "messages", "uuid",
"zrtp_cache.dat", "zrtp_zid", "cert.pem", "ca_cert", "ca_certs.crt")
"zrtp_cache.dat", "gzrtp_zid", "cert.pem", "ca_cert", "ca_certs.crt")
val zipFiles = mutableListOf<String>()
try {
ZipFile(zipFilePath).use { zip ->

View File

@ -476,7 +476,7 @@
</string>
<string name="registering_failed">Registering of \`%1$s\` failed.</string>
<string name="verify">Verify Request</string>
<string name="verify_sas">Do you want to verify SAS &lt;%1$s&gt; &lt;%2$s&gt;?</string>
<string name="verify_sas">Do you want to verify SAS &lt;%1$s&gt;?</string>
<string name="transfer_request">Transfer Request</string>
<string name="transfer_request_query">Do you accept to transfer this call to \'%1$s\'?</string>
<string name="call_failed">Call failed</string>