Update: 2026-06-11 13:47:39

This commit is contained in:
Hamza-Ayed
2026-06-11 13:47:40 +03:00
parent 977adfe99d
commit c5170a88d2
516 changed files with 3654 additions and 3321 deletions

View File

@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10.2) # 3.10.2 is fine, but no need to go as high as 3.31.5
project(intaleq_driver) # Good
project(siro_driver) # Good
# Add your C++ source file(s) to create a SHARED library.
add_library(native-lib SHARED native-lib.cpp)

View File

@@ -16,7 +16,7 @@ import org.maplibre.android.maps.Style
/**
* شاشة عرض وهمية (Presentation) تُرسم على VirtualDisplay الخاص بشاشة السيارة.
* تستخدم MapLibre Native SDK لعرض الخريطة بنفس ستايل تطبيق انطلق.
* تستخدم MapLibre Native SDK لعرض الخريطة بنفس ستايل تطبيق سيرو.
*/
class MapPresentation(outerContext: Context, display: Display) : Presentation(outerContext, display) {
lateinit var mapView: MapView
@@ -51,7 +51,7 @@ class MapPresentation(outerContext: Context, display: Display) : Presentation(ou
mapView.getMapAsync { map ->
mapboxMap = map
// تحميل ستايل خرائط انطلق من أصول فلاتر
// تحميل ستايل خرائط سيرو من أصول فلاتر
val styleUrl = "asset://flutter_assets/assets/style.json"
map.setStyle(Style.Builder().fromUri(styleUrl)) {
isMapReady = true

View File

@@ -24,14 +24,14 @@ class MyCarScreen(carContext: CarContext) : Screen(carContext) {
override fun onGetTemplate(): Template {
// إذا لم يكن التوجيه نشطاً بعد، نعرض شاشة ترحيبية
if (!CarNavigationData.isNavigating) {
return MessageTemplate.Builder("مرحباً بك في انطلق درايفر\nبانتظار بدء رحلة جديدة...")
.setTitle("Intaleq Driver")
return MessageTemplate.Builder("مرحباً بك في سيرو درايفر\nبانتظار بدء رحلة جديدة...")
.setTitle("Siro Driver")
.setHeaderAction(Action.APP_ICON)
.build()
}
// --- بناء معلومات التوجيه (Turn-by-Turn) ---
val maneuverType = mapIntaleqManeuverToCarManeuver(CarNavigationData.maneuverType)
val maneuverType = mapSiroManeuverToCarManeuver(CarNavigationData.maneuverType)
val maneuver = Maneuver.Builder(maneuverType).build()
val step = Step.Builder(CarNavigationData.currentInstruction)
@@ -60,11 +60,11 @@ class MyCarScreen(carContext: CarContext) : Screen(carContext) {
}
/**
* تحويل أكواد الانعطاف الخاصة بتطبيق انطلق (NavigationController.currentManeuverModifier)
* تحويل أكواد الانعطاف الخاصة بتطبيق سيرو (NavigationController.currentManeuverModifier)
* إلى أكواد Maneuver الرسمية من مكتبة Android for Cars.
*/
private fun mapIntaleqManeuverToCarManeuver(intaleqCode: Int): Int {
return when (intaleqCode) {
private fun mapSiroManeuverToCarManeuver(siroCode: Int): Int {
return when (siroCode) {
0 -> Maneuver.TYPE_STRAIGHT // مستقيم
2 -> Maneuver.TYPE_TURN_NORMAL_RIGHT // يمين
3 -> Maneuver.TYPE_TURN_SLIGHT_RIGHT // يمين خفيف

View File

@@ -4,5 +4,5 @@
تشغيل التطبيق على هذا الجهاز.</string>
<string name="exit_button">إغلاق التطبيق</string>
<string name="device_secure">الجهاز آمن. الاستمرار بشكل طبيعي.</string>
<string name="label">انطلق درايفر</string>
<string name="label">سيرو درايفر</string>
</resources>