- New :wear application module (Wear Compose, minSdk 30) - Second JNI lib 'wearbaresip' reusing distribution static libs - Watch-side service initializes baresip via full init path (libre_init -> conf_configure -> baresip_init -> ua_init) - FGS started from MainActivity foreground state with mic type only (phoneCall requires default-dialer, rejected on watch) - Runtime-verified: builds, installs, native lib loads and SIP stack starts on armeabi-v7a Wear OS device
53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
plugins {
|
|
id("com.android.application")
|
|
alias(libs.plugins.compose.compiler)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.tutpro.baresip.wear"
|
|
compileSdk = 37
|
|
ndkVersion = "29.0.14206865"
|
|
|
|
defaultConfig {
|
|
applicationId = "com.tutpro.baresip.wear"
|
|
minSdk = 30
|
|
targetSdk = 36
|
|
versionCode = 1
|
|
versionName = "0.1.0-wear"
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
cFlags += "-DHAVE_INTTYPES_H -lstdc++"
|
|
arguments.addAll(listOf("-DANDROID_STL=c++_shared"))
|
|
}
|
|
}
|
|
ndk {
|
|
abiFilters.addAll(listOf("arm64-v8a", "armeabi-v7a"))
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
buildConfig = true
|
|
}
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
path = file("src/main/cpp/CMakeLists.txt")
|
|
version = "3.31.6"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(platform(libs.androidx.compose.bom))
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.androidx.lifecycle.runtime.compose)
|
|
implementation(libs.androidx.lifecycle.viewmodel.ktx)
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(libs.androidx.wear)
|
|
implementation(libs.androidx.wear.compose)
|
|
implementation(libs.androidx.wear.compose.foundation)
|
|
implementation(libs.androidx.wear.compose.navigation)
|
|
}
|