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

Swift Package Manager Support #14

Open
wants to merge 3 commits into
base: master
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ playground.xcworkspace
# Package.pins
# Package.resolved
.build/
.swiftpm/

# CocoaPods
#
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import UIKit
import Bartinter

class ViewController: UIViewController {

Expand Down
2 changes: 1 addition & 1 deletion Bartinter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Pod::Spec.new do |s|
# Not including the public_header_files will make all headers public.
#

s.source_files = "Bartinter/Source/**/*.{h,m,swift}"
s.source_files = "Sources/**/*.{h,m,swift}"
#s.exclude_files = "Classes/Exclude"

# s.public_header_files = "Classes/**/*.h"
Expand Down
220 changes: 153 additions & 67 deletions Bartinter.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

111 changes: 111 additions & 0 deletions Bartinter.xcodeproj/xcshareddata/xcschemes/Bartinter-Example.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1030"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1967AF8A20D96F480043C0E7"
BuildableName = "Bartinter-Example.app"
BlueprintName = "Bartinter-Example"
ReferencedContainer = "container:Bartinter.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "195444A820E14E66004B03C5"
BuildableName = "BartinterTests.xctest"
BlueprintName = "BartinterTests"
ReferencedContainer = "container:Bartinter.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "19F320E420E16392008D1587"
BuildableName = "BartinterUITests.xctest"
BlueprintName = "BartinterUITests"
ReferencedContainer = "container:Bartinter.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1967AF8A20D96F480043C0E7"
BuildableName = "Bartinter-Example.app"
BlueprintName = "Bartinter-Example"
ReferencedContainer = "container:Bartinter.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1967AF8A20D96F480043C0E7"
BuildableName = "Bartinter-Example.app"
BlueprintName = "Bartinter-Example"
ReferencedContainer = "container:Bartinter.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1967AF8A20D96F480043C0E7"
BuildableName = "Bartinter-Example.app"
BlueprintName = "Bartinter-Example"
ReferencedContainer = "container:Bartinter.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
2 changes: 1 addition & 1 deletion BartinterTests/BartinterTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2018 Maxim Kotliar. All rights reserved.
//

@testable import Bartinter
import Bartinter
import XCTest

class BartinterTests: XCTestCase {
Expand Down
26 changes: 26 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "Bartinter",
platforms: [.iOS(.v9)],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "Bartinter",
targets: ["Bartinter"]),
],
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 which this package depends on.
.target(
name: "Bartinter",
dependencies: [])
]
)
25 changes: 22 additions & 3 deletions Podfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'Bartinter' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
target 'Bartinter-Example' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for Bartinter
# Pods for Bartinter-Example
pod 'Bartinter', :path => '.'

end

target 'BartinterTests' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for Bartinter-Example
pod 'Bartinter', :path => '.'

end

target 'BartinterUITests' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for Bartinter-Example
pod 'Bartinter', :path => '.'

end
17 changes: 15 additions & 2 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
PODFILE CHECKSUM: 0a3a58a389ef5f4669bc0aef870f6031ae9941d4
PODS:
- Bartinter (0.0.5)

COCOAPODS: 1.5.3
DEPENDENCIES:
- Bartinter (from `.`)

EXTERNAL SOURCES:
Bartinter:
:path: "."

SPEC CHECKSUMS:
Bartinter: 581325e1df966db27f6a131741931ca0a1df9ce1

PODFILE CHECKSUM: f8f99b32cba6040a497ea4874fddfde93f80ebe5

COCOAPODS: 1.7.5
23 changes: 23 additions & 0 deletions Pods/Local Podspecs/Bartinter.podspec.json

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

17 changes: 15 additions & 2 deletions Pods/Manifest.lock

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

Loading