bundo-appgen 0.0.10 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/lib/bin/bin.mjs +550 -191
  2. package/lib/module/{chunk-dvyy3g4j.js → chunk-mxb4tw3v.js} +0 -1
  3. package/lib/module/{chunk-bhc5nymd.js → chunk-z47xn1nx.js} +1 -2
  4. package/lib/module/config/apple/index.js +1 -1
  5. package/lib/module/config/index.js +2 -2
  6. package/lib/module/index.js +2 -2
  7. package/lib/typescript/config/apple/asset-catalogs-namespaced.d.ts +5 -1
  8. package/lib/typescript/config/apple/asset-catalogs-namespaced.d.ts.map +1 -1
  9. package/lib/typescript/config/apple/data.d.ts +22 -3
  10. package/lib/typescript/config/apple/data.d.ts.map +1 -1
  11. package/lib/typescript/config/apple/index.d.mts +3 -2
  12. package/lib/typescript/config/apple/index.d.mts.map +1 -1
  13. package/lib/typescript/config/apple/plist-value.d.ts +6 -0
  14. package/lib/typescript/config/apple/plist-value.d.ts.map +1 -0
  15. package/lib/typescript/config/apple/plist.d.ts +4 -0
  16. package/lib/typescript/config/apple/plist.d.ts.map +1 -0
  17. package/lib/typescript/config/apple/podfile/index.d.ts +5 -0
  18. package/lib/typescript/config/apple/podfile/index.d.ts.map +1 -0
  19. package/lib/typescript/config/apple/podfile/pod-dependency-from-cocoapods.d.ts +12 -0
  20. package/lib/typescript/config/apple/podfile/pod-dependency-from-cocoapods.d.ts.map +1 -0
  21. package/lib/typescript/config/apple/podfile/pod-dependency-from-git.d.ts +16 -0
  22. package/lib/typescript/config/apple/podfile/pod-dependency-from-git.d.ts.map +1 -0
  23. package/lib/typescript/config/apple/podfile/pod-dependency-from-local.d.ts +12 -0
  24. package/lib/typescript/config/apple/podfile/pod-dependency-from-local.d.ts.map +1 -0
  25. package/lib/typescript/config/apple/podfile/pod-dependency.d.ts +5 -0
  26. package/lib/typescript/config/apple/podfile/pod-dependency.d.ts.map +1 -0
  27. package/lib/typescript/plugin/apple/context.d.ts +1 -1
  28. package/lib/typescript/plugin/apple/context.d.ts.map +1 -1
  29. package/lib/typescript/plugin/apple/index.d.ts +0 -3
  30. package/lib/typescript/plugin/apple/index.d.ts.map +1 -1
  31. package/package.json +1 -1
  32. package/src/_bin/_main/_check-config-validity.mts +10 -2
  33. package/src/_bin/_main/_helpers/config/cache-paths/asset-catalogs-tracker-file.mts +9 -0
  34. package/src/_bin/_main/_helpers/config/cache-paths/dir-cache.mts +19 -0
  35. package/src/_bin/_main/_helpers/config/cache-paths/index.mts +3 -0
  36. package/src/_bin/_main/_helpers/config/cache-paths/string-catalogs-tracker-file.mts +9 -0
  37. package/src/_bin/_main/_helpers/config/get-name.mts +1 -3
  38. package/src/_bin/_main/_helpers/config/get-project-name.mts +10 -5
  39. package/src/_bin/_main/_helpers/config/index.mts +1 -0
  40. package/src/_bin/_main/_init-template/_init-apple/_create-asset-catalogs/_get-xcassets-path.mts +29 -0
  41. package/src/_bin/_main/_init-template/_init-apple/_create-asset-catalogs/_init-appiconsets.mts +25 -12
  42. package/src/_bin/_main/_init-template/_init-apple/_create-asset-catalogs/_init-imagesets.mts +32 -13
  43. package/src/_bin/_main/_init-template/_init-apple/_create-asset-catalogs/create-asset-catalogs.mts +214 -9
  44. package/src/_bin/_main/_init-template/_init-apple/_create-string-catalogs/create-string-catalog.mts +159 -81
  45. package/src/_bin/_main/_init-template/_init-apple/_mod-files/_app-delegate-swift.mts +3 -6
  46. package/src/_bin/_main/_init-template/_init-apple/_mod-files/_podfile/_pod-dependencies.mts +78 -0
  47. package/src/_bin/_main/_init-template/_init-apple/_mod-files/_podfile/index.mts +1 -0
  48. package/src/_bin/_main/_init-template/_init-apple/_mod-files/{_podfile.mts → _podfile/podfile.mts} +16 -4
  49. package/src/_bin/_main/_init-template/_init-apple/_mod-files/_privacy-manifest.mts +119 -0
  50. package/src/_bin/_main/_init-template/_init-apple/_mod-files/mod-files.mts +8 -2
  51. package/src/_bin/_main/_init-template/_init-apple/init-apple.mts +13 -8
  52. package/src/_bin/_main/_init-template/init-template.mts +2 -0
  53. package/src/_bin/_main/_xcodegen/_create-project-spec/_init-resources.mts +21 -9
  54. package/src/_bin/_main/_xcodegen/_create-project-spec/create-project-spec.mts +51 -32
  55. package/src/_bin/_main/_xcodegen/_mod-known-regions/mod-known-regions.mts +2 -2
  56. package/src/_bin/_main/_xcodegen/xcodegen.mts +1 -1
  57. package/src/_bin/_main/main.mts +1 -1
  58. package/src/_bin/plugin-sandbox-runner/plugin-runner-context-result.ts +0 -27
  59. package/src/config/apple/asset-catalogs-namespaced.ts +1 -1
  60. package/src/config/apple/data.ts +27 -4
  61. package/src/config/apple/index.mts +3 -2
  62. package/src/config/apple/{info-plist-value.ts → plist-value.ts} +5 -4
  63. package/src/config/apple/plist.ts +6 -0
  64. package/src/config/apple/podfile/index.ts +4 -0
  65. package/src/config/apple/podfile/pod-dependency-from-cocoapods.ts +15 -0
  66. package/src/config/apple/podfile/pod-dependency-from-git.ts +23 -0
  67. package/src/config/apple/podfile/pod-dependency-from-local.ts +15 -0
  68. package/src/config/apple/podfile/pod-dependency.ts +16 -0
  69. package/src/plugin/apple/context.ts +1 -35
  70. package/src/plugin/apple/index.ts +0 -3
  71. package/template/macos/Podfile +4 -0
  72. package/template/macos/PrivacyInfo.xcprivacy +5 -0
  73. package/template/macos/pod_dependencies.rb +2 -0
  74. package/lib/typescript/config/apple/info-plist-value.d.ts +0 -8
  75. package/lib/typescript/config/apple/info-plist-value.d.ts.map +0 -1
  76. package/lib/typescript/config/apple/info-plist.d.ts +0 -4
  77. package/lib/typescript/config/apple/info-plist.d.ts.map +0 -1
  78. package/lib/typescript/plugin/apple/pod-spec-source-from-cocoapods.d.ts +0 -5
  79. package/lib/typescript/plugin/apple/pod-spec-source-from-cocoapods.d.ts.map +0 -1
  80. package/lib/typescript/plugin/apple/pod-spec-source-from-git.d.ts +0 -11
  81. package/lib/typescript/plugin/apple/pod-spec-source-from-git.d.ts.map +0 -1
  82. package/lib/typescript/plugin/apple/pod-spec-source-from-local.d.ts +0 -7
  83. package/lib/typescript/plugin/apple/pod-spec-source-from-local.d.ts.map +0 -1
  84. package/src/config/apple/info-plist.ts +0 -6
  85. package/src/plugin/apple/pod-spec-source-from-cocoapods.ts +0 -9
  86. package/src/plugin/apple/pod-spec-source-from-git.ts +0 -13
  87. package/src/plugin/apple/pod-spec-source-from-local.ts +0 -6
@@ -0,0 +1,16 @@
1
+ import type {
2
+ PodDependencyFromCocoapods,
3
+ } from "./pod-dependency-from-cocoapods"
4
+
5
+ import type {
6
+ PodDependencyFromGit,
7
+ } from "./pod-dependency-from-git"
8
+
9
+ import type {
10
+ PodDependencyFromLocal,
11
+ } from "./pod-dependency-from-local"
12
+
13
+ export type PodDependency =
14
+ | PodDependencyFromCocoapods
15
+ | PodDependencyFromGit
16
+ | PodDependencyFromLocal
@@ -4,42 +4,8 @@ import type {
4
4
  Files,
5
5
  } from "./files"
6
6
 
7
- // import type {
8
- // PodSpecSourceFromCocoapods,
9
- // } from "./pod-spec-source-from-cocoapods"
10
-
11
- // import type {
12
- // PodSpecSourceFromGit,
13
- // } from "./pod-spec-source-from-git"
14
-
15
- // import type {
16
- // PodSpecSourceFromLocal,
17
- // } from "./pod-spec-source-from-local"
18
-
19
7
  export interface Context {
20
8
 
21
- // /**
22
- // * @deprecated
23
- // * It will be replaced by Swift Package Manager in the future.
24
- // * We need to wait until React Native and React Native macOS support Swift Package Manager completely.
25
- // *
26
- // * @see https://guides.cocoapods.org/using/the-podfile.html
27
- // */
28
- // readonly Podfile: {
29
- // /**
30
- // * Add a Pod for client application.
31
- // *
32
- // * The Pod array is initially an empty array, but incrementally added and overwritten by other plugins.
33
- // */
34
- // readonly pod: {
35
- // name: string,
36
- // source:
37
- // | PodSpecSourceFromCocoapods
38
- // | PodSpecSourceFromGit
39
- // | PodSpecSourceFromLocal
40
- // }[],
41
- // },
42
-
43
9
  /**
44
10
  * Read and modify the templated files in raw source text.
45
11
  *
@@ -63,6 +29,6 @@ export interface Context {
63
29
  *
64
30
  * The Info Plist result from plugin cannot overwrite an Info Plist item of client app with the same key.
65
31
  */
66
- readonly infoPlist: Config.Apple.InfoPlist,
32
+ readonly infoPlist: Config.Apple.Plist,
67
33
 
68
34
  }
@@ -1,5 +1,2 @@
1
1
  export type * from "./context"
2
2
  export type * from "./files"
3
- export type * from "./pod-spec-source-from-cocoapods"
4
- export type * from "./pod-spec-source-from-git"
5
- export type * from "./pod-spec-source-from-local"
@@ -5,6 +5,8 @@ require Pod::Executable.execute_command('node', ['-p',
5
5
  {paths: [process.argv[1]]},
6
6
  )', __dir__]).strip
7
7
 
8
+ require_relative 'pod_dependencies'
9
+
8
10
  require 'pathname'
9
11
 
10
12
  # Find the real "react-native-macos" path.
@@ -37,6 +39,8 @@ target 'HelloWorld' do
37
39
  :app_path => "#{Pod::Config.instance.installation_root}/.."
38
40
  )
39
41
 
42
+ pod_dependencies
43
+
40
44
  post_install do |installer|
41
45
  react_native_post_install(
42
46
  installer,
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict/>
5
+ </plist>
@@ -0,0 +1,2 @@
1
+ def pod_dependencies
2
+ end
@@ -1,8 +0,0 @@
1
- export type InfoPlistValue = boolean | string | string[] | DictionaryValue;
2
- type DictionaryValue = {
3
- [Key in string]: boolean | string | string[] | DictionaryValue | {
4
- [Key2 in string]: DictionaryValue;
5
- }[];
6
- };
7
- export {};
8
- //# sourceMappingURL=info-plist-value.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"info-plist-value.d.ts","sourceRoot":"","sources":["../../../../src/config/apple/info-plist-value.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACvB,OAAO,GACP,MAAM,GACN,MAAM,EAAE,GACR,eAAe,CAAA;AAElB,KAAK,eAAe,GAAG;KACrB,GAAG,IAAI,MAAM,GACX,OAAO,GACP,MAAM,GACN,MAAM,EAAE,GACR,eAAe,GACf;SACA,IAAI,IAAI,MAAM,GAAG,eAAe;KACjC,EAAE;CACJ,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { InfoPlistValue } from "./info-plist-value";
2
- export interface InfoPlist extends Record<string, InfoPlistValue> {
3
- }
4
- //# sourceMappingURL=info-plist.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"info-plist.d.ts","sourceRoot":"","sources":["../../../../src/config/apple/info-plist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,cAAc,EACd,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,SAAU,SAAQ,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC;CAChE"}
@@ -1,5 +0,0 @@
1
- export interface PodSpecSourceFromCocoapods {
2
- operator?: ">" | ">=" | "<" | "<=" | "~>";
3
- value: string;
4
- }
5
- //# sourceMappingURL=pod-spec-source-from-cocoapods.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pod-spec-source-from-cocoapods.d.ts","sourceRoot":"","sources":["../../../../src/plugin/apple/pod-spec-source-from-cocoapods.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IAC1C,QAAQ,CAAC,EACN,GAAG,GACH,IAAI,GACJ,GAAG,GACH,IAAI,GACJ,IAAI,CAAC;IACR,KAAK,EAAE,MAAM,CAAC;CACd"}
@@ -1,11 +0,0 @@
1
- export interface PodSpecSourceFromGit {
2
- gitUrl: string;
3
- revision?: {
4
- branch: string;
5
- } | {
6
- tag: string;
7
- } | {
8
- commit: string;
9
- };
10
- }
11
- //# sourceMappingURL=pod-spec-source-from-git.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pod-spec-source-from-git.d.ts","sourceRoot":"","sources":["../../../../src/plugin/apple/pod-spec-source-from-git.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EACN;QACD,MAAM,EAAE,MAAM,CAAC;KACf,GACC;QACD,GAAG,EAAE,MAAM,CAAC;KACZ,GACC;QACD,MAAM,EAAE,MAAM,CAAC;KACf,CAAC;CACH"}
@@ -1,7 +0,0 @@
1
- export interface PodSpecSourceFromLocal {
2
- /**
3
- * Using the files from a local folder to the machine.
4
- */
5
- path: string;
6
- }
7
- //# sourceMappingURL=pod-spec-source-from-local.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pod-spec-source-from-local.d.ts","sourceRoot":"","sources":["../../../../src/plugin/apple/pod-spec-source-from-local.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACb"}
@@ -1,6 +0,0 @@
1
- import type {
2
- InfoPlistValue,
3
- } from "./info-plist-value"
4
-
5
- export interface InfoPlist extends Record<string, InfoPlistValue> {
6
- }
@@ -1,9 +0,0 @@
1
- export interface PodSpecSourceFromCocoapods {
2
- operator?:
3
- | ">"
4
- | ">="
5
- | "<"
6
- | "<="
7
- | "~>",
8
- value: string,
9
- }
@@ -1,13 +0,0 @@
1
- export interface PodSpecSourceFromGit {
2
- gitUrl: string,
3
- revision?:
4
- | {
5
- branch: string,
6
- }
7
- | {
8
- tag: string,
9
- }
10
- | {
11
- commit: string,
12
- },
13
- }
@@ -1,6 +0,0 @@
1
- export interface PodSpecSourceFromLocal {
2
- /**
3
- * Using the files from a local folder to the machine.
4
- */
5
- path: string,
6
- }