Skip to content

Commit ca83705

Browse files
authored
Leif/feature/xcodegen (#6)
* Add project file for xcodegen * Start updating project for xcodegen * Successfully generate project * Remove xcodeproj from git * Correctly ignore project file * Start sh script to rename base * Update rename-base sh file * Update script to rename files and folders * Update script structure * Add cleanup and xcodegen * Update variable to remove error after renaming * Add rename steps * Add instruction for installing xcodegen * Add back project file for CI tests * Fix CI running tests * Update GitHub workflow files * Fix path for cd .github * Update yamllint for CI
1 parent e9b9563 commit ca83705

File tree

70 files changed

+1223
-1072
lines changed

Some content is hidden

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

70 files changed

+1223
-1072
lines changed

.github/workflows/CI.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yamllint disable rule:line-length
12
name: CI
23
'on':
34
push:
@@ -17,10 +18,11 @@ jobs:
1718
xcode-version: '14.1'
1819
- name: Build
1920
run: >
20-
cd base xcodebuild build -project base.xcodeproj -scheme base clean
21+
xcodebuild build -project base.xcodeproj -scheme base clean
2122
build -sdk iphoneos CODE_SIGNING_ALLOWED=No
2223
- name: Tests
2324
run: >
24-
cd base xcodebuild test -project base.xcodeproj -scheme base clean
25+
xcodebuild test -project base.xcodeproj -scheme base clean
2526
build -sdk iphoneos -destination "platform=iOS
2627
Simulator,OS=16.1,name=iPhone 14 Pro Max" CODE_SIGNING_ALLOWED=No
28+
# yamllint enable rule:line-length

README.md

+14

base.xcodeproj/project.pbxproj

+970
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1200"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES"
8+
runPostActionsOnFailure = "NO">
9+
<BuildActionEntries>
10+
<BuildActionEntry
11+
buildForTesting = "YES"
12+
buildForRunning = "YES"
13+
buildForProfiling = "YES"
14+
buildForArchiving = "YES"
15+
buildForAnalyzing = "YES">
16+
<BuildableReference
17+
BuildableIdentifier = "primary"
18+
BlueprintIdentifier = "DF1016DAD4611E7FCD642455"
19+
BuildableName = "base.app"
20+
BlueprintName = "base"
21+
ReferencedContainer = "container:base.xcodeproj">
22+
</BuildableReference>
23+
</BuildActionEntry>
24+
</BuildActionEntries>
25+
</BuildAction>
26+
<TestAction
27+
buildConfiguration = "Debug"
28+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
29+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
30+
shouldUseLaunchSchemeArgsEnv = "YES"
31+
onlyGenerateCoverageForSpecifiedTargets = "NO">
32+
<MacroExpansion>
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "DF1016DAD4611E7FCD642455"
36+
BuildableName = "base.app"
37+
BlueprintName = "base"
38+
ReferencedContainer = "container:base.xcodeproj">
39+
</BuildableReference>
40+
</MacroExpansion>
41+
<Testables>
42+
<TestableReference
43+
skipped = "NO">
44+
<BuildableReference
45+
BuildableIdentifier = "primary"
46+
BlueprintIdentifier = "2144EE64796B39378E7F6907"
47+
BuildableName = "baseTests.xctest"
48+
BlueprintName = "baseTests"
49+
ReferencedContainer = "container:base.xcodeproj">
50+
</BuildableReference>
51+
</TestableReference>
52+
</Testables>
53+
<CommandLineArguments>
54+
</CommandLineArguments>
55+
</TestAction>
56+
<LaunchAction
57+
buildConfiguration = "Debug"
58+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
59+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
60+
launchStyle = "0"
61+
useCustomWorkingDirectory = "NO"
62+
ignoresPersistentStateOnLaunch = "NO"
63+
debugDocumentVersioning = "YES"
64+
debugServiceExtension = "internal"
65+
allowLocationSimulation = "YES">
66+
<BuildableProductRunnable
67+
runnableDebuggingMode = "0">
68+
<BuildableReference
69+
BuildableIdentifier = "primary"
70+
BlueprintIdentifier = "DF1016DAD4611E7FCD642455"
71+
BuildableName = "base.app"
72+
BlueprintName = "base"
73+
ReferencedContainer = "container:base.xcodeproj">
74+
</BuildableReference>
75+
</BuildableProductRunnable>
76+
<CommandLineArguments>
77+
</CommandLineArguments>
78+
</LaunchAction>
79+
<ProfileAction
80+
buildConfiguration = "Release"
81+
shouldUseLaunchSchemeArgsEnv = "YES"
82+
savedToolIdentifier = ""
83+
useCustomWorkingDirectory = "NO"
84+
debugDocumentVersioning = "YES">
85+
<BuildableProductRunnable
86+
runnableDebuggingMode = "0">
87+
<BuildableReference
88+
BuildableIdentifier = "primary"
89+
BlueprintIdentifier = "DF1016DAD4611E7FCD642455"
90+
BuildableName = "base.app"
91+
BlueprintName = "base"
92+
ReferencedContainer = "container:base.xcodeproj">
93+
</BuildableReference>
94+
</BuildableProductRunnable>
95+
<CommandLineArguments>
96+
</CommandLineArguments>
97+
</ProfileAction>
98+
<AnalyzeAction
99+
buildConfiguration = "Debug">
100+
</AnalyzeAction>
101+
<ArchiveAction
102+
buildConfiguration = "Release"
103+
revealArchiveInOrganizer = "YES">
104+
</ArchiveAction>
105+
</Scheme>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

base/Info.plist

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>APPL</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>1</string>
21+
<key>UILaunchScreen</key>
22+
<array>
23+
<dict>
24+
<key>UILaunchScreen</key>
25+
<array/>
26+
</dict>
27+
</array>
28+
<key>UISupportedInterfaceOrientations</key>
29+
<array>
30+
<string>UIInterfaceOrientationPortrait</string>
31+
</array>
32+
</dict>
33+
</plist>
File renamed without changes.

base/base/Networking/Implementation/AuthNetworking+Default.swift base/Networking/Implementation/AuthNetworking+Default.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Foundation
1010
extension AuthNetworking {
1111
var tokenFileName: String { "base.token" }
1212

13-
var baseURL: URL {
13+
var authURL: URL {
1414
URL(string: "AUTH_URL")! // TODO: (base-Template) Change AUTH_URL to valid URL
1515
}
1616

@@ -58,7 +58,7 @@ extension AuthNetworking {
5858
encoder.dateEncodingStrategy = .iso8601
5959

6060
let dataResponse = try await Network.post(
61-
url: baseURL.appendingPathComponent("register"),
61+
url: authURL.appendingPathComponent("register"),
6262
body: try encoder.encode(payload)
6363
)
6464

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)