The app still shipped under the identity of the DJI MSDK Flutter sample it was started from, so every install, log line and crash report named a DJI sample rather than PilotVault. Rename both namespaces: Android com.dji.flutter.dji_msdk_sample -> com.pilotvault.flyapp Dart dji_msdk_sample -> pilotvault_fly The Kotlin sources move under com/pilotvault/flyapp to match. The manifest's meta-data name stays com.dji.sdk.API_KEY — that string is fixed by the SDK's own lookup and is not ours to rename. A DJI App Key is bound to the application id, so the old key died with the old id and a new one was registered against com.pilotvault.flyapp. That forced the key to be touched anyway, so stop committing it: the Gradle property becomes PILOTVAULT_FLY_API_KEY and now lives in the developer's ~/.gradle/gradle.properties, which Gradle merges into every build. android/gradle.properties keeps the build flags — gitignoring it wholesale would have taken useAndroidX and the Flutter migrator flags out of version control with it — and documents where the key belongs. A missing key prints a banner rather than silently baking the placeholder into an APK that cannot register, which otherwise only surfaces as a registration failure once the tablet is out at the aircraft. That warning uses println because `flutter build` filters Gradle's warn-level output. The rename means Android treats this as a new app: uninstall com.dji.flutter.dji_msdk_sample before installing, or both will sit on the tablet. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
22 lines
907 B
Properties
22 lines
907 B
Properties
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
|
|
android.useAndroidX=true
|
|
android.enableJetifier=true
|
|
|
|
# DJI Mobile SDK
|
|
# Register the application id "com.pilotvault.flyapp" at
|
|
# https://developer.dji.com/user/apps/ to obtain an App Key. The key is injected
|
|
# into AndroidManifest.xml via a manifestPlaceholder.
|
|
#
|
|
# The key is deliberately NOT stored in this file, because this file is tracked
|
|
# in git. Put it in your user-global Gradle properties instead, which Gradle
|
|
# merges into every build:
|
|
#
|
|
# ~/.gradle/gradle.properties (Windows: %USERPROFILE%\.gradle\)
|
|
# PILOTVAULT_FLY_API_KEY=your_app_key_here
|
|
#
|
|
# Or pass it per-invocation: -PPILOTVAULT_FLY_API_KEY=your_app_key_here
|
|
# This builtInKotlin flag was added automatically by Flutter migrator
|
|
android.builtInKotlin=false
|
|
# This newDsl flag was added automatically by Flutter migrator
|
|
android.newDsl=false
|