Skip to content

Commit a16a3db

Browse files
committed
License header
1 parent 4372ef8 commit a16a3db

29 files changed

+365
-1
lines changed

.swiftformat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@
2121
--wraparguments before-first
2222
--wrapparameters before-first
2323
--wrapcollections before-first
24+
25+
#file header
26+
--header "//===----------------------------------------------------------------------===//\n//\n// This source file is part of the MQTTNIO project\n//\n// Copyright (c) {created.year}-{year} Adam Fowler\n// Licensed under Apache License v2.0\n//\n// See LICENSE.txt for license information\n//\n// SPDX-License-Identifier: Apache-2.0\n//\n//===----------------------------------------------------------------------===//"

Sources/MQTTNIO/AsyncAwaitSupport/MQTTClient+async.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the MQTTNIO project
4+
//
5+
// Copyright (c) 2020-2021 Adam Fowler
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
//
10+
// SPDX-License-Identifier: Apache-2.0
11+
//
12+
//===----------------------------------------------------------------------===//
13+
114
#if compiler(>=5.5) && canImport(_Concurrency)
215

316
import Foundation

Sources/MQTTNIO/AsyncAwaitSupport/MQTTClientV5+async.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the MQTTNIO project
4+
//
5+
// Copyright (c) 2020-2021 Adam Fowler
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
//
10+
// SPDX-License-Identifier: Apache-2.0
11+
//
12+
//===----------------------------------------------------------------------===//
13+
114
#if compiler(>=5.5) && canImport(_Concurrency)
215

316
import Foundation

Sources/MQTTNIO/ChannelHandlers/MQTTMessageDecoder.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the MQTTNIO project
4+
//
5+
// Copyright (c) 2020-2021 Adam Fowler
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
//
10+
// SPDX-License-Identifier: Apache-2.0
11+
//
12+
//===----------------------------------------------------------------------===//
13+
114
import Logging
215
import NIO
316

Sources/MQTTNIO/ChannelHandlers/MQTTMessageHandler.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the MQTTNIO project
4+
//
5+
// Copyright (c) 2020-2021 Adam Fowler
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
//
10+
// SPDX-License-Identifier: Apache-2.0
11+
//
12+
//===----------------------------------------------------------------------===//
13+
114
import Logging
215
import NIO
316

Sources/MQTTNIO/ChannelHandlers/MQTTTaskHandler.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the MQTTNIO project
4+
//
5+
// Copyright (c) 2020-2021 Adam Fowler
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
//
10+
// SPDX-License-Identifier: Apache-2.0
11+
//
12+
//===----------------------------------------------------------------------===//
13+
114
import NIO
215

316
/// Task handler.

Sources/MQTTNIO/ChannelHandlers/PingreqHandler.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the MQTTNIO project
4+
//
5+
// Copyright (c) 2020-2021 Adam Fowler
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
//
10+
// SPDX-License-Identifier: Apache-2.0
11+
//
12+
//===----------------------------------------------------------------------===//
13+
114
import NIO
215

316
/// Channel handler for sending PINGREQ messages to keep connect alive

Sources/MQTTNIO/ChannelHandlers/WebSocketHandler.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the MQTTNIO project
4+
//
5+
// Copyright (c) 2020-2021 Adam Fowler
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
//
10+
// SPDX-License-Identifier: Apache-2.0
11+
//
12+
//===----------------------------------------------------------------------===//
13+
114
import NIO
215
import NIOWebSocket
316

Sources/MQTTNIO/ChannelHandlers/WebSocketInitialRequest.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the MQTTNIO project
4+
//
5+
// Copyright (c) 2020-2021 Adam Fowler
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
//
10+
// SPDX-License-Identifier: Apache-2.0
11+
//
12+
//===----------------------------------------------------------------------===//
13+
114
import NIO
215
import NIOHTTP1
316

Sources/MQTTNIO/MQTTClient.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the MQTTNIO project
4+
//
5+
// Copyright (c) 2020-2021 Adam Fowler
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
//
10+
// SPDX-License-Identifier: Apache-2.0
11+
//
12+
//===----------------------------------------------------------------------===//
13+
114
import Dispatch
215
import Logging
316
#if canImport(Network)

0 commit comments

Comments
 (0)