Skip to content

Commit 4bdcfd1

Browse files
Use conventional naming for example projects (#458)
### Motivation The example packages were named using `CamelCase`, rather than `kebab-case` and also could use with some renaming to group them better and make it clear they are examples. ### Modifications - Rename all the example Swift packages to use `kebab-case`. - Include `-example` suffix in all example package names. - Rename the Xcode project too to align with the Hello World examples. ### Result Easier to browse the examples. ### Test Plan CI.
1 parent e2bbbb8 commit 4bdcfd1

File tree

159 files changed

+182
-178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+182
-178
lines changed

Examples/iOSAppClient/iOSAppClient.xcodeproj/project.pbxproj renamed to Examples/HelloWorldiOSClientAppExample/HelloWorldiOSClientApp.xcodeproj/project.pbxproj

Lines changed: 68 additions & 68 deletions
Large diffs are not rendered by default.

Examples/iOSAppClient/iOSAppClient.xcodeproj/xcshareddata/xcschemes/iOSAppClient.xcscheme renamed to Examples/HelloWorldiOSClientAppExample/HelloWorldiOSClientApp.xcodeproj/xcshareddata/xcschemes/HelloWorldiOSClientApp.xcscheme

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "3A133CDE2B1F28870008DD5E"
18-
BuildableName = "iOSAppClient.app"
19-
BlueprintName = "iOSAppClient"
20-
ReferencedContainer = "container:iOSAppClient.xcodeproj">
18+
BuildableName = "HelloWorldiOSClientApp.app"
19+
BlueprintName = "HelloWorldiOSClientApp"
20+
ReferencedContainer = "container:HelloWorldiOSClientApp.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
2323
</BuildActionEntries>
@@ -29,7 +29,7 @@
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<TestPlans>
3131
<TestPlanReference
32-
reference = "container:iOSAppClient.xctestplan"
32+
reference = "container:HelloWorldiOSClientApp.xctestplan"
3333
default = "YES">
3434
</TestPlanReference>
3535
</TestPlans>
@@ -39,19 +39,19 @@
3939
<BuildableReference
4040
BuildableIdentifier = "primary"
4141
BlueprintIdentifier = "3A133CEE2B1F28890008DD5E"
42-
BuildableName = "iOSAppClientTests.xctest"
43-
BlueprintName = "iOSAppClientTests"
44-
ReferencedContainer = "container:iOSAppClient.xcodeproj">
42+
BuildableName = "HelloWorldiOSClientAppTests.xctest"
43+
BlueprintName = "HelloWorldiOSClientAppTests"
44+
ReferencedContainer = "container:HelloWorldiOSClientApp.xcodeproj">
4545
</BuildableReference>
4646
</TestableReference>
4747
<TestableReference
4848
skipped = "NO">
4949
<BuildableReference
5050
BuildableIdentifier = "primary"
5151
BlueprintIdentifier = "3A133CF82B1F28890008DD5E"
52-
BuildableName = "iOSAppClientUITests.xctest"
53-
BlueprintName = "iOSAppClientUITests"
54-
ReferencedContainer = "container:iOSAppClient.xcodeproj">
52+
BuildableName = "HelloWorldiOSClientAppUITests.xctest"
53+
BlueprintName = "HelloWorldiOSClientAppUITests"
54+
ReferencedContainer = "container:HelloWorldiOSClientApp.xcodeproj">
5555
</BuildableReference>
5656
</TestableReference>
5757
</Testables>
@@ -71,9 +71,9 @@
7171
<BuildableReference
7272
BuildableIdentifier = "primary"
7373
BlueprintIdentifier = "3A133CDE2B1F28870008DD5E"
74-
BuildableName = "iOSAppClient.app"
75-
BlueprintName = "iOSAppClient"
76-
ReferencedContainer = "container:iOSAppClient.xcodeproj">
74+
BuildableName = "HelloWorldiOSClientApp.app"
75+
BlueprintName = "HelloWorldiOSClientApp"
76+
ReferencedContainer = "container:HelloWorldiOSClientApp.xcodeproj">
7777
</BuildableReference>
7878
</BuildableProductRunnable>
7979
</LaunchAction>
@@ -88,9 +88,9 @@
8888
<BuildableReference
8989
BuildableIdentifier = "primary"
9090
BlueprintIdentifier = "3A133CDE2B1F28870008DD5E"
91-
BuildableName = "iOSAppClient.app"
92-
BlueprintName = "iOSAppClient"
93-
ReferencedContainer = "container:iOSAppClient.xcodeproj">
91+
BuildableName = "HelloWorldiOSClientApp.app"
92+
BlueprintName = "HelloWorldiOSClientApp"
93+
ReferencedContainer = "container:HelloWorldiOSClientApp.xcodeproj">
9494
</BuildableReference>
9595
</BuildableProductRunnable>
9696
</ProfileAction>

Examples/iOSAppClient/iOSAppClient.xctestplan renamed to Examples/HelloWorldiOSClientAppExample/HelloWorldiOSClientApp.xctestplan

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,30 @@
44
"id" : "89964AC6-C28B-4C2A-9CF4-824B569065D0",
55
"name" : "Test Scheme Action",
66
"options" : {
7-
7+
"targetForVariableExpansion" : null
88
}
99
}
1010
],
1111
"defaultOptions" : {
1212
"targetForVariableExpansion" : {
13-
"containerPath" : "container:iOSAppClient.xcodeproj",
13+
"containerPath" : "container:HelloWorldiOSClientApp.xcodeproj",
1414
"identifier" : "3A133CDE2B1F28870008DD5E",
15-
"name" : "iOSAppClient"
15+
"name" : "HelloWorldiOSClientApp"
1616
}
1717
},
1818
"testTargets" : [
1919
{
2020
"target" : {
21-
"containerPath" : "container:iOSAppClient.xcodeproj",
21+
"containerPath" : "container:HelloWorldiOSClientApp.xcodeproj",
2222
"identifier" : "3A133CEE2B1F28890008DD5E",
23-
"name" : "iOSAppClientTests"
23+
"name" : "HelloWorldiOSClientAppTests"
2424
}
2525
},
2626
{
2727
"target" : {
28-
"containerPath" : "container:iOSAppClient.xcodeproj",
28+
"containerPath" : "container:HelloWorldiOSClientApp.xcodeproj",
2929
"identifier" : "3A133CF82B1F28890008DD5E",
30-
"name" : "iOSAppClientUITests"
30+
"name" : "HelloWorldiOSClientAppUITests"
3131
}
3232
}
3333
],

Examples/iOSAppClient/iOSAppClient/iOSAppClientApp.swift renamed to Examples/HelloWorldiOSClientAppExample/HelloWorldiOSClientApp/HelloWorldiOSClientApp.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414

1515
import SwiftUI
1616

17-
@main struct iOSAppClientApp: App { var body: some Scene { WindowGroup { ContentView() } } }
17+
@main struct HelloWorldiOSClientApp: App { var body: some Scene { WindowGroup { ContentView() } } }

0 commit comments

Comments
 (0)