bundo-appgen 0.0.10 → 0.0.11
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.
- package/lib/bin/bin.mjs +546 -191
- package/lib/module/{chunk-dvyy3g4j.js → chunk-mxb4tw3v.js} +0 -1
- package/lib/module/{chunk-bhc5nymd.js → chunk-z47xn1nx.js} +1 -2
- package/lib/module/config/apple/index.js +1 -1
- package/lib/module/config/index.js +2 -2
- package/lib/module/index.js +2 -2
- package/lib/typescript/config/apple/asset-catalogs-namespaced.d.ts +5 -1
- package/lib/typescript/config/apple/asset-catalogs-namespaced.d.ts.map +1 -1
- package/lib/typescript/config/apple/data.d.ts +22 -3
- package/lib/typescript/config/apple/data.d.ts.map +1 -1
- package/lib/typescript/config/apple/index.d.mts +3 -2
- package/lib/typescript/config/apple/index.d.mts.map +1 -1
- package/lib/typescript/config/apple/plist-value.d.ts +6 -0
- package/lib/typescript/config/apple/plist-value.d.ts.map +1 -0
- package/lib/typescript/config/apple/plist.d.ts +4 -0
- package/lib/typescript/config/apple/plist.d.ts.map +1 -0
- package/lib/typescript/config/apple/podfile/index.d.ts +5 -0
- package/lib/typescript/config/apple/podfile/index.d.ts.map +1 -0
- package/lib/typescript/config/apple/podfile/pod-dependency-from-cocoapods.d.ts +12 -0
- package/lib/typescript/config/apple/podfile/pod-dependency-from-cocoapods.d.ts.map +1 -0
- package/lib/typescript/config/apple/podfile/pod-dependency-from-git.d.ts +16 -0
- package/lib/typescript/config/apple/podfile/pod-dependency-from-git.d.ts.map +1 -0
- package/lib/typescript/config/apple/podfile/pod-dependency-from-local.d.ts +12 -0
- package/lib/typescript/config/apple/podfile/pod-dependency-from-local.d.ts.map +1 -0
- package/lib/typescript/config/apple/podfile/pod-dependency.d.ts +5 -0
- package/lib/typescript/config/apple/podfile/pod-dependency.d.ts.map +1 -0
- package/lib/typescript/plugin/apple/context.d.ts +1 -1
- package/lib/typescript/plugin/apple/context.d.ts.map +1 -1
- package/lib/typescript/plugin/apple/index.d.ts +0 -3
- package/lib/typescript/plugin/apple/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/_bin/_main/_check-config-validity.mts +10 -2
- package/src/_bin/_main/_helpers/config/cache-paths/asset-catalogs-tracker-file.mts +9 -0
- package/src/_bin/_main/_helpers/config/cache-paths/dir-cache.mts +19 -0
- package/src/_bin/_main/_helpers/config/cache-paths/index.mts +3 -0
- package/src/_bin/_main/_helpers/config/cache-paths/string-catalogs-tracker-file.mts +9 -0
- package/src/_bin/_main/_helpers/config/get-name.mts +1 -3
- package/src/_bin/_main/_helpers/config/get-project-name.mts +10 -5
- package/src/_bin/_main/_helpers/config/index.mts +1 -0
- package/src/_bin/_main/_init-template/_init-apple/_create-asset-catalogs/_get-xcassets-path.mts +29 -0
- package/src/_bin/_main/_init-template/_init-apple/_create-asset-catalogs/_init-appiconsets.mts +25 -12
- package/src/_bin/_main/_init-template/_init-apple/_create-asset-catalogs/_init-imagesets.mts +32 -13
- package/src/_bin/_main/_init-template/_init-apple/_create-asset-catalogs/create-asset-catalogs.mts +194 -9
- package/src/_bin/_main/_init-template/_init-apple/_create-string-catalogs/create-string-catalog.mts +159 -81
- package/src/_bin/_main/_init-template/_init-apple/_mod-files/_app-delegate-swift.mts +3 -6
- package/src/_bin/_main/_init-template/_init-apple/_mod-files/_podfile/_pod-dependencies.mts +78 -0
- package/src/_bin/_main/_init-template/_init-apple/_mod-files/_podfile/index.mts +1 -0
- package/src/_bin/_main/_init-template/_init-apple/_mod-files/{_podfile.mts → _podfile/podfile.mts} +16 -4
- package/src/_bin/_main/_init-template/_init-apple/_mod-files/_privacy-manifest.mts +119 -0
- package/src/_bin/_main/_init-template/_init-apple/_mod-files/mod-files.mts +8 -2
- package/src/_bin/_main/_init-template/_init-apple/init-apple.mts +13 -8
- package/src/_bin/_main/_init-template/init-template.mts +2 -0
- package/src/_bin/_main/_xcodegen/_create-project-spec/_init-resources.mts +21 -9
- package/src/_bin/_main/_xcodegen/_create-project-spec/create-project-spec.mts +51 -32
- package/src/_bin/_main/_xcodegen/_mod-known-regions/mod-known-regions.mts +2 -2
- package/src/_bin/_main/_xcodegen/xcodegen.mts +1 -1
- package/src/_bin/_main/main.mts +1 -1
- package/src/_bin/plugin-sandbox-runner/plugin-runner-context-result.ts +0 -27
- package/src/config/apple/asset-catalogs-namespaced.ts +1 -1
- package/src/config/apple/data.ts +27 -4
- package/src/config/apple/index.mts +3 -2
- package/src/config/apple/{info-plist-value.ts → plist-value.ts} +5 -4
- package/src/config/apple/plist.ts +6 -0
- package/src/config/apple/podfile/index.ts +4 -0
- package/src/config/apple/podfile/pod-dependency-from-cocoapods.ts +15 -0
- package/src/config/apple/podfile/pod-dependency-from-git.ts +23 -0
- package/src/config/apple/podfile/pod-dependency-from-local.ts +15 -0
- package/src/config/apple/podfile/pod-dependency.ts +16 -0
- package/src/plugin/apple/context.ts +1 -35
- package/src/plugin/apple/index.ts +0 -3
- package/template/macos/Podfile +4 -0
- package/template/macos/PrivacyInfo.xcprivacy +5 -0
- package/template/macos/pod_dependencies.rb +2 -0
- package/lib/typescript/config/apple/info-plist-value.d.ts +0 -8
- package/lib/typescript/config/apple/info-plist-value.d.ts.map +0 -1
- package/lib/typescript/config/apple/info-plist.d.ts +0 -4
- package/lib/typescript/config/apple/info-plist.d.ts.map +0 -1
- package/lib/typescript/plugin/apple/pod-spec-source-from-cocoapods.d.ts +0 -5
- package/lib/typescript/plugin/apple/pod-spec-source-from-cocoapods.d.ts.map +0 -1
- package/lib/typescript/plugin/apple/pod-spec-source-from-git.d.ts +0 -11
- package/lib/typescript/plugin/apple/pod-spec-source-from-git.d.ts.map +0 -1
- package/lib/typescript/plugin/apple/pod-spec-source-from-local.d.ts +0 -7
- package/lib/typescript/plugin/apple/pod-spec-source-from-local.d.ts.map +0 -1
- package/src/config/apple/info-plist.ts +0 -6
- package/src/plugin/apple/pod-spec-source-from-cocoapods.ts +0 -9
- package/src/plugin/apple/pod-spec-source-from-git.ts +0 -13
- 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.
|
|
32
|
+
readonly infoPlist: Config.Apple.Plist,
|
|
67
33
|
|
|
68
34
|
}
|
package/template/macos/Podfile
CHANGED
|
@@ -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,
|
|
@@ -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 +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 +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 +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 +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"}
|