Files
maps-saas/packages/tactical_app/android/app/build.gradle.kts
T

60 lines
2.2 KiB
Kotlin

plugins {
id("com.android.application")
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}
android {
namespace = "com.intaleq.tactical_app"
// valhalla-mobile 0.6.x is built against compileSdk 36 and requires minSdk 26.
compileSdk = 36
ndkVersion = flutter.ndkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
defaultConfig {
applicationId = "com.intaleq.tactical_app"
// محرك التوجيه المحلي Valhalla (valhalla-mobile) يتطلب API 26+ كحد أدنى
minSdk = 26
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
ndk {
// معماريّات أجهزة الحقل المدعومة بمكتبة valhalla-mobile الأصلية
abiFilters += listOf("arm64-v8a", "armeabi-v7a", "x86_64")
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
}
}
}
dependencies {
// محرك التوجيه المحلي (Valhalla C++ ملفوف بـ Kotlin) — يعمل 100% بدون إنترنت
implementation("io.github.rallista:valhalla-mobile:0.6.1")
// نماذج طلبات/استجابات التوجيه + منشئ الإعدادات (مطلوبة صراحةً لأن
// valhalla-mobile تعلنها implementation فلا تظهر على مسار ترجمة التطبيق)
implementation("io.github.rallista:valhalla-models:0.5.0")
implementation("io.github.rallista:valhalla-models-config:0.5.0")
// Moshi لفك/ترميز طلبات واستجابات التوجيه JSON عبر جسر MethodChannel
implementation("com.squareup.moshi:moshi-kotlin:1.15.1")
}
flutter {
source = "../.."
}