Skip to content

Commit

Permalink
Merge pull request #271 from aapis/feature/rename-project
Browse files Browse the repository at this point in the history
Rename most project files, start moving code to shareable framework KWCore
  • Loading branch information
aapis authored Oct 7, 2024
2 parents be4dd0e + ec891c6 commit 1cf5c2d
Show file tree
Hide file tree
Showing 319 changed files with 6,555 additions and 11 deletions.
62 changes: 62 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## 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/

# 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

This file was deleted.

13 changes: 13 additions & 0 deletions KWCore/KWCore.docc/KWCore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ``KWCore``

<!--@START_MENU_TOKEN@-->Summary<!--@END_MENU_TOKEN@-->

## Overview

<!--@START_MENU_TOKEN@-->Text<!--@END_MENU_TOKEN@-->

## Topics

### <!--@START_MENU_TOKEN@-->Group<!--@END_MENU_TOKEN@-->

- <!--@START_MENU_TOKEN@-->``Symbol``<!--@END_MENU_TOKEN@-->
19 changes: 19 additions & 0 deletions KWCore/KWCore.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// KWCore.h
// KWCore
//
// Created by Ryan Priebe on 2024-10-06.
// Copyright © 2024 YegCollective. All rights reserved.
//

#import <Foundation/Foundation.h>

//! Project version number for KWCore.
FOUNDATION_EXPORT double KWCoreVersionNumber;

//! Project version string for KWCore.
FOUNDATION_EXPORT const unsigned char KWCoreVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <KWCore/PublicHeader.h>


21 changes: 21 additions & 0 deletions KWCore/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// swift-tools-version: 6.0
import PackageDescription

let package = Package(
name: "KWCore",
platforms: [
.macOS(.v14), .iOS(.v13)
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(name: "KWCore", targets: ["KWCore"]),
],
targets: [
.target(
name: "KWCore"),
.testTarget(
name: "KWCoreTests",
dependencies: ["KWCore"]
),
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import SwiftUI
import KWCore
import CoreData

public class CDAssessmentFactor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import SwiftUI
import KWCore
import CoreData

class CDAssessmentThreshold {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import Foundation
import EventKit
import SwiftUI
import KWCore
import CoreData

public enum CalendarEventType: String, CaseIterable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import SwiftUI
import KWCore
import CoreData

public class CoreDataCompanies: ObservableObject {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import SwiftUI
import KWCore
import CoreData

public class CoreDataJob: ObservableObject {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import Foundation
import SwiftUI
import KWCore
import CoreData

public class CoreDataNoteVersions: ObservableObject {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import Foundation
import SwiftUI
import KWCore
import CoreData

public class CoreDataNotes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import SwiftUI
import KWCore
import CoreData

public class CoreDataPerson: ObservableObject {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import SwiftUI
import KWCore
import CoreData

public final class CoreDataPlan {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import Foundation
import SwiftUI
import KWCore
import CoreData

public final class CoreDataProjectConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import SwiftUI
import KWCore
import CoreData

public class CoreDataProjects: ObservableObject {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import Foundation
import SwiftUI
import KWCore
import CoreData

// TODO: rename this to something else. Currently meant to represent how many 15 minute periods a task intersected
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import Foundation
import SwiftUI
import KWCore
import CoreData

public class CoreDataTasks {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
//
// CoreDataTaxonomyTermDefinitions.swift
// DLPrototype
// KWCore
//
// Created by Ryan Priebe on 2024-08-16.
// Copyright © 2024 YegCollective. All rights reserved.
//

import Foundation
import SwiftUI
import KWCore
import CoreData

public class CoreDataTaxonomyTermDefinitions {
open class CoreDataTaxonomyTermDefinitions {
public var moc: NSManagedObjectContext?

private let lock = NSLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
// Copyright © 2024 YegCollective. All rights reserved.
//

import Foundation
import SwiftUI
import KWCore
import CoreData

public class CoreDataTaxonomyTerms {
Expand Down
18 changes: 18 additions & 0 deletions KWCoreTests/KWCoreTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// KWCoreTests.swift
// KWCoreTests
//
// Created by Ryan Priebe on 2024-10-06.
// Copyright © 2024 YegCollective. All rights reserved.
//

import Testing
@testable import KWCore

struct KWCoreTests {

@Test func example() async throws {
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
}

}
Loading

0 comments on commit 1cf5c2d

Please sign in to comment.