Skip to content

Commit 088a225

Browse files
committed
initial
0 parents  commit 088a225

File tree

7 files changed

+122
-0
lines changed

7 files changed

+122
-0
lines changed

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Packages
2+
.build
3+
xcuserdata
4+
*.xcodeproj
5+
DerivedData/
6+
.DS_Store
7+
db.sqlite
8+
.swiftpm
9+
.env
10+
.env.development
11+
.env.testing

LICENSE

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
MIT License
2+
3+
Copyright (c) 2018-2022 Tibor Bödecs
4+
5+
Permission is hereby granted, free of charge, to any person
6+
obtaining a copy of this software and associated documentation
7+
files (the "Software"), to deal in the Software without
8+
restriction, including without limitation the rights to use,
9+
copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the
11+
Software is furnished to do so, subject to the following
12+
conditions:
13+
14+
The above copyright notice and this permission notice shall be
15+
included in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24+
OTHER DEALINGS IN THE SOFTWARE.

Package.resolved

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"object": {
3+
"pins": [
4+
{
5+
"package": "feather-objects",
6+
"repositoryURL": "https://github.com/feathercms/feather-objects",
7+
"state": {
8+
"branch": "main",
9+
"revision": "169386ce3bf664fa768186467e4aec1caaee0fcf",
10+
"version": null
11+
}
12+
}
13+
]
14+
},
15+
"version": 1
16+
}

Package.swift

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// swift-tools-version:5.5
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "analytics-objects",
6+
platforms: [
7+
.macOS(.v10_15)
8+
],
9+
products: [
10+
.library(name: "AnalyticsObjects", targets: ["AnalyticsObjects"]),
11+
],
12+
dependencies: [
13+
.package(url: "https://github.com/feathercms/feather-objects", .branch("main")),
14+
],
15+
targets: [
16+
.target(name: "AnalyticsObjects", dependencies: [
17+
.product(name: "FeatherObjects", package: "feather-objects"),
18+
]),
19+
]
20+
)

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Analytics objects
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//
2+
// File.swift
3+
//
4+
//
5+
// Created by Tibor Bodecs on 2021. 12. 26..
6+
//
7+
8+
import FeatherObjects
9+
10+
public enum Analytics: FeatherObjectModule {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
//
2+
// File.swift
3+
//
4+
//
5+
// Created by Tibor Bodecs on 2021. 12. 26..
6+
//
7+
8+
import Foundation
9+
import FeatherObjects
10+
11+
public extension Analytics {
12+
13+
enum Log: FeatherObjectModel {
14+
public typealias Module = Analytics
15+
}
16+
}
17+
18+
public extension Analytics.Log {
19+
20+
// MARK: -
21+
22+
struct List: Codable {
23+
public var id: UUID
24+
25+
public init(id: UUID) {
26+
self.id = id
27+
}
28+
}
29+
30+
// MARK: -
31+
32+
struct Detail: Codable {
33+
public var id: UUID
34+
35+
public init(id: UUID) {
36+
self.id = id
37+
}
38+
}
39+
40+
}

0 commit comments

Comments
 (0)