@devlander/expo-app-config 0.0.74 → 0.0.80

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/typings/__tests__/apply-relative-paths-to-config.test.d.ts +2 -0
  4. package/dist/cjs/typings/__tests__/apply-relative-paths-to-config.test.d.ts.map +1 -0
  5. package/dist/cjs/typings/__tests__/format-assets-path.test.d.ts +2 -0
  6. package/dist/cjs/typings/__tests__/format-assets-path.test.d.ts.map +1 -0
  7. package/dist/cjs/typings/__tests__/tools.test.d.ts +2 -0
  8. package/dist/cjs/typings/__tests__/tools.test.d.ts.map +1 -0
  9. package/dist/cjs/typings/apply-relative-paths-to-config.d.ts +10 -0
  10. package/dist/cjs/typings/apply-relative-paths-to-config.d.ts.map +1 -0
  11. package/dist/cjs/typings/create-bundle.d.ts +7 -2
  12. package/dist/cjs/typings/create-bundle.d.ts.map +1 -1
  13. package/dist/cjs/typings/format-assets-path.d.ts +3 -0
  14. package/dist/cjs/typings/format-assets-path.d.ts.map +1 -0
  15. package/dist/cjs/typings/get-app-images.d.ts +9 -0
  16. package/dist/cjs/typings/get-app-images.d.ts.map +1 -0
  17. package/dist/cjs/typings/get-colors-for-environment.d.ts.map +1 -1
  18. package/dist/cjs/typings/get-versions.d.ts +2 -2
  19. package/dist/cjs/typings/get-versions.d.ts.map +1 -1
  20. package/dist/cjs/typings/setup-config.types.d.ts +4 -10
  21. package/dist/cjs/typings/setup-config.types.d.ts.map +1 -1
  22. package/dist/cjs/typings/tools.d.ts +18 -0
  23. package/dist/cjs/typings/tools.d.ts.map +1 -0
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/index.js.map +1 -1
  26. package/dist/esm/typings/__tests__/apply-relative-paths-to-config.test.d.ts +2 -0
  27. package/dist/esm/typings/__tests__/apply-relative-paths-to-config.test.d.ts.map +1 -0
  28. package/dist/esm/typings/__tests__/format-assets-path.test.d.ts +2 -0
  29. package/dist/esm/typings/__tests__/format-assets-path.test.d.ts.map +1 -0
  30. package/dist/esm/typings/__tests__/tools.test.d.ts +2 -0
  31. package/dist/esm/typings/__tests__/tools.test.d.ts.map +1 -0
  32. package/dist/esm/typings/apply-relative-paths-to-config.d.ts +10 -0
  33. package/dist/esm/typings/apply-relative-paths-to-config.d.ts.map +1 -0
  34. package/dist/esm/typings/create-bundle.d.ts +7 -2
  35. package/dist/esm/typings/create-bundle.d.ts.map +1 -1
  36. package/dist/esm/typings/format-assets-path.d.ts +3 -0
  37. package/dist/esm/typings/format-assets-path.d.ts.map +1 -0
  38. package/dist/esm/typings/get-app-images.d.ts +9 -0
  39. package/dist/esm/typings/get-app-images.d.ts.map +1 -0
  40. package/dist/esm/typings/get-colors-for-environment.d.ts.map +1 -1
  41. package/dist/esm/typings/get-versions.d.ts +2 -2
  42. package/dist/esm/typings/get-versions.d.ts.map +1 -1
  43. package/dist/esm/typings/setup-config.types.d.ts +4 -10
  44. package/dist/esm/typings/setup-config.types.d.ts.map +1 -1
  45. package/dist/esm/typings/tools.d.ts +18 -0
  46. package/dist/esm/typings/tools.d.ts.map +1 -0
  47. package/dist/umd/index.js +2 -0
  48. package/dist/umd/index.js.map +1 -0
  49. package/dist/umd/typings/__tests__/apply-relative-paths-to-config.test.d.ts +2 -0
  50. package/dist/umd/typings/__tests__/apply-relative-paths-to-config.test.d.ts.map +1 -0
  51. package/dist/umd/typings/__tests__/create-bundle.test.d.ts +2 -0
  52. package/dist/umd/typings/__tests__/create-bundle.test.d.ts.map +1 -0
  53. package/dist/umd/typings/__tests__/format-assets-path.test.d.ts +2 -0
  54. package/dist/umd/typings/__tests__/format-assets-path.test.d.ts.map +1 -0
  55. package/dist/umd/typings/__tests__/get-colors-for-environment.test.d.ts +2 -0
  56. package/dist/umd/typings/__tests__/get-colors-for-environment.test.d.ts.map +1 -0
  57. package/dist/umd/typings/__tests__/get-images-for-config.test.d.ts +2 -0
  58. package/dist/umd/typings/__tests__/get-images-for-config.test.d.ts.map +1 -0
  59. package/dist/umd/typings/__tests__/get-versions.test.d.ts +2 -0
  60. package/dist/umd/typings/__tests__/get-versions.test.d.ts.map +1 -0
  61. package/dist/umd/typings/__tests__/tools.test.d.ts +2 -0
  62. package/dist/umd/typings/__tests__/tools.test.d.ts.map +1 -0
  63. package/dist/umd/typings/apply-relative-paths-to-config.d.ts +10 -0
  64. package/dist/umd/typings/apply-relative-paths-to-config.d.ts.map +1 -0
  65. package/dist/umd/typings/create-bundle.d.ts +8 -0
  66. package/dist/umd/typings/create-bundle.d.ts.map +1 -0
  67. package/dist/umd/typings/create-names-for-package.d.ts +9 -0
  68. package/dist/umd/typings/create-names-for-package.d.ts.map +1 -0
  69. package/dist/umd/typings/format-assets-path.d.ts +3 -0
  70. package/dist/umd/typings/format-assets-path.d.ts.map +1 -0
  71. package/dist/umd/typings/get-app-images.d.ts +9 -0
  72. package/dist/umd/typings/get-app-images.d.ts.map +1 -0
  73. package/dist/umd/typings/get-colors-for-environment.d.ts +3 -0
  74. package/dist/umd/typings/get-colors-for-environment.d.ts.map +1 -0
  75. package/dist/umd/typings/get-images-for-config.d.ts +16 -0
  76. package/dist/umd/typings/get-images-for-config.d.ts.map +1 -0
  77. package/dist/umd/typings/get-versions.d.ts +3 -0
  78. package/dist/umd/typings/get-versions.d.ts.map +1 -0
  79. package/dist/umd/typings/index.d.ts +10 -0
  80. package/dist/umd/typings/index.d.ts.map +1 -0
  81. package/dist/umd/typings/setup-config.types.d.ts +146 -0
  82. package/dist/umd/typings/setup-config.types.d.ts.map +1 -0
  83. package/dist/umd/typings/tools.d.ts +18 -0
  84. package/dist/umd/typings/tools.d.ts.map +1 -0
  85. package/package.json +14 -8
  86. package/typings/__tests__/apply-relative-paths-to-config.test.d.ts +2 -0
  87. package/typings/__tests__/apply-relative-paths-to-config.test.d.ts.map +1 -0
  88. package/typings/__tests__/format-assets-path.test.d.ts +2 -0
  89. package/typings/__tests__/format-assets-path.test.d.ts.map +1 -0
  90. package/typings/__tests__/tools.test.d.ts +2 -0
  91. package/typings/__tests__/tools.test.d.ts.map +1 -0
  92. package/typings/apply-relative-paths-to-config.d.ts +10 -0
  93. package/typings/apply-relative-paths-to-config.d.ts.map +1 -0
  94. package/typings/create-bundle.d.ts +7 -2
  95. package/typings/create-bundle.d.ts.map +1 -1
  96. package/typings/format-assets-path.d.ts +3 -0
  97. package/typings/format-assets-path.d.ts.map +1 -0
  98. package/typings/get-app-images.d.ts +9 -0
  99. package/typings/get-app-images.d.ts.map +1 -0
  100. package/typings/get-colors-for-environment.d.ts.map +1 -1
  101. package/typings/get-versions.d.ts +2 -2
  102. package/typings/get-versions.d.ts.map +1 -1
  103. package/typings/setup-config.types.d.ts +4 -10
  104. package/typings/setup-config.types.d.ts.map +1 -1
  105. package/typings/tools.d.ts +18 -0
  106. package/typings/tools.d.ts.map +1 -0
  107. package/dist/cjs/typings/normalize-paths.d.ts +0 -6
  108. package/dist/cjs/typings/normalize-paths.d.ts.map +0 -1
  109. package/dist/esm/typings/normalize-paths.d.ts +0 -6
  110. package/dist/esm/typings/normalize-paths.d.ts.map +0 -1
  111. package/typings/normalize-paths.d.ts +0 -6
  112. package/typings/normalize-paths.d.ts.map +0 -1
@@ -3,13 +3,15 @@ export interface BundleConfig {
3
3
  colorsPath: string;
4
4
  envVariables: AppConfigFromEnv;
5
5
  imagesPath: string;
6
- rootFolder: string;
7
6
  versionsPath: string;
8
7
  projectId: string;
9
8
  }
10
9
  export interface AppConfigFromEnv {
11
10
  environment: EnvType;
12
- baseURL: string;
11
+ baseURL: {
12
+ native: string;
13
+ web: string;
14
+ };
13
15
  branding: {
14
16
  logoURL: string;
15
17
  };
@@ -18,10 +20,6 @@ export interface AppConfigFromEnv {
18
20
  primaryTagline: string;
19
21
  secondaryTagline: string;
20
22
  };
21
- jwPlayer: {
22
- playerKey: string;
23
- playerSecret: string;
24
- };
25
23
  authentication: {
26
24
  login: {
27
25
  email: string;
@@ -38,10 +36,6 @@ export interface AppConfigFromEnv {
38
36
  lastName: string;
39
37
  };
40
38
  };
41
- stripeDetails: {
42
- secretKey: string;
43
- publishableKey: string;
44
- };
45
39
  apiKeys: {
46
40
  [key: string]: string;
47
41
  };
@@ -1 +1 @@
1
- {"version":3,"file":"setup-config.types.d.ts","sourceRoot":"","sources":["../src/setup-config.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG,WAAW,CAAC;AAC5D,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,gBAAgB,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,QAAQ,EAAE;QACR,WAAW,EAAE,MAAM,CAAC;QACpB,cAAc,EAAE,MAAM,CAAC;QACvB,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,QAAQ,EAAE;QACR,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,cAAc,EAAE;QACd,KAAK,EAAE;YACL,KAAK,EAAE,MAAM,CAAC;YACd,QAAQ,EAAE,MAAM,CAAC;YACjB,WAAW,EAAE,MAAM,CAAC;YACpB,SAAS,EAAE,MAAM,CAAC;YAClB,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;QACF,QAAQ,EAAE;YACR,KAAK,EAAE,MAAM,CAAC;YACd,QAAQ,EAAE,MAAM,CAAC;YACjB,WAAW,EAAE,MAAM,CAAC;YACpB,SAAS,EAAE,MAAM,CAAC;YAClB,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;KACH,CAAC;IACF,aAAa,EA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AAS,CAAC;YACjC,eAAe,EAAE,MAAM,CAAC;SACzB,CAAC;QACF,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB"}
@@ -0,0 +1,18 @@
1
+ import { AppConfigFromEnv, BundleConfig, PieceOfConfig } from ".";
2
+ export declare const writeConfigToJsonFile: (result: PieceOfConfig, environment: AppConfigFromEnv["environment"]) => void;
3
+ export declare const generateBundleConfigForEnvironment: (environment: AppConfigFromEnv["environment"]) => BundleConfig;
4
+ export declare const generateAppConfigForEnvironment: (appName: string, environment: AppConfigFromEnv["environment"]) => PieceOfConfig;
5
+ export declare const generateFaultyAppConfig: (name: string, slug: string) => PieceOfConfig;
6
+ export declare const productionConfig: BundleConfig;
7
+ export declare const stagingConfig: BundleConfig;
8
+ export declare const localConfig: BundleConfig;
9
+ export declare const developmentConfig: BundleConfig;
10
+ export declare const expoDevConfig: PieceOfConfig;
11
+ export declare const expoProductionConfig: PieceOfConfig;
12
+ export declare const expoStagingConfig: PieceOfConfig;
13
+ export declare const faultyConfig: PieceOfConfig;
14
+ export declare const productionResult: any;
15
+ export declare const stagingResult: any;
16
+ export declare const localResult: any;
17
+ export declare const developmentResult: any;
18
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AACA,OAAqB,EACnB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EAEd,MAAM,GAAG,CAAC;AAKX,eAAO,MAAM,qBAAqB,WACxB,aAAa,eACR,gBAAgB,CAAC,aAAa,CAAC,SAG7C,CAAC;AAGF,eAAO,MAAM,kCAAkC,gBAChC,gBAAgB,CAAC,aAAa,CAAC,KAC3C,YA6CF,CAAC;AAGF,eAAO,MAAM,+BAA+B,YACjC,MAAM,eACF,gBAAgB,CAAC,aAAa,CAAC,KAC3C,aAmFF,CAAC;AAGF,eAAO,MAAM,uBAAuB,SAC5B,MAAM,QACN,MAAM,KACX,aA4CF,CAAC;AAGF,eAAO,MAAM,gBAAgB,cACqB,CAAC;AACnD,eAAO,MAAM,aAAa,cAAgD,CAAC;AAC3E,eAAO,MAAM,WAAW,cAA8C,CAAC;AACvE,eAAO,MAAM,iBAAiB,cACqB,CAAC;AAEpD,eAAO,MAAM,aAAa,eAGzB,CAAC;AACF,eAAO,MAAM,oBAAoB,eAGhC,CAAC;AACF,eAAO,MAAM,iBAAiB,eAG7B,CAAC;AAEF,eAAO,MAAM,YAAY,eAA6C,CAAC;AAIvE,eAAO,MAAM,gBAAgB,KAA+C,CAAC;AAC7E,eAAO,MAAM,aAAa,KAA4C,CAAC;AACvE,eAAO,MAAM,WAAW,KAA0C,CAAC;AACnE,eAAO,MAAM,iBAAiB,KAAgD,CAAC"}
@@ -0,0 +1,2 @@
1
+ !function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EnvEumFromPackage=exports.getVersions=exports.getImagesForEnvironment=exports.getColorsForEnvironment=exports.createNamesForPackage=exports.createBundle=void 0;var e=require("./create-bundle"),r=require("./create-bundle");Object.defineProperty(exports,"createBundle",{enumerable:!0,get:function(){return r.createBundle}});var t=require("./create-names-for-package");Object.defineProperty(exports,"createNamesForPackage",{enumerable:!0,get:function(){return t.createNamesForPackage}});var n=require("./get-colors-for-environment");Object.defineProperty(exports,"getColorsForEnvironment",{enumerable:!0,get:function(){return n.getColorsForEnvironment}});var o=require("./get-images-for-config");Object.defineProperty(exports,"getImagesForEnvironment",{enumerable:!0,get:function(){return o.getImagesForEnvironment}});var a=require("./get-versions");Object.defineProperty(exports,"getVersions",{enumerable:!0,get:function(){return a.getVersions}});var i=require("./setup-config.types");Object.defineProperty(exports,"EnvEumFromPackage",{enumerable:!0,get:function(){return i.EnvEumFromPackage}}),exports.default=e.createBundle}));
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import { createBundle } from \"./create-bundle\";\n\nexport { createBundle } from \"./create-bundle\";\nexport { createNamesForPackage } from \"./create-names-for-package\";\nexport { getColorsForEnvironment } from \"./get-colors-for-environment\";\nexport { getImagesForEnvironment } from \"./get-images-for-config\";\nexport type { ImagesForEnvironment } from \"./get-images-for-config\";\nexport { getVersions } from \"./get-versions\";\nexport {\n AppConfigFromEnv,\n ColorsFromAssets,\n EnvEumFromPackage,\n ColorMode,\n BundleConfig,\n EnvType,\n ColorAppConfig,\n PieceOfConfig,\n AndroidVersion,\n SplashConfig,\n EnvironmentConfig,\n IOSVersion,\n} from \"./setup-config.types\";\n\nexport default createBundle;\n"],"names":["create_bundle_1","require","create_bundle_2","Object","defineProperty","exports","enumerable","get","createBundle","create_names_for_package_1","createNamesForPackage","get_colors_for_environment_1","getColorsForEnvironment","get_images_for_config_1","getImagesForEnvironment","get_versions_1","getVersions","setup_config_types_1","EnvEumFromPackage"],"mappings":"0TAAA,IAA+CA,EAAAC,QAAA,mBAEAC,EAAAD,QAAA,mBAAtCE,OAAAC,eAAAC,QAAA,eAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAAAL,EAAAM,YAAY,IACrB,IAAmEC,EAAAR,QAAA,8BAA1DE,OAAAC,eAAAC,QAAA,wBAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAAAE,EAAAC,qBAAqB,IAC9B,IAAuEC,EAAAV,QAAA,gCAA9DE,OAAAC,eAAAC,QAAA,0BAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAAAI,EAAAC,uBAAuB,IAChC,IAAkEC,EAAAZ,QAAA,2BAAzDE,OAAAC,eAAAC,QAAA,0BAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAAAM,EAAAC,uBAAuB,IAEhC,IAA6CC,EAAAd,QAAA,kBAApCE,OAAAC,eAAAC,QAAA,cAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAAAQ,EAAAC,WAAW,IACpB,IAa8BC,EAAAhB,QAAA,wBAV5BE,OAAAC,eAAAC,QAAA,oBAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAAAU,EAAAC,iBAAiB,IAYnBb,QAAA,QAAeL"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=apply-relative-paths-to-config.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply-relative-paths-to-config.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/apply-relative-paths-to-config.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-bundle.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-bundle.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/create-bundle.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=format-assets-path.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-assets-path.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/format-assets-path.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=get-colors-for-environment.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-colors-for-environment.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/get-colors-for-environment.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=get-images-for-config.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-images-for-config.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/get-images-for-config.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=get-versions.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-versions.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/get-versions.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tools.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/tools.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Recursively applies relative path conversion to all asset paths in a configuration object.
3
+ * This function iterates through each property of the object. If the property is a string
4
+ * containing '/assets', it converts it using `convertAbsolutePathToRelative`. If the property
5
+ * is an object or an array, it recursively applies the same logic to its properties or elements.
6
+ * @param {object} config - The configuration object to be processed.
7
+ * @param {string} [basePath=''] - The base path for recursion, used for nested objects.
8
+ */
9
+ export declare function applyRelativePathsToConfig(config: any, basePath?: string): void;
10
+ //# sourceMappingURL=apply-relative-paths-to-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply-relative-paths-to-config.d.ts","sourceRoot":"","sources":["../src/apply-relative-paths-to-config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,GAAG,EAAE,QAAQ,SAAK,QAoBpE"}
@@ -0,0 +1,8 @@
1
+ import type { BundleConfig, PieceOfConfig } from "./setup-config.types";
2
+ interface PartialConfig extends Partial<PieceOfConfig> {
3
+ name: string;
4
+ slug: string;
5
+ }
6
+ export declare const createBundle: (existingConfig: PartialConfig, bundleConfig: BundleConfig) => PieceOfConfig | any;
7
+ export {};
8
+ //# sourceMappingURL=create-bundle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-bundle.d.ts","sourceRoot":"","sources":["../src/create-bundle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EAEZ,aAAa,EACd,MAAM,sBAAsB,CAAC;AAM9B,UAAU,aAAc,SAAQ,OAAO,CAAC,aAAa,CAAC;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAgCD,eAAO,MAAM,YAAY,mBACP,aAAa,gBACf,YAAY,KACzB,aAAa,GAAG,GAoElB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { EnvType } from "./setup-config.types";
2
+ export declare const createNamesForPackage: (environmentName: EnvType, appName: string) => {
3
+ name: string;
4
+ shortName: string;
5
+ scheme: string;
6
+ identifier: string;
7
+ slug: string;
8
+ };
9
+ //# sourceMappingURL=create-names-for-package.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-names-for-package.d.ts","sourceRoot":"","sources":["../src/create-names-for-package.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAElE,eAAO,MAAM,qBAAqB,oBACf,OAAO,WACf,MAAM;UAET,MAAM;eACD,MAAM;YACT,MAAM;gBACF,MAAM;UACZ,MAAM;CAmCb,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function transformAssetsPath(value: string): string | undefined;
2
+ export declare const formatAssetsPath: (value: string) => string;
3
+ //# sourceMappingURL=format-assets-path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-assets-path.d.ts","sourceRoot":"","sources":["../src/format-assets-path.ts"],"names":[],"mappings":"AAMA,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAyCrE;AAED,eAAO,MAAM,gBAAgB,UAAW,MAAM,KAAG,MAGhD,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ColorsFromAssets, ImagesForEnvironment } from ".";
2
+ export declare const getSplash: (images: ImagesForEnvironment, colors: ColorsFromAssets) => {
3
+ image: string;
4
+ backgroundColor: string;
5
+ resizeMode?: "cover" | "contain";
6
+ };
7
+ export declare const getAppIcon: (images: ImagesForEnvironment) => string;
8
+ export declare const getAppBackgroundColor: (colors: ColorsFromAssets) => string;
9
+ //# sourceMappingURL=get-app-images.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-app-images.d.ts","sourceRoot":"","sources":["../src/get-app-images.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE3D,eAAO,MAAM,SAAS,WACZ,oBAAoB,UACpB,gBAAgB,KACvB;IACD,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAYlC,CAAC;AAEF,eAAO,MAAM,UAAU,WAAY,oBAAoB,KAAG,MAEzD,CAAC;AAEF,eAAO,MAAM,qBAAqB,WAAY,gBAAgB,KAAG,MAEhE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ColorsFromAssets, EnvType } from "./setup-config.types.js";
2
+ export declare const getColorsForEnvironment: (env: EnvType, pathForColors: string) => ColorsFromAssets;
3
+ //# sourceMappingURL=get-colors-for-environment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-colors-for-environment.d.ts","sourceRoot":"","sources":["../src/get-colors-for-environment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIzE,eAAO,MAAM,uBAAuB,QAC7B,OAAO,iBACG,MAAM,KACpB,gBA2BF,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { EnvType } from "./setup-config.types.js";
2
+ export interface ImagesForEnvironment {
3
+ splashImage: string;
4
+ iconImage: string;
5
+ adaptiveIconImage: string;
6
+ faviconImage: string;
7
+ }
8
+ interface NameForImageType {
9
+ splashFileName: string;
10
+ iconFileName: string;
11
+ adaptiveFileName: string;
12
+ faviconFileName: string;
13
+ }
14
+ export declare const getImagesForEnvironment: (env: EnvType, pathToCheck?: string, namesForImages?: NameForImageType) => ImagesForEnvironment;
15
+ export {};
16
+ //# sourceMappingURL=get-images-for-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-images-for-config.d.ts","sourceRoot":"","sources":["../src/get-images-for-config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAqB,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAE1E,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,gBAAgB;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;CACzB;AASD,eAAO,MAAM,uBAAuB,QAC7B,OAAO,gBACE,MAAM,mBACH,gBAAgB,KAChC,oBAwCF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { EnvType, EnvironmentConfig } from "./setup-config.types.js";
2
+ export declare const getVersions: (env: EnvType, versionsPath: string) => EnvironmentConfig;
3
+ //# sourceMappingURL=get-versions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-versions.d.ts","sourceRoot":"","sources":["../src/get-versions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;AAIjC,eAAO,MAAM,WAAW,QACjB,OAAO,gBACE,MAAM,KACnB,iBAgCF,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { createBundle } from "./create-bundle";
2
+ export { createBundle } from "./create-bundle";
3
+ export { createNamesForPackage } from "./create-names-for-package";
4
+ export { getColorsForEnvironment } from "./get-colors-for-environment";
5
+ export { getImagesForEnvironment } from "./get-images-for-config";
6
+ export type { ImagesForEnvironment } from "./get-images-for-config";
7
+ export { getVersions } from "./get-versions";
8
+ export { AppConfigFromEnv, ColorsFromAssets, EnvEumFromPackage, ColorMode, BundleConfig, EnvType, ColorAppConfig, PieceOfConfig, AndroidVersion, SplashConfig, EnvironmentConfig, IOSVersion, } from "./setup-config.types";
9
+ export default createBundle;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,YAAY,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,OAAO,EACP,cAAc,EACd,aAAa,EACb,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,UAAU,GACX,MAAM,sBAAsB,CAAC;AAE9B,eAAe,YAAY,CAAC"}
@@ -0,0 +1,146 @@
1
+ export type ColorsFromAssets = ColorAppConfig & ColorConfig;
2
+ export interface BundleConfig {
3
+ colorsPath: string;
4
+ envVariables: AppConfigFromEnv;
5
+ imagesPath: string;
6
+ versionsPath: string;
7
+ projectId: string;
8
+ }
9
+ export interface AppConfigFromEnv {
10
+ environment: EnvType;
11
+ baseURL: {
12
+ native: string;
13
+ web: string;
14
+ };
15
+ branding: {
16
+ logoURL: string;
17
+ };
18
+ verbiage: {
19
+ displayName: string;
20
+ primaryTagline: string;
21
+ secondaryTagline: string;
22
+ };
23
+ authentication: {
24
+ login: {
25
+ email: string;
26
+ password: string;
27
+ phoneNumber: string;
28
+ firstName: string;
29
+ lastName: string;
30
+ };
31
+ register: {
32
+ email: string;
33
+ password: string;
34
+ phoneNumber: string;
35
+ firstName: string;
36
+ lastName: string;
37
+ };
38
+ };
39
+ apiKeys: {
40
+ [key: string]: string;
41
+ };
42
+ }
43
+ export interface VersionsJSON {
44
+ production: EnvironmentConfig;
45
+ staging: EnvironmentConfig;
46
+ development: EnvironmentConfig;
47
+ }
48
+ export interface AndroidVersion {
49
+ versionCode: number;
50
+ }
51
+ export interface IOSVersion {
52
+ buildNumber: string;
53
+ }
54
+ export interface AppVersion {
55
+ version: string;
56
+ }
57
+ export interface EnvironmentConfig {
58
+ ios: IOSVersion;
59
+ android: AndroidVersion;
60
+ app: AppVersion;
61
+ }
62
+ export declare enum EnvEumFromPackage {
63
+ production = "production",
64
+ staging = "staging",
65
+ development = "development",
66
+ local = "local"
67
+ }
68
+ export type EnvType = "production" | "staging" | "development" | "local" | EnvEumFromPackage;
69
+ export interface ColorMode {
70
+ light: string;
71
+ dark?: string;
72
+ }
73
+ export interface SplashConfig {
74
+ backgroundColor: ColorMode;
75
+ }
76
+ export interface AdaptiveIconConfig {
77
+ backgroundColor: ColorMode;
78
+ }
79
+ export interface StatusBarConfig {
80
+ backgroundColor: ColorMode;
81
+ }
82
+ export interface NavigationBarConfig {
83
+ backgroundColor: ColorMode;
84
+ }
85
+ export interface ColorConfig {
86
+ statusBar: StatusBarConfig;
87
+ navigationBar: NavigationBarConfig;
88
+ primaryColor: ColorMode;
89
+ }
90
+ export interface ColorAppConfig {
91
+ splash: SplashConfig;
92
+ adaptiveIcon: AdaptiveIconConfig;
93
+ iconColor: ColorMode;
94
+ themeColor: string;
95
+ }
96
+ export interface ExtraConfig {
97
+ eas: {
98
+ projectId: string;
99
+ };
100
+ env: AppConfigFromEnv;
101
+ }
102
+ export interface PieceOfConfig extends Partial<any> {
103
+ name: string;
104
+ slug: string;
105
+ version: string;
106
+ icon: string;
107
+ scheme: string;
108
+ android: {
109
+ package: string;
110
+ versionCode: number;
111
+ backgroundColor: string;
112
+ splash: {
113
+ image: string;
114
+ backgroundColor: string;
115
+ resizeMode?: "cover" | "contain";
116
+ };
117
+ adaptiveIcon: {
118
+ foregroundImage: string;
119
+ };
120
+ icon: string;
121
+ };
122
+ web: {
123
+ backgroundColor: string;
124
+ splash: {
125
+ image: string;
126
+ backgroundColor: string;
127
+ resizeMode?: "cover" | "contain";
128
+ };
129
+ shortName: string;
130
+ favicon: string;
131
+ themeColor: string;
132
+ };
133
+ ios: {
134
+ bundleIdentifier: string;
135
+ backgroundColor: string;
136
+ buildNumber: string;
137
+ splash: {
138
+ image: string;
139
+ resizeMode?: "cover" | "contain";
140
+ backgroundColor: string;
141
+ };
142
+ icon: string;
143
+ };
144
+ extra?: ExtraConfig;
145
+ }
146
+ //# sourceMappingURL=setup-config.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-config.types.d.ts","sourceRoot":"","sources":["../src/setup-config.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG,WAAW,CAAC;AAC5D,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,gBAAgB,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,QAAQ,EAAE;QACR,WAAW,EAAE,MAAM,CAAC;QACpB,cAAc,EAAE,MAAM,CAAC;QACvB,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IAEF,cAAc,EAAE;QACd,KAAK,EAAE;YACL,KAAK,EAAE,MAAM,CAAC;YACd,QAAQ,EAAE,MAAM,CAAC;YACjB,WAAW,EAAE,MAAM,CAAC;YACpB,SAAS,EAAE,MAAM,CAAC;YAClB,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;QACF,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AE;QACH,gBAAgB,EAAE,MAAM,CAAC;QACzB,eAAe,EAAE,MAAM,CAAC;QACxB,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE;YACN,KAAK,EAAE,MAAM,CAAC;YACd,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;YACjC,eAAe,EAAE,MAAM,CAAC;SACzB,CAAC;QACF,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB"}
@@ -0,0 +1,18 @@
1
+ import { AppConfigFromEnv, BundleConfig, PieceOfConfig } from ".";
2
+ export declare const writeConfigToJsonFile: (result: PieceOfConfig, environment: AppConfigFromEnv["environment"]) => void;
3
+ export declare const generateBundleConfigForEnvironment: (environment: AppConfigFromEnv["environment"]) => BundleConfig;
4
+ export declare const generateAppConfigForEnvironment: (appName: string, environment: AppConfigFromEnv["environment"]) => PieceOfConfig;
5
+ export declare const generateFaultyAppConfig: (name: string, slug: string) => PieceOfConfig;
6
+ export declare const productionConfig: BundleConfig;
7
+ export declare const stagingConfig: BundleConfig;
8
+ export declare const localConfig: BundleConfig;
9
+ export declare const developmentConfig: BundleConfig;
10
+ export declare const expoDevConfig: PieceOfConfig;
11
+ export declare const expoProductionConfig: PieceOfConfig;
12
+ export declare const expoStagingConfig: PieceOfConfig;
13
+ export declare const faultyConfig: PieceOfConfig;
14
+ export declare const productionResult: any;
15
+ export declare const stagingResult: any;
16
+ export declare const localResult: any;
17
+ export declare const developmentResult: any;
18
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AACA,OAAqB,EACnB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EAEd,MAAM,GAAG,CAAC;AAKX,eAAO,MAAM,qBAAqB,WACxB,aAAa,eACR,gBAAgB,CAAC,aAAa,CAAC,SAG7C,CAAC;AAGF,eAAO,MAAM,kCAAkC,gBAChC,gBAAgB,CAAC,aAAa,CAAC,KAC3C,YA6CF,CAAC;AAGF,eAAO,MAAM,+BAA+B,YACjC,MAAM,eACF,gBAAgB,CAAC,aAAa,CAAC,KAC3C,aAmFF,CAAC;AAGF,eAAO,MAAM,uBAAuB,SAC5B,MAAM,QACN,MAAM,KACX,aA4CF,CAAC;AAGF,eAAO,MAAM,gBAAgB,cACqB,CAAC;AACnD,eAAO,MAAM,aAAa,cAAgD,CAAC;AAC3E,eAAO,MAAM,WAAW,cAA8C,CAAC;AACvE,eAAO,MAAM,iBAAiB,cACqB,CAAC;AAEpD,eAAO,MAAM,aAAa,eAGzB,CAAC;AACF,eAAO,MAAM,oBAAoB,eAGhC,CAAC;AACF,eAAO,MAAM,iBAAiB,eAG7B,CAAC;AAEF,eAAO,MAAM,YAAY,eAA6C,CAAC;AAIvE,eAAO,MAAM,gBAAgB,KAA+C,CAAC;AAC7E,eAAO,MAAM,aAAa,KAA4C,CAAC;AACvE,eAAO,MAAM,WAAW,KAA0C,CAAC;AACnE,eAAO,MAAM,iBAAiB,KAAgD,CAAC"}
package/package.json CHANGED
@@ -1,26 +1,31 @@
1
1
  {
2
2
  "name": "@devlander/expo-app-config",
3
- "version": "0.0.74",
3
+ "version": "0.0.80",
4
4
  "description": "A package to help with deployment of expo applications for different environments",
5
5
  "main": "dist/cjs/index.js",
6
- "module": "dist/esm/index.js",
6
+ "browser": "dist/umd/index.js",
7
7
  "types": "typings/index.d.ts",
8
+ "module": "dist/esm/index.js",
8
9
  "type": "commonjs",
9
10
  "scripts": {
10
11
  "prebuild": "npm cache clean --force",
11
- "increment-version": "yarn version --patch",
12
+ "increment-version": "yarn version patch",
12
13
  "build:esm": "tsc",
13
14
  "test": "jest",
14
- "typecheck": "tsc --project tsconfig.json --noEmit --emitDeclarationOnly false && yarn run lint && yarn run test",
15
- "format": "prettier --write 'src/**/*.{ts,tsx}' '__tests__/**/*.test.ts'",
16
- "lint": "yarn format && eslint --fix './src/**/*.{js,jsx,ts,tsx}' && eslint --fix './__tests__/**/*.{js,jsx,ts,tsx}'",
17
- "build": "npx rimraf ./dist && npx rimraf ./typings && yarn build:esm && yarn build:umd",
18
- "build:umd": "yarn run increment-version && rollup -c ",
15
+ "format": "prettier --write 'src/**/*.ts'",
16
+ "lint": "eslint ./src --ext .ts --fix && yarn run format && yarn run typecheck ",
17
+ "typecheck": "tsc --project tsconfig.json --noEmit --emitDeclarationOnly false",
18
+ "build": "npx rimraf ./dist && npx rimraf ./typings && yarn build:esm && yarn build:umd",
19
+ "build:umd": "rollup -c ",
20
+ "timeout": "delay 5",
21
+ "push-main": "git add -A && yarn run timeout && git commit -m 'updated build' && yarn run timeout && git push origin main",
22
+ "start-publish": "yarn run lint && yarn run build && yarn run increment-version && npm publish",
19
23
  "prepare": "yarn run build"
20
24
  },
21
25
  "keywords": [
22
26
  "devlander"
23
27
  ],
28
+ "packageManager": "yarn@3.6.3",
24
29
  "author": "Landon Johnson",
25
30
  "license": "ISC",
26
31
  "bugs": {
@@ -58,6 +63,7 @@
58
63
  "typescript": "^5.3.3"
59
64
  },
60
65
  "dependencies": {
66
+ "@devlander/utils": "^0.0.8",
61
67
  "@testing-library/jest-native": "^5.4.3"
62
68
  }
63
69
  }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=apply-relative-paths-to-config.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply-relative-paths-to-config.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/apply-relative-paths-to-config.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=format-assets-path.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-assets-path.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/format-assets-path.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tools.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/tools.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Recursively applies relative path conversion to all asset paths in a configuration object.
3
+ * This function iterates through each property of the object. If the property is a string
4
+ * containing '/assets', it converts it using `convertAbsolutePathToRelative`. If the property
5
+ * is an object or an array, it recursively applies the same logic to its properties or elements.
6
+ * @param {object} config - The configuration object to be processed.
7
+ * @param {string} [basePath=''] - The base path for recursion, used for nested objects.
8
+ */
9
+ export declare function applyRelativePathsToConfig(config: any, basePath?: string): void;
10
+ //# sourceMappingURL=apply-relative-paths-to-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply-relative-paths-to-config.d.ts","sourceRoot":"","sources":["../src/apply-relative-paths-to-config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,GAAG,EAAE,QAAQ,SAAK,QAoBpE"}
@@ -1,3 +1,8 @@
1
- import type { BundleConfig } from "./setup-config.types";
2
- export declare const createBundle: (existingConfig: any, bundleConfig: BundleConfig) => any;
1
+ import type { BundleConfig, PieceOfConfig } from "./setup-config.types";
2
+ interface PartialConfig extends Partial<PieceOfConfig> {
3
+ name: string;
4
+ slug: string;
5
+ }
6
+ export declare const createBundle: (existingConfig: PartialConfig, bundleConfig: BundleConfig) => PieceOfConfig | any;
7
+ export {};
3
8
  //# sourceMappingURL=create-bundle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-bundle.d.ts","sourceRoot":"","sources":["../src/create-bundle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EAGb,MAAM,sBAAsB,CAAC;AAQ9B,eAAO,MAAM,YAAY,mBACP,GAAG,gBACL,YAAY,QA4I3B,CAAC"}
1
+ {"version":3,"file":"create-bundle.d.ts","sourceRoot":"","sources":["../src/create-bundle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EAEZ,aAAa,EACd,MAAM,sBAAsB,CAAC;AAM9B,UAAU,aAAc,SAAQ,OAAO,CAAC,aAAa,CAAC;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAgCD,eAAO,MAAM,YAAY,mBACP,aAAa,gBACf,YAAY,KACzB,aAAa,GAAG,GAoElB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function transformAssetsPath(value: string): string | undefined;
2
+ export declare const formatAssetsPath: (value: string) => string;
3
+ //# sourceMappingURL=format-assets-path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-assets-path.d.ts","sourceRoot":"","sources":["../src/format-assets-path.ts"],"names":[],"mappings":"AAMA,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAyCrE;AAED,eAAO,MAAM,gBAAgB,UAAW,MAAM,KAAG,MAGhD,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ColorsFromAssets, ImagesForEnvironment } from ".";
2
+ export declare const getSplash: (images: ImagesForEnvironment, colors: ColorsFromAssets) => {
3
+ image: string;
4
+ backgroundColor: string;
5
+ resizeMode?: "cover" | "contain";
6
+ };
7
+ export declare const getAppIcon: (images: ImagesForEnvironment) => string;
8
+ export declare const getAppBackgroundColor: (colors: ColorsFromAssets) => string;
9
+ //# sourceMappingURL=get-app-images.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-app-images.d.ts","sourceRoot":"","sources":["../src/get-app-images.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAE3D,eAAO,MAAM,SAAS,WACZ,oBAAoB,UACpB,gBAAgB,KACvB;IACD,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAYlC,CAAC;AAEF,eAAO,MAAM,UAAU,WAAY,oBAAoB,KAAG,MAEzD,CAAC;AAEF,eAAO,MAAM,qBAAqB,WAAY,gBAAgB,KAAG,MAEhE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-colors-for-environment.d.ts","sourceRoot":"","sources":["../src/get-colors-for-environment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIzE,eAAO,MAAM,uBAAuB,QAC7B,OAAO,iBACG,MAAM,KACpB,gBAuBF,CAAC"}
1
+ {"version":3,"file":"get-colors-for-environment.d.ts","sourceRoot":"","sources":["../src/get-colors-for-environment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIzE,eAAO,MAAM,uBAAuB,QAC7B,OAAO,iBACG,MAAM,KACpB,gBA2BF,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { EnvEumFromPackage, EnvironmentConfig } from "./setup-config.types.js";
2
- export declare const getVersions: (env: EnvEumFromPackage, versionsPath: string) => EnvironmentConfig;
1
+ import type { EnvType, EnvironmentConfig } from "./setup-config.types.js";
2
+ export declare const getVersions: (env: EnvType, versionsPath: string) => EnvironmentConfig;
3
3
  //# sourceMappingURL=get-versions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-versions.d.ts","sourceRoot":"","sources":["../src/get-versions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;AAIjC,eAAO,MAAM,WAAW,QACjB,iBAAiB,gBACR,MAAM,KACnB,iBA6BF,CAAC"}
1
+ {"version":3,"file":"get-versions.d.ts","sourceRoot":"","sources":["../src/get-versions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;AAIjC,eAAO,MAAM,WAAW,QACjB,OAAO,gBACE,MAAM,KACnB,iBAgCF,CAAC"}