Skip to content

Commit

Permalink
Merge pull request #63 from boostcampwm2023/iOS/epic/project-init
Browse files Browse the repository at this point in the history
[iOS] ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ
  • Loading branch information
SwiftyJunnos authored Nov 15, 2023
2 parents f913567 + cd6471c commit c2bc3a8
Show file tree
Hide file tree
Showing 52 changed files with 1,018 additions and 0 deletions.
140 changes: 140 additions & 0 deletions iOS/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
# Created by https://www.toptal.com/developers/gitignore/api/macos,xcode,swiftpackagemanager,swift
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,xcode,swiftpackagemanager,swift

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### macOS Patch ###
# iCloud generated files
*.icloud

### Swift ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
# Pods/
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

### SwiftPackageManager ###
Packages
xcuserdata
*.xcodeproj


### Xcode ###

## Xcode 8 and earlier

### Xcode Patch ###
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcodeproj/project.xcworkspace/
!*.xcworkspace/contents.xcworkspacedata
/*.gcno
**/xcshareddata/WorkspaceSettings.xcsettings

# End of https://www.toptal.com/developers/gitignore/api/macos,xcode,swiftpackagemanager,swift
8 changes: 8 additions & 0 deletions iOS/MSCoreKit/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.DS_Store
/.build
/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
59 changes: 59 additions & 0 deletions iOS/MSCoreKit/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

// MARK: - Constants

extension String {
static let package = "MSCoreKit"
static let persistentStorage = "MSPersistentStorage"
static let networking = "MSNetworking"
static let fetcher = "MSFetcher"
static let cache = "MSCacheStorage"

var testTarget: String {
return self + "Tests"
}
}

// MARK: - Package

let package = Package(
name: .package,
platforms: [
.iOS(.v15)
],
products: [
.library(name: .persistentStorage,
targets: [.persistentStorage]),
.library(name: .networking,
targets: [.networking]),
.library(name: .fetcher,
targets: [.fetcher]),
.library(name: .cache,
targets: [.cache])
],
targets: [
// Codes
.target(name: .persistentStorage),
.target(name: .networking),
.target(name: .fetcher,
dependencies: [
.target(name: .persistentStorage),
.target(name: .networking)
]),
.target(name: .cache),

// Tests
.testTarget(name: .persistentStorage.testTarget,
dependencies: [.target(name: .persistentStorage)]),
.testTarget(name: .networking.testTarget,
dependencies: [.target(name: .networking)]),
.testTarget(name: .fetcher.testTarget,
dependencies: [.target(name: .fetcher)]),
.testTarget(name: .cache.testTarget,
dependencies: [.target(name: .cache)])
],
swiftLanguageVersions: [.v5]
)
6 changes: 6 additions & 0 deletions iOS/MSCoreKit/Sources/MSCacheStorage/MSCacheStorage.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//
// MSCacheStorage.swift
// MSCoreKit
//
// Created by ์ด์ฐฝ์ค€ on 11/14/23.
//
6 changes: 6 additions & 0 deletions iOS/MSCoreKit/Sources/MSFetcher/MSFetcher.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//
// MSFetcher.swift
// MSCoreKit
//
// Created by ์ด์ฐฝ์ค€ on 11/14/23.
//
6 changes: 6 additions & 0 deletions iOS/MSCoreKit/Sources/MSNetworking/MSNetworking.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//
// MSNetworking.swift
// MSCoreKit
//
// Created by ์ด์ฐฝ์ค€ on 11/14/23.
//
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//
// MSPersistentStorage.swift
// MSCoreKit
//
// Created by ์ด์ฐฝ์ค€ on 11/14/23.
//
12 changes: 12 additions & 0 deletions iOS/MSCoreKit/Tests/MSCacheStorageTests/MSCacheStorageTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// MSCacheStorageTests.swift
// MSCoreKit
//
// Created by ์ด์ฐฝ์ค€ on 11/14/23.
//

import XCTest

final class MSCacheStorageTests: XCTestCase {

}
12 changes: 12 additions & 0 deletions iOS/MSCoreKit/Tests/MSFetcherTests/MSFetcherTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// MSFetcherTests.swift
// MSCoreKit
//
// Created by ์ด์ฐฝ์ค€ on 11/14/23.
//

import XCTest

final class MSFetcherTests: XCTestCase {

}
12 changes: 12 additions & 0 deletions iOS/MSCoreKit/Tests/MSNetworkingTests/MSNetworkingTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// MSNetworkingTests.swift
// MSCoreKit
//
// Created by ์ด์ฐฝ์ค€ on 11/14/23.
//

import XCTest

final class MSNetworkingTests: XCTestCase {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// MSPersistentStorageTests.swift
// MSCoreKit
//
// Created by ์ด์ฐฝ์ค€ on 11/14/23.
//

import XCTest

final class MSPersistentStorageTests: XCTestCase {

}

8 changes: 8 additions & 0 deletions iOS/MSFoundation/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.DS_Store
/.build
/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "FoundationExt"
BuildableName = "FoundationExt"
BlueprintName = "FoundationExt"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "FoundationExt"
BuildableName = "FoundationExt"
BlueprintName = "FoundationExt"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading

0 comments on commit c2bc3a8

Please sign in to comment.