إضافة الهوية الجديدة Tripz

This commit is contained in:
Hamza-Ayed
2026-07-29 02:31:04 +03:00
parent ecbe245b77
commit b9a97effe5
634 changed files with 5149 additions and 5294 deletions
@@ -80,21 +80,21 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- Deep Link: siromove://... -->
<!-- Deep Link: tripzmove://... -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="siromove" />
<data android:scheme="tripzmove" />
</intent-filter>
<!-- App Links for siromove.com -->
<!-- App Links for tripzmove.com -->
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="siromove.com" android:pathPrefix="/" />
<data android:scheme="https" android:host="www.siromove.com" android:pathPrefix="/" />
<data android:scheme="https" android:host="tripzmove.com" android:pathPrefix="/" />
<data android:scheme="https" android:host="www.tripzmove.com" android:pathPrefix="/" />
</intent-filter>
<!-- Navigation Intents -->
@@ -129,7 +129,7 @@
android:exported="true"
/>
<service
android:name="com.siro.siro_driver.trip_overlay_plugin.TripOverlayService"
android:name="com.tripz.tripz_driver.trip_overlay_plugin.TripOverlayService"
android:exported="false"
android:foregroundServiceType="specialUse" />
<service android:name=".MyFirebaseMessagingService" android:exported="false" />
@@ -168,7 +168,7 @@
android:exported="true" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.siro.siro_driver" />
<category android:name="com.tripz.tripz_driver" />
</intent-filter>
</receiver>
<!-- خدمة الفقاعة الخاصة بك -->
@@ -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(siro_driver) # Good
project(tripz_driver) # Good
# Add your C++ source file(s) to create a SHARED library.
add_library(native-lib SHARED native-lib.cpp)
@@ -158,7 +158,7 @@ bool checkLoadedModules()
//}
extern "C" JNIEXPORT jboolean JNICALL
Java_com_siro_siro_1driver_RootDetection_isNativeRooted(JNIEnv *env, jobject /* this */)
Java_com_sefer_1driver_RootDetection_isNativeRooted(JNIEnv *env, jobject /* this */)
{
if (isRooted())
@@ -1,4 +1,4 @@
package com.siro.siro_driver
package com.tripz.tripz_driver
import android.os.Handler
import android.os.Looper
@@ -1,4 +1,4 @@
package com.siro.siro_driver
package com.tripz.tripz_driver
import android.app.AlertDialog
import android.content.Intent
@@ -18,8 +18,8 @@ import java.util.Timer
import kotlin.concurrent.schedule
class MainActivity : FlutterFragmentActivity() {
private val SECURITY_CHANNEL = "com.siro.siro_driver/security"
private val APP_CONTROL_CHANNEL = "com.siro.siro_driver/app_control"
private val SECURITY_CHANNEL = "com.tripz.tripz_driver/security"
private val APP_CONTROL_CHANNEL = "com.tripz.tripz_driver/app_control"
private var appControlChannel: MethodChannel? = null
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
@@ -63,7 +63,7 @@ class MainActivity : FlutterFragmentActivity() {
}
// ✅ Channel for Android Auto Navigation Updates
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, "com.siro.siro_driver/car_navigation")
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, "com.tripz.tripz_driver/car_navigation")
.setMethodCallHandler { call, result ->
when (call.method) {
"updateNavState" -> {
@@ -1,4 +1,4 @@
package com.siro.siro_driver
package com.tripz.tripz_driver
import android.app.Presentation
import android.content.Context
@@ -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
@@ -32,9 +32,9 @@ class MapPresentation(outerContext: Context, display: Display) : Presentation(ou
private fun reloadStyleIfNeeded() {
val expectedStyle = if (CarNavigationData.isMapDarkMode)
"asset://packages/intaleq_maps/assets/style_dark.json"
"asset://packages/tripz_maps/assets/style_dark.json"
else
"asset://packages/intaleq_maps/assets/style.json"
"asset://packages/tripz_maps/assets/style.json"
if (currentStyleLoaded != expectedStyle && isMapReady) {
currentStyleLoaded = expectedStyle
@@ -66,11 +66,11 @@ class MapPresentation(outerContext: Context, display: Display) : Presentation(ou
mapView.getMapAsync { map ->
mapboxMap = map
// تحميل ستايل خرائط سيرو من حزمة intaleq_maps حسب الوضعية
// تحميل ستايل خرائط تريبز من حزمة tripz_maps حسب الوضعية
currentStyleLoaded = if (CarNavigationData.isMapDarkMode)
"asset://packages/intaleq_maps/assets/style_dark.json"
"asset://packages/tripz_maps/assets/style_dark.json"
else
"asset://packages/intaleq_maps/assets/style.json"
"asset://packages/tripz_maps/assets/style.json"
map.setStyle(Style.Builder().fromUri(currentStyleLoaded!!)) {
isMapReady = true
updateCameraPosition()
@@ -1,4 +1,4 @@
package com.siro.siro_driver
package com.tripz.tripz_driver
import android.app.Application
import android.content.Intent
@@ -24,7 +24,7 @@ class MyApplication : Application() {
MethodChannel(
flutterEngine.dartExecutor.binaryMessenger,
"com.siro.siro_driver/app_lifecycle"
"com.tripz.tripz_driver/app_lifecycle"
)
.setMethodCallHandler { call, result ->
if (call.method == "bringAppToForeground") {
@@ -1,4 +1,4 @@
package com.siro.siro_driver
package com.tripz.tripz_driver
import android.content.pm.ApplicationInfo
import androidx.car.app.CarAppService
@@ -1,4 +1,4 @@
package com.siro.siro_driver
package com.tripz.tripz_driver
import androidx.car.app.CarContext
import androidx.car.app.Screen
@@ -24,14 +24,14 @@ class MyCarScreen(carContext: CarContext) : Screen(carContext) {
override fun onGetTemplate(): Template {
// إذا لم يكن التوجيه نشطاً بعد، نعرض شاشة ترحيبية
if (!CarNavigationData.isNavigating) {
return MessageTemplate.Builder("مرحباً بك في سيرو درايفر\nبانتظار بدء رحلة جديدة...")
.setTitle("Siro Driver")
return MessageTemplate.Builder("مرحباً بك في تريبز درايفر\nبانتظار بدء رحلة جديدة...")
.setTitle("Tripz Driver")
.setHeaderAction(Action.APP_ICON)
.build()
}
// --- بناء معلومات التوجيه (Turn-by-Turn) ---
val maneuverType = mapSiroManeuverToCarManeuver(CarNavigationData.maneuverType)
val maneuverType = mapTripzManeuverToCarManeuver(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 mapSiroManeuverToCarManeuver(siroCode: Int): Int {
return when (siroCode) {
private fun mapTripzManeuverToCarManeuver(tripzCode: Int): Int {
return when (tripzCode) {
0 -> Maneuver.TYPE_STRAIGHT // مستقيم
2 -> Maneuver.TYPE_TURN_NORMAL_RIGHT // يمين
3 -> Maneuver.TYPE_TURN_SLIGHT_RIGHT // يمين خفيف
@@ -1,4 +1,4 @@
package com.siro.siro_driver
package com.tripz.tripz_driver
import android.content.Intent
import android.hardware.display.DisplayManager
@@ -1,4 +1,4 @@
package com.siro.siro_driver
package com.tripz.tripz_driver
object RootDetection {
init {
Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 B

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 442 B

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 721 B

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 39 KiB

@@ -4,5 +4,5 @@
تشغيل التطبيق على هذا الجهاز.</string>
<string name="exit_button">إغلاق التطبيق</string>
<string name="device_secure">الجهاز آمن. الاستمرار بشكل طبيعي.</string>
<string name="label">سيرو درايفر</string>
<string name="label">تريبز درايفر</string>
</resources>
@@ -6,7 +6,7 @@
<string name="api_key">e</string>
<string name="security_warning_title">Security Warning</string>
<string name="api_key_safety">AIzaSyB04YNW3LbvmQ5lX1t2bOwEU18-</string>
<string name="label">Siro Driver</string>
<string name="label">Tripz Driver</string>
<string name="security_warning_message">A security issue or modification has been detected on
this device. The app cannot run on this device.</string>
@@ -7,8 +7,8 @@
</base-config>
<domain-config cleartextTrafficPermitted="false">
<domain includeSubdomains="true">intaleq.xyz</domain>
<domain includeSubdomains="true">siromove.com</domain>
<domain includeSubdomains="true">tripz.xyz</domain>
<domain includeSubdomains="true">tripzmove.com</domain>
<pin-set expiration="2028-01-01">
<!-- Primary: ISRG Root X1 (RSA) -->