Skip to content

Commit 142b02e

Browse files
committed
Use SwiftSoup parser in the demo app
1 parent bc1de64 commit 142b02e

File tree

3 files changed

+33
-9
lines changed

3 files changed

+33
-9
lines changed

Package.resolved

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/Demo-iOS/Gutenberg.xcodeproj/project.pbxproj

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 56;
6+
objectVersion = 60;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -12,7 +12,9 @@
1212
0CE8E78D2C339B0600B9DC67 /* EditorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0CE8E7862C339B0600B9DC67 /* EditorView.swift */; };
1313
0CE8E78E2C339B0600B9DC67 /* GutenbergApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0CE8E7872C339B0600B9DC67 /* GutenbergApp.swift */; };
1414
0CE8E78F2C339B0600B9DC67 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0CE8E7892C339B0600B9DC67 /* Preview Assets.xcassets */; };
15-
0CF6E04C2BEFF60E00EDEE8A /* GutenbergKit in Frameworks */ = {isa = PBXBuildFile; productRef = 0CF6E04B2BEFF60E00EDEE8A /* GutenbergKit */; };
15+
24DF8BDF2E723BB8003B3355 /* GutenbergKit in Frameworks */ = {isa = PBXBuildFile; productRef = 24DF8BDE2E723BB8003B3355 /* GutenbergKit */; };
16+
24DF8BE42E724B99003B3355 /* GutenbergKit in Frameworks */ = {isa = PBXBuildFile; productRef = 24DF8BE32E724B99003B3355 /* GutenbergKit */; };
17+
24DF8BE62E724B99003B3355 /* GutenbergKitAssetManifestParser in Frameworks */ = {isa = PBXBuildFile; productRef = 24DF8BE52E724B99003B3355 /* GutenbergKitAssetManifestParser */; };
1618
/* End PBXBuildFile section */
1719

1820
/* Begin PBXFileReference section */
@@ -22,15 +24,16 @@
2224
0CE8E7862C339B0600B9DC67 /* EditorView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EditorView.swift; sourceTree = "<group>"; };
2325
0CE8E7872C339B0600B9DC67 /* GutenbergApp.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GutenbergApp.swift; sourceTree = "<group>"; };
2426
0CE8E7892C339B0600B9DC67 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
25-
0CE8E7922C339B1B00B9DC67 /* GutenbergKit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = GutenbergKit; path = ../..; sourceTree = "<group>"; };
2627
/* End PBXFileReference section */
2728

2829
/* Begin PBXFrameworksBuildPhase section */
2930
0C4F59882BEFF4970028BD96 /* Frameworks */ = {
3031
isa = PBXFrameworksBuildPhase;
3132
buildActionMask = 2147483647;
3233
files = (
33-
0CF6E04C2BEFF60E00EDEE8A /* GutenbergKit in Frameworks */,
34+
24DF8BDF2E723BB8003B3355 /* GutenbergKit in Frameworks */,
35+
24DF8BE62E724B99003B3355 /* GutenbergKitAssetManifestParser in Frameworks */,
36+
24DF8BE42E724B99003B3355 /* GutenbergKit in Frameworks */,
3437
);
3538
runOnlyForDeploymentPostprocessing = 0;
3639
};
@@ -40,7 +43,6 @@
4043
0C4F59822BEFF4970028BD96 = {
4144
isa = PBXGroup;
4245
children = (
43-
0CE8E7922C339B1B00B9DC67 /* GutenbergKit */,
4446
0CE8E7882C339B0600B9DC67 /* Sources */,
4547
0C83424D2C339B7F00CAA762 /* Resources */,
4648
0CE8E78A2C339B0600B9DC67 /* PreviewContent */,
@@ -107,7 +109,9 @@
107109
);
108110
name = Gutenberg;
109111
packageProductDependencies = (
110-
0CF6E04B2BEFF60E00EDEE8A /* GutenbergKit */,
112+
24DF8BDE2E723BB8003B3355 /* GutenbergKit */,
113+
24DF8BE32E724B99003B3355 /* GutenbergKit */,
114+
24DF8BE52E724B99003B3355 /* GutenbergKitAssetManifestParser */,
111115
);
112116
productName = Gutenberg;
113117
productReference = 0C4F598B2BEFF4970028BD96 /* Gutenberg.app */;
@@ -137,6 +141,9 @@
137141
Base,
138142
);
139143
mainGroup = 0C4F59822BEFF4970028BD96;
144+
packageReferences = (
145+
24DF8BE22E724B99003B3355 /* XCLocalSwiftPackageReference "../../../GutenbergKit" */,
146+
);
140147
productRefGroup = 0C4F598C2BEFF4970028BD96 /* Products */;
141148
projectDirPath = "";
142149
projectRoot = "";
@@ -377,11 +384,26 @@
377384
};
378385
/* End XCConfigurationList section */
379386

387+
/* Begin XCLocalSwiftPackageReference section */
388+
24DF8BE22E724B99003B3355 /* XCLocalSwiftPackageReference "../../../GutenbergKit" */ = {
389+
isa = XCLocalSwiftPackageReference;
390+
relativePath = ../../../GutenbergKit;
391+
};
392+
/* End XCLocalSwiftPackageReference section */
393+
380394
/* Begin XCSwiftPackageProductDependency section */
381-
0CF6E04B2BEFF60E00EDEE8A /* GutenbergKit */ = {
395+
24DF8BDE2E723BB8003B3355 /* GutenbergKit */ = {
396+
isa = XCSwiftPackageProductDependency;
397+
productName = GutenbergKit;
398+
};
399+
24DF8BE32E724B99003B3355 /* GutenbergKit */ = {
382400
isa = XCSwiftPackageProductDependency;
383401
productName = GutenbergKit;
384402
};
403+
24DF8BE52E724B99003B3355 /* GutenbergKitAssetManifestParser */ = {
404+
isa = XCSwiftPackageProductDependency;
405+
productName = GutenbergKitAssetManifestParser;
406+
};
385407
/* End XCSwiftPackageProductDependency section */
386408
};
387409
rootObject = 0C4F59832BEFF4970028BD96 /* Project object */;

ios/Demo-iOS/Sources/ContentView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import SwiftUI
22
import GutenbergKit
3+
import GutenbergKitAssetManifestParser
34

45
let editorURL: URL? = ProcessInfo.processInfo.environment["GUTENBERG_EDITOR_URL"].flatMap(URL.init)
56

@@ -78,10 +79,10 @@ private extension EditorConfiguration {
7879
.setSiteApiRoot(siteApiRoot)
7980
.setEditorAssetsEndpoint(URL(string: siteApiRoot)!.appendingPathComponent("wpcom/v2/editor-assets"))
8081
.setShouldUsePlugins(true)
82+
.setEditorAssetManifestParser(GutenbergKitAssetManifestParser())
8183

8284
return configuration.build()
8385
}
84-
8586
}
8687

8788
#Preview {

0 commit comments

Comments
 (0)