Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support building via SPM #14

Merged
merged 1 commit into from
Aug 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Framezilla.xcodeproj/FramezillaTests_Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</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>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
25 changes: 25 additions & 0 deletions Framezilla.xcodeproj/Framezilla_Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</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>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
1,716 changes: 971 additions & 745 deletions Framezilla.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>FILEHEADER</key>
<string>
// Copyright © ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
//</string>
<key>IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded</key>
<false/>
</dict>
</plist>
</plist>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,41 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1030"
LastUpgradeVersion = "9999"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Framezilla::Framezilla"
BuildableName = "Framezilla.framework"
BlueprintName = "Framezilla"
ReferencedContainer = "container:Framezilla.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
codeCoverageEnabled = "YES"
onlyGenerateCoverageForSpecifiedTargets = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
<CodeCoverageTargets>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "11FB41311D844D2B00700A40"
BuildableName = "Framezilla.framework"
BlueprintName = "Framezilla iOS"
ReferencedContainer = "container:Framezilla.xcodeproj">
</BuildableReference>
</CodeCoverageTargets>
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "115972131D8450F500BC5C20"
BlueprintIdentifier = "Framezilla::FramezillaTests"
BuildableName = "FramezillaTests.xctest"
BlueprintName = "FramezillaTests"
ReferencedContainer = "container:Framezilla.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -47,8 +50,6 @@
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
28 changes: 27 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "Framezilla"
name: "Framezilla",
platforms: [.iOS(.v10)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "Framezilla",
targets: ["Framezilla"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "Framezilla",
dependencies: [],
path: "Sources"),
.testTarget(
name: "FramezillaTests",
dependencies: ["Framezilla"],
path: "Tests"),
]
)
2 changes: 2 additions & 0 deletions Sources/Extensions/Array+Stack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//
//

import UIKit

public enum StackAxis: Int {
case horizontal
case vertical
Expand Down
2 changes: 2 additions & 0 deletions Sources/Extensions/HasRelations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// Copyright © 2016 Nikita. All rights reserved.
//

import UIKit

public protocol HasElement {
var element: ElementType { get }
}
Expand Down
1 change: 1 addition & 0 deletions Sources/Extensions/Maker+Configurations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import UIKit

postfix operator <<
postfix operator >>
Expand Down
1 change: 1 addition & 0 deletions Sources/Extensions/UIView+Installer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import Foundation
import ObjectiveC
import UIKit

public let DEFAULT_STATE = "DEFAULT STATE"

Expand Down
1 change: 1 addition & 0 deletions Sources/Extensions/UIView+Keyboard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//

import Foundation
import UIKit

public extension UIView {

Expand Down
8 changes: 4 additions & 4 deletions Sources/Maker/Maker+Edges.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ extension Maker {
///
/// - returns: `Maker` instance for chaining relations.
@discardableResult public func edges(top: Number? = nil, left: Number? = nil, bottom: Number? = nil, right: Number? = nil) -> Self {
apply(self.top, top)
apply(self.left, left)
apply(self.bottom, bottom)
apply(self.right, right)
_ = apply(self.top, top)
_ = apply(self.left, left)
_ = apply(self.bottom, bottom)
_ = apply(self.right, right)
return self
}

Expand Down
1 change: 1 addition & 0 deletions Sources/Maker/Maker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import UIKit

public enum Size {
case width
Expand Down
1 change: 1 addition & 0 deletions Sources/MakerHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import UIKit

extension Maker {

Expand Down
1 change: 1 addition & 0 deletions Sources/Number.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import struct CoreGraphics.CGFloat

public protocol Number {
var value: CGFloat { get }
Expand Down
1 change: 1 addition & 0 deletions Sources/Parameters.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import UIKit

final class ValueParameter {
let value: CGFloat
Expand Down
19 changes: 0 additions & 19 deletions Sources/Supporting/Framezilla.h

This file was deleted.

Loading