From fee4fda9743d22cf4447e577e87051ea538f777c Mon Sep 17 00:00:00 2001 From: tajniak81 <13187254+tajniak81@users.noreply.github.com> Date: Tue, 21 Jul 2026 20:03:16 +0200 Subject: [PATCH] Phone App: rename Android package to com.drivervault.phoneapp Updates the Gradle namespace/applicationId, moves MainActivity.kt to the matching source directory, and refreshes the package id in the README. The Dart package name in pubspec.yaml is unchanged. Since the application id changed, existing installs will not upgrade in place and their local secure-storage/prefs data does not carry over. Co-Authored-By: Claude Opus 4.8 --- Phone App/README.md | 4 ++-- Phone App/android/app/build.gradle.kts | 5 ++--- .../phoneapp}/MainActivity.kt | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) rename Phone App/android/app/src/main/kotlin/com/{carcontrole/carcontrol_phone => drivervault/phoneapp}/MainActivity.kt (86%) diff --git a/Phone App/README.md b/Phone App/README.md index d3815cd..8049845 100644 --- a/Phone App/README.md +++ b/Phone App/README.md @@ -5,7 +5,7 @@ API Server (same contract and auth as the web app — a PocketBase token relayed the server, not a JWT the server mints). At full feature parity with the web app (data export/import is the only deliberate omission). -Project name `carcontrol_phone`, package id `com.carcontrole.carcontrol_phone`. +Project name `carcontrol_phone`, package id `com.drivervault.phoneapp`. **Android is the supported target** — the older Flutter-web build path is deprecated. @@ -118,7 +118,7 @@ flutter run -d --dart-define=API_BASE=http://10.2.1.101:8080/api # build a debug APK for a real phone on the LAN flutter build apk --debug --dart-define=API_BASE=http://10.2.1.101:8080/api adb install -r build/app/outputs/flutter-apk/app-debug.apk -adb shell monkey -p com.carcontrole.carcontrol_phone -c android.intent.category.LAUNCHER 1 +adb shell monkey -p com.drivervault.phoneapp -c android.intent.category.LAUNCHER 1 ``` Notes: diff --git a/Phone App/android/app/build.gradle.kts b/Phone App/android/app/build.gradle.kts index 174a5c3..911dc66 100644 --- a/Phone App/android/app/build.gradle.kts +++ b/Phone App/android/app/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } android { - namespace = "com.carcontrole.carcontrol_phone" + namespace = "com.drivervault.phoneapp" compileSdk = flutter.compileSdkVersion ndkVersion = flutter.ndkVersion @@ -15,8 +15,7 @@ android { } defaultConfig { - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId = "com.carcontrole.carcontrol_phone" + applicationId = "com.drivervault.phoneapp" // You can update the following values to match your application needs. // For more information, see: https://flutter.dev/to/review-gradle-config. minSdk = flutter.minSdkVersion diff --git a/Phone App/android/app/src/main/kotlin/com/carcontrole/carcontrol_phone/MainActivity.kt b/Phone App/android/app/src/main/kotlin/com/drivervault/phoneapp/MainActivity.kt similarity index 86% rename from Phone App/android/app/src/main/kotlin/com/carcontrole/carcontrol_phone/MainActivity.kt rename to Phone App/android/app/src/main/kotlin/com/drivervault/phoneapp/MainActivity.kt index cf26b6f..0866939 100644 --- a/Phone App/android/app/src/main/kotlin/com/carcontrole/carcontrol_phone/MainActivity.kt +++ b/Phone App/android/app/src/main/kotlin/com/drivervault/phoneapp/MainActivity.kt @@ -1,4 +1,4 @@ -package com.carcontrole.carcontrol_phone +package com.drivervault.phoneapp import io.flutter.embedding.android.FlutterFragmentActivity