Skip to content

Added SPM support #47

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
31 changes: 31 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// swift-tools-version: 5.9

import PackageDescription

let package = Package(
name: "TOPasscodeViewController",
platforms: [
.iOS(.v8)
],
products: [
.library(
name: "TOPasscodeViewController",
targets: [
"TOPasscodeViewController"
]
),
],
targets: [
.target(
name: "TOPasscodeViewController",
path: "TOPasscodeViewController",
cSettings: [
.headerSearchPath("Models"),
.headerSearchPath("Supporting"),
.headerSearchPath("Views/Main"),
.headerSearchPath("Views/Settings"),
.headerSearchPath("Views/Shared")
]
)
]
)
31 changes: 31 additions & 0 deletions Package@swift-5.8.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// swift-tools-version: 5.8

import PackageDescription

let package = Package(
name: "TOPasscodeViewController",
platforms: [
.iOS(.v8)
],
products: [
.library(
name: "TOPasscodeViewController",
targets: [
"TOPasscodeViewController"
]
),
],
targets: [
.target(
name: "TOPasscodeViewController",
path: "TOPasscodeViewController",
cSettings: [
.headerSearchPath("Models"),
.headerSearchPath("Supporting"),
.headerSearchPath("Views/Main"),
.headerSearchPath("Views/Settings"),
.headerSearchPath("Views/Shared")
]
)
]
)
3 changes: 2 additions & 1 deletion TOPasscodeViewController.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'TOPasscodeViewController'
s.version = '0.0.2'
s.version = '0.0.3'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = 'A view controller that prompts users to enter a passcode.'
s.homepage = 'https://github.com/TimOliver/TOPasscodeViewController'
Expand All @@ -9,5 +9,6 @@ Pod::Spec.new do |s|
s.platform = :ios, '8.3'

s.source_files = 'TOPasscodeViewController/**/*.{h,m}'
s.exclude_files = 'TOPasscodeViewController/include/**'
s.requires_arc = true
end
1 change: 1 addition & 0 deletions TOPasscodeViewController/include/TOPasscodeKeypadView.h
1 change: 1 addition & 0 deletions TOPasscodeViewController/include/TOPasscodeView.h
27 changes: 27 additions & 0 deletions TOPasscodeViewController/include/TOPasscodeViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// TOPasscodeViewController.h
//
//
// Created by Семён C. Осипов on 31.10.2023.
//

#import <Foundation/Foundation.h>

// This is to account for the many different ways this library gets imported.
#if __has_include(<TOPasscodeViewController/TOPasscodeViewController.h>)
#import <TOPasscodeViewController/TOPasscodeViewController.h>
#elif __has_include("../TOPasscodeViewController.h")
#import "../TOPasscodeViewController.h"
#else
#import "TOPasscodeViewController.h"
#endif

#if __has_include(<TOPasscodeViewController/TOPasscodeSettingsViewController.h>)
#import <TOPasscodeViewController/TOPasscodeSettingsViewController.h>
#elif __has_include("../TOPasscodeSettingsViewController.h")
#import "../TOPasscodeSettingsViewController.h"
#else
#import "TOPasscodeSettingsViewController.h"
#endif