Skip to content

Commit 9097502

Browse files
committed
refactor: simplify example app by removing nested package structure
Removes DeveloperSupportStoreExamplePackage and integrates ContentView directly into the app target. This simplifies the project structure and makes the example easier to understand. Changes: - Removed nested DeveloperSupportStoreExamplePackage Swift package - Moved ContentView directly into the app target - Updated Xcode project references to main package - Cleaned up workspace configuration - Added dependency resolution files
1 parent 52de3ab commit 9097502

9 files changed

Lines changed: 56 additions & 74 deletions

File tree

Example/DeveloperSupportStoreExample.xcodeproj/project.pbxproj

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
8B41F6832DEDD23B001A66F9 /* DeveloperSupportStoreExampleFeature in Frameworks */ = {isa = PBXBuildFile; productRef = 8B41F6822DEDD23B001A66F9 /* DeveloperSupportStoreExampleFeature */; };
11-
8B41F6852DEDD25C001A66F9 /* DeveloperSupportStoreExampleFeature in Frameworks */ = {isa = PBXBuildFile; productRef = 8B41F6842DEDD25C001A66F9 /* DeveloperSupportStoreExampleFeature */; };
10+
A5AEF7AE2F164C9E00186E81 /* DeveloperSupportStore in Frameworks */ = {isa = PBXBuildFile; productRef = A5AEF7AD2F164C9E00186E81 /* DeveloperSupportStore */; };
1211
/* End PBXBuildFile section */
1312

1413
/* Begin PBXContainerItemProxy section */
@@ -65,15 +64,14 @@
6564
isa = PBXFrameworksBuildPhase;
6665
buildActionMask = 2147483647;
6766
files = (
68-
8B41F6852DEDD25C001A66F9 /* DeveloperSupportStoreExampleFeature in Frameworks */,
67+
A5AEF7AE2F164C9E00186E81 /* DeveloperSupportStore in Frameworks */,
6968
);
7069
runOnlyForDeploymentPostprocessing = 0;
7170
};
7271
8B41F6592DEDD0D6001A66F9 /* Frameworks */ = {
7372
isa = PBXFrameworksBuildPhase;
7473
buildActionMask = 2147483647;
7574
files = (
76-
8B41F6832DEDD23B001A66F9 /* DeveloperSupportStoreExampleFeature in Frameworks */,
7775
);
7876
runOnlyForDeploymentPostprocessing = 0;
7977
};
@@ -128,7 +126,7 @@
128126
);
129127
name = DeveloperSupportStoreExample;
130128
packageProductDependencies = (
131-
8B41F6842DEDD25C001A66F9 /* DeveloperSupportStoreExampleFeature */,
129+
A5AEF7AD2F164C9E00186E81 /* DeveloperSupportStore */,
132130
);
133131
productName = DeveloperSupportStoreExample;
134132
productReference = 8B41F6452DEDD0D5001A66F9 /* DeveloperSupportStoreExample.app */;
@@ -152,7 +150,6 @@
152150
);
153151
name = DeveloperSupportStoreExampleUITests;
154152
packageProductDependencies = (
155-
8B41F6822DEDD23B001A66F9 /* DeveloperSupportStoreExampleFeature */,
156153
);
157154
productName = DeveloperSupportStoreExampleUITests;
158155
productReference = 8B41F65C2DEDD0D6001A66F9 /* DeveloperSupportStoreExample.xctest */;
@@ -187,7 +184,7 @@
187184
mainGroup = 8B41F63C2DEDD0D5001A66F9;
188185
minimizedProjectReferenceProxies = 1;
189186
packageReferences = (
190-
8B41F6862DEE0000001A66F9 /* XCLocalSwiftPackageReference "DeveloperSupportStoreExamplePackage" */,
187+
A5AEF7AC2F164C9E00186E81 /* XCLocalSwiftPackageReference "../../florence-v1" */,
191188
);
192189
preferredProjectObjectVersion = 77;
193190
productRefGroup = 8B41F6462DEDD0D5001A66F9 /* Products */;
@@ -477,22 +474,16 @@
477474
/* End XCConfigurationList section */
478475

479476
/* Begin XCLocalSwiftPackageReference section */
480-
8B41F6862DEE0000001A66F9 /* XCLocalSwiftPackageReference "DeveloperSupportStoreExamplePackage" */ = {
477+
A5AEF7AC2F164C9E00186E81 /* XCLocalSwiftPackageReference "../../florence-v1" */ = {
481478
isa = XCLocalSwiftPackageReference;
482-
relativePath = DeveloperSupportStoreExamplePackage;
479+
relativePath = "../../florence-v1";
483480
};
484481
/* End XCLocalSwiftPackageReference section */
485482

486483
/* Begin XCSwiftPackageProductDependency section */
487-
8B41F6822DEDD23B001A66F9 /* DeveloperSupportStoreExampleFeature */ = {
484+
A5AEF7AD2F164C9E00186E81 /* DeveloperSupportStore */ = {
488485
isa = XCSwiftPackageProductDependency;
489-
package = 8B41F6862DEE0000001A66F9 /* XCLocalSwiftPackageReference "DeveloperSupportStoreExamplePackage" */;
490-
productName = DeveloperSupportStoreExampleFeature;
491-
};
492-
8B41F6842DEDD25C001A66F9 /* DeveloperSupportStoreExampleFeature */ = {
493-
isa = XCSwiftPackageProductDependency;
494-
package = 8B41F6862DEE0000001A66F9 /* XCLocalSwiftPackageReference "DeveloperSupportStoreExamplePackage" */;
495-
productName = DeveloperSupportStoreExampleFeature;
486+
productName = DeveloperSupportStore;
496487
};
497488
/* End XCSwiftPackageProductDependency section */
498489
};

Example/DeveloperSupportStoreExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/DeveloperSupportStoreExample.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 10 deletions
This file was deleted.

Example/DeveloperSupportStoreExamplePackage/Sources/DeveloperSupportStoreExampleFeature/ContentView.swift renamed to Example/DeveloperSupportStoreExample/ContentView.swift

File renamed without changes.

Example/DeveloperSupportStoreExample/DeveloperSupportStoreExampleApp.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import SwiftUI
2-
import DeveloperSupportStoreExampleFeature
32

43
@main
54
struct DeveloperSupportStoreExampleApp: App {

Example/DeveloperSupportStoreExamplePackage/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

Example/DeveloperSupportStoreExamplePackage/Package.swift

Lines changed: 0 additions & 32 deletions
This file was deleted.

Example/DeveloperSupportStoreExamplePackage/Tests/DeveloperSupportStoreExampleFeatureTests/DeveloperSupportStoreExampleFeatureTests.swift

Lines changed: 0 additions & 6 deletions
This file was deleted.

Package.resolved

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)