Skip to content

Commit

Permalink
Feature/rapid api/main (#67)
Browse files Browse the repository at this point in the history
* Feature/rapid api/mocking (#62)

* feat: prepare domain

* feat: mockData Model

* feat: prepare mock data

* feat: test data

* Feature/rapid api/domain (#63)

* feat: SearchRapidExercisesByNameUsecase

* feat: SearchRapidExercisesByBodyPartsUsecase

* Feature/rapid api/data (#64)

* chore

* chore

* feat: Model

* feat: RapidRepositoryImpl

* feat: DI

* feat: add url

* feat: fetch api key

* feat: fetch1000Exercises

* Feature/rapid api/presentation (#65)

* feat: add rapid target

* chore: change graph

* feat: Add Model

* feat: RapidSearchTypeListView

* feat: navigation

* feat: binding

* feat: RapidSearchByBodyPartViewModel

* feat:

* feat: Binding

* chore

* fix

* chore

* feat: add flow

* feat: using hflow

* chore

* Settings bundle

* feat: ExerciseThumbnailView

* feat: RapidSearchByBodyPartView

* feat: color

* feat: add loading

* feat: add search by name

* change mise version

* fix: GetRecordGoalStrengthUsecase

* feat: RapidSearchByNameViewModel

* feat: DI

* feat: preview

* feat: Add physical target

* feat: WeightLineChartView

* chore: preview sample data

* chore

* feat: update graph

* feat: initial postion

* feat: add search bar

* feat: search view

* feat: model

* feat: RapidExerciseDetailView

* feat: navigation

* feat: search bar displaying mode

* feat: RapidExerciseDetailView

* feat: detail ui done

* feat: change graph image

* fix: fetch friends after fetching users (#66)

* chore
  • Loading branch information
donggyushin authored Jul 27, 2024
1 parent a6bd63c commit 13b9aeb
Show file tree
Hide file tree
Showing 64 changed files with 2,156 additions and 19 deletions.
11 changes: 10 additions & 1 deletion .package.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"originHash" : "6105cb1a147aa39810bb4714adbf3613effb91a98d11e95f3b62426416edf3cf",
"originHash" : "ba116232ab19674f4dccf563b6c2a2d2a675f31d81c16e7704d7ddf634185c57",
"pins" : [
{
"identity" : "abseil-cpp-binary",
Expand Down Expand Up @@ -136,6 +136,15 @@
"version" : "1.26.0"
}
},
{
"identity" : "swiftui-flow",
"kind" : "remoteSourceControl",
"location" : "https://github.com/tevelee/SwiftUI-Flow",
"state" : {
"revision" : "633e0aad975fc9c13b3c13e38393d5ddcb66d45c",
"version" : "2.2.0"
}
},
{
"identity" : "swinject",
"kind" : "remoteSourceControl",
Expand Down
22 changes: 22 additions & 0 deletions Derived/InfoPlists/Physical-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
22 changes: 22 additions & 0 deletions Derived/InfoPlists/Rapid-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
150 changes: 150 additions & 0 deletions Derived/Sources/TuistAssets+Physical.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
// swiftlint:disable all
// swift-format-ignore-file
// swiftformat:disable all
// Generated using tuist — https://github.com/tuist/tuist

#if os(macOS)
import AppKit
#elseif os(iOS)
import UIKit
#elseif os(tvOS) || os(watchOS)
import UIKit
#endif
#if canImport(SwiftUI)
import SwiftUI
#endif

// swiftlint:disable superfluous_disable_command file_length implicit_return

// MARK: - Asset Catalogs

// swiftlint:disable identifier_name line_length nesting type_body_length type_name
public enum PhysicalAsset {
public enum Assets {
public static let accentColor = PhysicalColors(name: "AccentColor")
public static let splash = PhysicalImages(name: "Splash")
}
public enum PreviewAssets {
}
}
// swiftlint:enable identifier_name line_length nesting type_body_length type_name

// MARK: - Implementation Details

public final class PhysicalColors {
public fileprivate(set) var name: String

#if os(macOS)
public typealias Color = NSColor
#elseif os(iOS) || os(tvOS) || os(watchOS) || os(visionOS)
public typealias Color = UIColor
#endif

@available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, visionOS 1.0, *)
public private(set) lazy var color: Color = {
guard let color = Color(asset: self) else {
fatalError("Unable to load color asset named \(name).")
}
return color
}()

#if canImport(SwiftUI)
private var _swiftUIColor: Any? = nil
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
public private(set) var swiftUIColor: SwiftUI.Color {
get {
if self._swiftUIColor == nil {
self._swiftUIColor = SwiftUI.Color(asset: self)
}

return self._swiftUIColor as! SwiftUI.Color
}
set {
self._swiftUIColor = newValue
}
}
#endif

fileprivate init(name: String) {
self.name = name
}
}

public extension PhysicalColors.Color {
@available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, visionOS 1.0, *)
convenience init?(asset: PhysicalColors) {
let bundle = Bundle.module
#if os(iOS) || os(tvOS) || os(visionOS)
self.init(named: asset.name, in: bundle, compatibleWith: nil)
#elseif os(macOS)
self.init(named: NSColor.Name(asset.name), bundle: bundle)
#elseif os(watchOS)
self.init(named: asset.name)
#endif
}
}

#if canImport(SwiftUI)
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
public extension SwiftUI.Color {
init(asset: PhysicalColors) {
let bundle = Bundle.module
self.init(asset.name, bundle: bundle)
}
}
#endif

public struct PhysicalImages {
public fileprivate(set) var name: String

#if os(macOS)
public typealias Image = NSImage
#elseif os(iOS) || os(tvOS) || os(watchOS) || os(visionOS)
public typealias Image = UIImage
#endif

public var image: Image {
let bundle = Bundle.module
#if os(iOS) || os(tvOS) || os(visionOS)
let image = Image(named: name, in: bundle, compatibleWith: nil)
#elseif os(macOS)
let image = bundle.image(forResource: NSImage.Name(name))
#elseif os(watchOS)
let image = Image(named: name)
#endif
guard let result = image else {
fatalError("Unable to load image asset named \(name).")
}
return result
}

#if canImport(SwiftUI)
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
public var swiftUIImage: SwiftUI.Image {
SwiftUI.Image(asset: self)
}
#endif
}

#if canImport(SwiftUI)
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
public extension SwiftUI.Image {
init(asset: PhysicalImages) {
let bundle = Bundle.module
self.init(asset.name, bundle: bundle)
}

init(asset: PhysicalImages, label: Text) {
let bundle = Bundle.module
self.init(asset.name, bundle: bundle, label: label)
}

init(decorative asset: PhysicalImages) {
let bundle = Bundle.module
self.init(decorative: asset.name, bundle: bundle)
}
}
#endif

// swiftlint:enable all
// swiftformat:enable all
150 changes: 150 additions & 0 deletions Derived/Sources/TuistAssets+Rapid.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
// swiftlint:disable all
// swift-format-ignore-file
// swiftformat:disable all
// Generated using tuist — https://github.com/tuist/tuist

#if os(macOS)
import AppKit
#elseif os(iOS)
import UIKit
#elseif os(tvOS) || os(watchOS)
import UIKit
#endif
#if canImport(SwiftUI)
import SwiftUI
#endif

// swiftlint:disable superfluous_disable_command file_length implicit_return

// MARK: - Asset Catalogs

// swiftlint:disable identifier_name line_length nesting type_body_length type_name
public enum RapidAsset {
public enum Assets {
public static let accentColor = RapidColors(name: "AccentColor")
public static let splash = RapidImages(name: "Splash")
}
public enum PreviewAssets {
}
}
// swiftlint:enable identifier_name line_length nesting type_body_length type_name

// MARK: - Implementation Details

public final class RapidColors {
public fileprivate(set) var name: String

#if os(macOS)
public typealias Color = NSColor
#elseif os(iOS) || os(tvOS) || os(watchOS) || os(visionOS)
public typealias Color = UIColor
#endif

@available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, visionOS 1.0, *)
public private(set) lazy var color: Color = {
guard let color = Color(asset: self) else {
fatalError("Unable to load color asset named \(name).")
}
return color
}()

#if canImport(SwiftUI)
private var _swiftUIColor: Any? = nil
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
public private(set) var swiftUIColor: SwiftUI.Color {
get {
if self._swiftUIColor == nil {
self._swiftUIColor = SwiftUI.Color(asset: self)
}

return self._swiftUIColor as! SwiftUI.Color
}
set {
self._swiftUIColor = newValue
}
}
#endif

fileprivate init(name: String) {
self.name = name
}
}

public extension RapidColors.Color {
@available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, visionOS 1.0, *)
convenience init?(asset: RapidColors) {
let bundle = Bundle.module
#if os(iOS) || os(tvOS) || os(visionOS)
self.init(named: asset.name, in: bundle, compatibleWith: nil)
#elseif os(macOS)
self.init(named: NSColor.Name(asset.name), bundle: bundle)
#elseif os(watchOS)
self.init(named: asset.name)
#endif
}
}

#if canImport(SwiftUI)
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
public extension SwiftUI.Color {
init(asset: RapidColors) {
let bundle = Bundle.module
self.init(asset.name, bundle: bundle)
}
}
#endif

public struct RapidImages {
public fileprivate(set) var name: String

#if os(macOS)
public typealias Image = NSImage
#elseif os(iOS) || os(tvOS) || os(watchOS) || os(visionOS)
public typealias Image = UIImage
#endif

public var image: Image {
let bundle = Bundle.module
#if os(iOS) || os(tvOS) || os(visionOS)
let image = Image(named: name, in: bundle, compatibleWith: nil)
#elseif os(macOS)
let image = bundle.image(forResource: NSImage.Name(name))
#elseif os(watchOS)
let image = Image(named: name)
#endif
guard let result = image else {
fatalError("Unable to load image asset named \(name).")
}
return result
}

#if canImport(SwiftUI)
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
public var swiftUIImage: SwiftUI.Image {
SwiftUI.Image(asset: self)
}
#endif
}

#if canImport(SwiftUI)
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
public extension SwiftUI.Image {
init(asset: RapidImages) {
let bundle = Bundle.module
self.init(asset.name, bundle: bundle)
}

init(asset: RapidImages, label: Text) {
let bundle = Bundle.module
self.init(asset.name, bundle: bundle, label: label)
}

init(decorative asset: RapidImages) {
let bundle = Bundle.module
self.init(decorative: asset.name, bundle: bundle)
}
}
#endif

// swiftlint:enable all
// swiftformat:enable all
16 changes: 16 additions & 0 deletions Derived/Sources/TuistBundle+Physical.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// swiftlint:disable all
// swift-format-ignore-file
// swiftformat:disable all
import Foundation// MARK: - Swift Bundle Accessor for Frameworks
private class BundleFinder {}
extension Foundation.Bundle {
/// Since Physical is a dynamic framework, the bundle for classes within this module can be used directly.
static let module = Bundle(for: BundleFinder.self)
}// MARK: - Objective-C Bundle Accessor
@objc
public class PhysicalResources: NSObject {
@objc public class var bundle: Bundle {
return .module
}
}// swiftlint:enable all
// swiftformat:enable all
Loading

0 comments on commit 13b9aeb

Please sign in to comment.