Skip to content
Open
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
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,13 @@ Carthage/Build
# `pod install` in .travis.yml
#
# Pods/

# Swift Package Manager
/.build
/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
Package.resolved
2 changes: 2 additions & 0 deletions Bootpay/Classes/config/BootpayBuildConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@


#if os(macOS)
import AppKit
public typealias BTNavigationController = NSPageController
public typealias BTView = NSView
public typealias BTViewController = NSViewController
#elseif os(iOS)
import UIKit
public typealias BTNavigationController = UINavigationController
public typealias BTView = UIView
public typealias BTViewController = UIViewController
Expand Down
2 changes: 2 additions & 0 deletions Bootpay/Classes/dialog/BootpayController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Taesup Yoon on 2021/05/12.
//

import UIKit

class BootpayController: BTViewController {
let bootpayWebView = BootpayWebView()

Expand Down
2 changes: 1 addition & 1 deletion Bootpay/Classes/extension/UIView.Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Taesup Yoon on 2022/06/03.
//

import Foundation
import UIKit


extension UIView {
Expand Down
2 changes: 2 additions & 0 deletions Bootpay/Classes/helper/DeviceHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Taesup Yoon on 2021/12/09.
//

import UIKit

enum DeviceHelper {
case nativeMac
case iPad
Expand Down
2 changes: 2 additions & 0 deletions Bootpay/Classes/models/BootExtra.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
//
// Created by Taesup Yoon on 2021/05/10.
//

import Foundation
import ObjectMapper


Expand Down
1 change: 1 addition & 0 deletions Bootpay/Classes/models/BootItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Taesup Yoon on 2021/05/10.
//

import Foundation
import ObjectMapper

public class BootItem: NSObject, Mappable, Codable {
Expand Down
1 change: 1 addition & 0 deletions Bootpay/Classes/models/BootOneStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Taesup Yoon on 2021/05/10.
//

import Foundation
import ObjectMapper

public class BootOneStore: NSObject, Mappable, Codable {
Expand Down
1 change: 1 addition & 0 deletions Bootpay/Classes/models/BootStatItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Taesup Yoon on 2021/05/10.
//

import Foundation
import ObjectMapper

public class BootpayStatItem: NSObject, Mappable, Codable {
Expand Down
1 change: 1 addition & 0 deletions Bootpay/Classes/models/BootUser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Taesup Yoon on 2021/05/10.
//

import Foundation
import ObjectMapper

public class BootUser: NSObject, Mappable, Codable {
Expand Down
1 change: 1 addition & 0 deletions Bootpay/Classes/models/Payload.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Taesup Yoon on 2021/05/10.
//

import Foundation
import ObjectMapper

open class Payload: NSObject, Mappable, Codable {
Expand Down
35 changes: 35 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "Bootpay",
platforms: [
.macOS(.v12), .iOS(.v14),
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "Bootpay",
targets: ["Bootpay"]),
],
dependencies: [
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", .upToNextMajor(from: "1.8.0")),
.package(url: "https://github.com/tristanhimmelman/ObjectMapper.git", .upToNextMajor(from: "4.4.0")),
.package(url: "https://github.com/ninjaprox/NVActivityIndicatorView.git", .upToNextMajor(from: "5.2.0")),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "Bootpay",
dependencies: [
.product(name: "CryptoSwift", package: "CryptoSwift"),
.product(name: "ObjectMapper", package: "ObjectMapper"),
.product(name: "NVActivityIndicatorView", package: "NVActivityIndicatorView"),
],
path: "Bootpay/Classes"
),
]
)