The capacitor.config.ts file defines the configuration for the NiimBlues standalone app when built using Capacitor. It specifies the application identity, web directory, plugin settings, and platform-specific build options for Android and iOS.
Core Configuration
appId: The unique identifier for the application (ru.mmote.niimblues).appName: The display name of the application (NiimBlues).webDir: The directory containing the web assets (www).
Plugin Configuration
plugins.SplashScreen: Controls the splash screen behavior. Currently, launchShowDuration is set to 0 to disable the launch duration.
Android Build Options
Android builds are configured via android.buildOptions:
releaseType: The type of build produced (e.g., APK).signingType: The method used for signing (e.g., apksigner).- Keystore Settings: These are pulled from environment variables:
keystorePath: process.env.KEYSTORE_PATHkeystorePassword: process.env.KEYSTORE_PASSWORDkeystoreAlias: process.env.KEYSTORE_ALIASkeystoreAliasPassword: process.env.KEYSTORE_ALIAS_PASSWORD
iOS Configuration
ios.scheme: The URL scheme used by the iOS application (NiimBlues).
import { CapacitorConfig } from "@capacitor/cli";
const config: CapacitorConfig = {
appId: "ru.mmote.niimblues",
appName: "NiimBlues",
webDir: "www",
plugins: {
SplashScreen: {
launchShowDuration: 0,
},
},
android: {
buildOptions: {
releaseType: "APK",
keystorePath: process.env.KEYSTORE_PATH,
keystorePassword: process.env.KEYSTORE_PASSWORD,
keystoreAlias: process.env.KEYSTORE_ALIAS,
keystoreAliasPassword: process.env.KEYSTORE_ALIAS_PASSWORD,
signingType: "apksigner",
},
},
ios: {
scheme: "NiimBlues",
},
};
export default config;