@xcodekit/xcode 0.1.0 → 0.2.0
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/index.d.ts +39 -0
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -51,4 +51,43 @@ export declare class XcodeProject {
|
|
|
51
51
|
findMainAppTarget(platform?: string | undefined | null): string | null
|
|
52
52
|
/** Generate a unique UUID. */
|
|
53
53
|
getUniqueId(seed: string): string
|
|
54
|
+
/** Get the main group UUID. */
|
|
55
|
+
get mainGroupUuid(): string | null
|
|
56
|
+
/** Get children UUIDs of a group. */
|
|
57
|
+
getGroupChildren(groupUuid: string): Array<string>
|
|
58
|
+
/**
|
|
59
|
+
* Add a file reference to the project and a group.
|
|
60
|
+
* Returns the UUID of the new PBXFileReference.
|
|
61
|
+
*/
|
|
62
|
+
addFile(groupUuid: string, path: string): string | null
|
|
63
|
+
/**
|
|
64
|
+
* Create a group and add it as a child of a parent group.
|
|
65
|
+
* Returns the UUID of the new PBXGroup.
|
|
66
|
+
*/
|
|
67
|
+
addGroup(parentUuid: string, name: string): string | null
|
|
68
|
+
/**
|
|
69
|
+
* Add a build file to a build phase.
|
|
70
|
+
* Returns the UUID of the new PBXBuildFile.
|
|
71
|
+
*/
|
|
72
|
+
addBuildFile(phaseUuid: string, fileRefUuid: string): string | null
|
|
73
|
+
/**
|
|
74
|
+
* Find or create a build phase for a target.
|
|
75
|
+
* Returns the UUID of the build phase.
|
|
76
|
+
*/
|
|
77
|
+
ensureBuildPhase(targetUuid: string, phaseIsa: string): string | null
|
|
78
|
+
/**
|
|
79
|
+
* Add a framework to a target.
|
|
80
|
+
* Returns the UUID of the PBXBuildFile.
|
|
81
|
+
*/
|
|
82
|
+
addFramework(targetUuid: string, frameworkName: string): string | null
|
|
83
|
+
/**
|
|
84
|
+
* Create a native target with Debug/Release configs, standard build phases, and product ref.
|
|
85
|
+
* Returns the UUID of the new PBXNativeTarget.
|
|
86
|
+
*/
|
|
87
|
+
createNativeTarget(name: string, productType: string, bundleId: string): string | null
|
|
88
|
+
/**
|
|
89
|
+
* Add a dependency from one target to another.
|
|
90
|
+
* Returns the UUID of the PBXTargetDependency.
|
|
91
|
+
*/
|
|
92
|
+
addDependency(targetUuid: string, dependsOnUuid: string): string | null
|
|
54
93
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xcodekit/xcode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Parse, manipulate, and serialize Xcode .pbxproj files — native Rust rewrite",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"optionalDependencies": {
|
|
19
|
-
"@xcodekit/xcode-darwin-arm64": "0.
|
|
20
|
-
"@xcodekit/xcode-darwin-x64": "0.
|
|
21
|
-
"@xcodekit/xcode-linux-arm64-gnu": "0.
|
|
22
|
-
"@xcodekit/xcode-linux-x64-gnu": "0.
|
|
23
|
-
"@xcodekit/xcode-win32-x64-msvc": "0.
|
|
19
|
+
"@xcodekit/xcode-darwin-arm64": "0.2.0",
|
|
20
|
+
"@xcodekit/xcode-darwin-x64": "0.2.0",
|
|
21
|
+
"@xcodekit/xcode-linux-arm64-gnu": "0.2.0",
|
|
22
|
+
"@xcodekit/xcode-linux-x64-gnu": "0.2.0",
|
|
23
|
+
"@xcodekit/xcode-win32-x64-msvc": "0.2.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@napi-rs/cli": "^2.18.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
],
|
|
45
45
|
"repository": {
|
|
46
46
|
"type": "git",
|
|
47
|
-
"url": "https://github.com/
|
|
47
|
+
"url": "https://github.com/mozharovsky/xcode"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|
|
50
50
|
"xcode",
|