Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Niurka77/tf-app/llms.txt
Use this file to discover all available pages before exploring further.
capacitor.config.json is the central configuration file that bridges TF-App’s Vite web build to its Android native wrapper. Capacitor reads this file during cap sync and cap build to determine where to find your compiled web assets, how to identify the app on the device, and which plugin behaviors to apply at launch. Every change to this file should be followed by npx cap sync so the native Android project stays in sync.
Full Configuration
Top-Level Fields
The Android package identifier for TF-App. This value becomes the
applicationId in android/app/build.gradle and the namespace in the Android project. It must follow reverse-domain notation and be globally unique on the Google Play Store.Current value: com.example.appThe human-readable name displayed on the device home screen and in the app drawer. This value is written to
android/app/src/main/res/values/strings.xml as app_name during cap sync.Current value: tf-appThe path (relative to the project root) where Capacitor looks for compiled web assets to copy into the Android WebView. This must match Vite’s
build.outDir, which defaults to dist. Running npm run build populates this directory before every native build.Current value: distControls how the Capacitor web server behaves inside the Android WebView. See Server Configuration below for details on the
android.cleartext flag.A map of Capacitor plugin names to their configuration objects. TF-App currently configures the
SplashScreen plugin here. See Plugin Configuration for an overview, and the Splash Screen page for the full option reference.Changing the App ID
Before publishing TF-App to the Play Store, replacecom.example.app with a real reverse-domain identifier that you own (e.g., com.yourcompany.tfapp).
Update android/app/build.gradle
Open
android/app/build.gradle and update both namespace and applicationId inside defaultConfig to match:Changing
appId after your app is already published on the Play Store creates a new, separate listing. The original listing cannot be updated to a different app ID. Plan your identifier before your first release.AndroidManifest.xml uses ${applicationId} as a placeholder — for example, in the FileProvider authorities attribute — so it does not need to be edited manually when you change the app ID. Gradle substitutes the value automatically at build time.Server Configuration
Theserver block controls runtime behavior of the embedded web server that Capacitor uses to serve your Vite app inside the Android WebView.
| Field | Type | Description |
|---|---|---|
server.android.cleartext | boolean | When true, allows the WebView to load resources over plain HTTP. Required if your development API server does not use HTTPS. |
Plugin Configuration
Theplugins object in capacitor.config.json is the declarative way to configure Capacitor’s official plugins without writing native code. Each key maps to the plugin’s class name, and the nested object contains that plugin’s accepted options.
TF-App currently configures one plugin at the top level:
SplashScreen
Controls the native Android launch screen shown while the WebView loads. Options include display duration, background color, image scaling, and immersive mode. Full reference on the Splash Screen configuration page.
Plugin configuration in
capacitor.config.json applies at the JavaScript layer. Some plugins also require changes to native files (e.g., AndroidManifest.xml or res/ drawables). Always consult the plugin’s official documentation after adding a new entry here.