Skip to content

Commit 517767c

Browse files
Move files and add Package.swift
1 parent 3f65b2e commit 517767c

29 files changed

+320
-251
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ DerivedData
1616
.idea/
1717
*.hmap
1818
*.xccheckout
19+
.build/

Diff for: MQTTClient/MQTTClient.xcodeproj/project.pbxproj

+232-208
Large diffs are not rendered by default.

Diff for: MQTTClient/MQTTClient/Minimal/MQTTClient.h

-42
This file was deleted.

Diff for: MQTTClient/MQTTClient/Minimal/include/MQTTClient.h

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
//
2+
// MQTTClient.h
3+
// MQTTClient
4+
//
5+
// Created by Christoph Krey on 13.01.14.
6+
// Copyright © 2013-2017 Christoph Krey. All rights reserved.
7+
//
8+
9+
/**
10+
Include this file to use MQTTClient classes in your application
11+
12+
@author Christoph Krey [email protected]
13+
@see http://mqtt.org
14+
*/
15+
16+
#import <Foundation/Foundation.h>
17+
18+
#import "MQTTSession.h"
19+
#import "MQTTDecoder.h"
20+
#import "MQTTSessionLegacy.h"
21+
#import "MQTTProperties.h"
22+
#import "MQTTMessage.h"
23+
#import "MQTTTransport.h"
24+
#import "MQTTCFSocketTransport.h"
25+
#import "MQTTCoreDataPersistence.h"
26+
#import "MQTTSSLSecurityPolicyTransport.h"
27+
#import "MQTTLog.h"
28+
29+
#if __has_include("MQTTSessionManager.h")
30+
#import "MQTTSessionManager.h"
31+
#endif
32+
33+
#if __has_include("MQTTWebsocketTransport.h")
34+
#import "MQTTWebsocketTransport.h"
35+
#endif
36+
37+
//! Project version number for MQTTClient.
38+
FOUNDATION_EXPORT double MQTTClientVersionNumber;
39+
40+
//! Project version string for MQTTClient&lt;.
41+
FOUNDATION_EXPORT const unsigned char MQTTClientVersionString[];
42+

Diff for: MQTTClient/MQTTClientTests/MQTTCoreDataPersistenceTests.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import <XCTest/XCTest.h>
10-
#import <MQTTClient/MQTTCoreDataPersistence.h>
10+
#import "MQTTCoreDataPersistence.h"
1111

1212
@interface MQTTCoreDataPersistenceTests : XCTestCase
1313

Diff for: Package.swift

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// swift-tools-version:5.3
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "MQTTClient",
8+
platforms: [
9+
.iOS(.v9),
10+
.tvOS(.v9),
11+
.macOS(.v10_10)
12+
],
13+
products: [
14+
// Products define the executables and libraries a package produces, and make them visible to other packages.
15+
.library(name: "MQTTClient", targets: ["MQTTClient-Manager", "MQTTClient-Minimal"]),
16+
.library(name: "MQTTClient-Minimal", targets: ["MQTTClient-Minimal"]),
17+
],
18+
dependencies: [
19+
// Dependencies declare other packages that this package depends on.
20+
// .package(url: /* package url */, from: "1.0.0"),
21+
],
22+
targets: [
23+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
24+
// Targets can depend on other targets in this package, and on products in packages this package depends on.
25+
.target(
26+
name: "MQTTClient-Minimal",
27+
dependencies: [],
28+
path: "MQTTClient/MQTTClient/Minimal",
29+
publicHeadersPath: "include"
30+
),
31+
.target(
32+
name: "MQTTClient-Manager",
33+
dependencies: ["MQTTClient-Minimal"],
34+
path: "MQTTClient/MQTTClient/SessionManager",
35+
publicHeadersPath: "include"
36+
),
37+
// .target(
38+
// name: "MQTTClient-Websocket",
39+
// dependencies: ["MQTTClient-Minimal"],
40+
// path: "MQTTClient/MQTTClient/Websocket",
41+
// publicHeadersPath: "include"
42+
// ),
43+
]
44+
)

0 commit comments

Comments
 (0)