capacitor.config.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { CapacitorConfig } from '@capacitor/cli';
  2. let config: CapacitorConfig;
  3. const baseConfig: CapacitorConfig = {
  4. appId: "com.bigauction.mobile",
  5. appName: "FirstCash",
  6. webDir: "dist",
  7. bundledWebRuntime: true,
  8. backgroundColor: "#1C1C1C",
  9. android: {
  10. buildOptions: {
  11. keystorePath: "../zouma.jks",
  12. keystorePassword: "zouma123",
  13. keystoreAlias: "zouma",
  14. keystoreAliasPassword: "zouma123",
  15. releaseType: "APK"
  16. },
  17. minWebViewVersion: 60
  18. },
  19. ios: {
  20. allowsLinkPreview: false
  21. },
  22. plugins: {
  23. SplashScreen: {
  24. launchShowDuration: 2000,
  25. androidScaleType: "CENTER_CROP"
  26. },
  27. CodePush: {
  28. IOS_DEPLOY_KEY: "eAdEIJJkMhuRwBKVpDXvbay6Ay0yEJAbzi0Ur",
  29. ANDROID_DEPLOY_KEY: "ZrEsHcngd89oYtHZYQxLRUSMJ8trafzoNUVDN",
  30. SERVER_URL: "https://codepush.appcenter.ms/"
  31. }
  32. },
  33. server: {
  34. errorPath: "error.html"
  35. }
  36. }
  37. config = { ...baseConfig }
  38. switch (process.env.NODE_ENV) {
  39. case 'dev':
  40. config.android!.flavor = 'dev';
  41. config.plugins!.CodePush!.ANDROID_DEPLOY_KEY = '6yDUHefjATEf9hCyLrEKBXb6uITu9u_fIA1bS'
  42. break;
  43. default:
  44. config.android!.flavor = 'prod';
  45. break;
  46. }
  47. export default config;