From 19a2e2a53e067b7c23d61dfba30c60ea71621097 Mon Sep 17 00:00:00 2001 From: Eric Bariaux <375613+ebariaux@users.noreply.github.com> Date: Thu, 10 Apr 2025 12:17:39 +0200 Subject: [PATCH 1/2] Fix license header --- ORLib/ConfigManager.swift | 25 +++++++++++++----- ORLib/ConsoleProviders/BleProvider.swift | 25 +++++++++++++----- ORLib/ConsoleProviders/GeofenceProvider.swift | 20 ++++++++++++++ .../PushNotificationProvider.swift | 26 ++++++++++++++----- .../ConsoleProviders/QrScannerProvider.swift | 25 +++++++++++++----- ORLib/ConsoleProviders/StorageProvider.swift | 25 +++++++++++++----- ORLib/Models/ORAppInfo.swift | 25 +++++++++++++----- ORLib/Models/ORConsoleConfig.swift | 25 +++++++++++++----- ORLib/Models/ORLinkConfig.swift | 26 ++++++++++++++----- ORLib/Models/ORPushNotificationAction.swift | 25 +++++++++++++----- ORLib/Models/ORPushNotificationButton.swift | 25 +++++++++++++----- ORLib/Models/ProjectConfig.swift | 25 +++++++++++++----- ORLib/Network/ApiManager.swift | 25 +++++++++++++----- ORLib/Network/HttpApiManager.swift | 26 ++++++++++++++----- ORLib/Network/ORNotificationResource.swift | 25 +++++++++++++----- ORLib/ORLib.swift | 25 +++++++++++++----- ORLib/UI/ORTextInput.swift | 26 ++++++++++++++----- ORLib/UI/OrOfflineViewController.swift | 25 +++++++++++++----- ORLib/UI/QrScannerViewController.swift | 25 +++++++++++++----- ORLib/UI/ScannerOverlayPreviewLayer.swift | 25 +++++++++++++----- ORLib/Utils/ConnectivityChecker.swift | 25 +++++++++++++----- ORLib/Utils/UIColor+Utils.swift | 26 ++++++++++++++----- ORLib/Utils/UIViewController+Utils.swift | 20 ++++++++++++++ ORLib/Utils/ViewControllerFactory.swift | 25 +++++++++++++----- ORLib/Utils/WKWebView+Utils.swift | 20 ++++++++++++++ ORLib/Utils/Window+Utils.swift | 26 ++++++++++++++----- Tests/ConfigManagerTest.swift | 25 +++++++++++++----- Tests/FileApiManager.swift | 25 +++++++++++++----- Tests/Fixture.swift | 25 +++++++++++++----- 29 files changed, 554 insertions(+), 162 deletions(-) diff --git a/ORLib/ConfigManager.swift b/ORLib/ConfigManager.swift index 7626296..8604d85 100644 --- a/ORLib/ConfigManager.swift +++ b/ORLib/ConfigManager.swift @@ -1,9 +1,22 @@ -// -// ConfigManager.swift -// ORLib -// -// Created by Eric Bariaux on 31/08/2022. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import Foundation diff --git a/ORLib/ConsoleProviders/BleProvider.swift b/ORLib/ConsoleProviders/BleProvider.swift index 15fc163..6aff40c 100644 --- a/ORLib/ConsoleProviders/BleProvider.swift +++ b/ORLib/ConsoleProviders/BleProvider.swift @@ -1,9 +1,22 @@ -// -// BleProvider.swift -// ORLib -// -// Created by Michael Rademaker on 15/03/2023. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import UIKit import CoreBluetooth diff --git a/ORLib/ConsoleProviders/GeofenceProvider.swift b/ORLib/ConsoleProviders/GeofenceProvider.swift index feb24ab..cd783a5 100644 --- a/ORLib/ConsoleProviders/GeofenceProvider.swift +++ b/ORLib/ConsoleProviders/GeofenceProvider.swift @@ -1,3 +1,23 @@ +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + import UIKit import CoreLocation diff --git a/ORLib/ConsoleProviders/PushNotificationProvider.swift b/ORLib/ConsoleProviders/PushNotificationProvider.swift index 866683d..be027b2 100644 --- a/ORLib/ConsoleProviders/PushNotificationProvider.swift +++ b/ORLib/ConsoleProviders/PushNotificationProvider.swift @@ -1,10 +1,22 @@ -// -// PushNotificationProvider.swift -// Eindhoven -// -// Created by Michael Rademaker on 25/05/2018. -// Copyright © 2018 OpenRemote Inc. All rights reserved. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import UIKit import UserNotifications diff --git a/ORLib/ConsoleProviders/QrScannerProvider.swift b/ORLib/ConsoleProviders/QrScannerProvider.swift index 15e044a..2ac5d89 100644 --- a/ORLib/ConsoleProviders/QrScannerProvider.swift +++ b/ORLib/ConsoleProviders/QrScannerProvider.swift @@ -1,9 +1,22 @@ -// -// QrScannerProver.swift -// ORLib -// -// Created by Michael Rademaker on 22/11/2021. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import UIKit import AVFoundation diff --git a/ORLib/ConsoleProviders/StorageProvider.swift b/ORLib/ConsoleProviders/StorageProvider.swift index ea1d9e5..c84034b 100644 --- a/ORLib/ConsoleProviders/StorageProvider.swift +++ b/ORLib/ConsoleProviders/StorageProvider.swift @@ -1,9 +1,22 @@ -// -// StorageProvider.swift -// GoogleToolboxForMac -// -// Created by Michael Rademaker on 05/02/2019. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import UIKit diff --git a/ORLib/Models/ORAppInfo.swift b/ORLib/Models/ORAppInfo.swift index 682b9cf..1980a6c 100644 --- a/ORLib/Models/ORAppInfo.swift +++ b/ORLib/Models/ORAppInfo.swift @@ -1,9 +1,22 @@ -// -// ORAppInfo.swift -// ORLib -// -// Created by Eric Bariaux on 21/07/2022. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import Foundation diff --git a/ORLib/Models/ORConsoleConfig.swift b/ORLib/Models/ORConsoleConfig.swift index 0f1739a..d84e33c 100644 --- a/ORLib/Models/ORConsoleConfig.swift +++ b/ORLib/Models/ORConsoleConfig.swift @@ -1,9 +1,22 @@ -// -// ORConsoleConfig.swift -// ORLib -// -// Created by Eric Bariaux on 21/07/2022. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import Foundation diff --git a/ORLib/Models/ORLinkConfig.swift b/ORLib/Models/ORLinkConfig.swift index 7d9141a..c4e56db 100644 --- a/ORLib/Models/ORLinkConfig.swift +++ b/ORLib/Models/ORLinkConfig.swift @@ -1,10 +1,22 @@ -// -// ORLinkConfig.swift -// GenericApp -// -// Created by Michael Rademaker on 21/10/2020. -// Copyright © 2020 OpenRemote. All rights reserved. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import UIKit diff --git a/ORLib/Models/ORPushNotificationAction.swift b/ORLib/Models/ORPushNotificationAction.swift index 9b727f2..763a248 100644 --- a/ORLib/Models/ORPushNotificationAction.swift +++ b/ORLib/Models/ORPushNotificationAction.swift @@ -1,9 +1,22 @@ -// -// ORPushNotificationAction.swift -// ORLib -// -// Created by Michael Rademaker on 01/08/2018. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import UIKit diff --git a/ORLib/Models/ORPushNotificationButton.swift b/ORLib/Models/ORPushNotificationButton.swift index 30d50f8..5565cf1 100644 --- a/ORLib/Models/ORPushNotificationButton.swift +++ b/ORLib/Models/ORPushNotificationButton.swift @@ -1,9 +1,22 @@ -// -// ORPushNotificationButton.swift -// ORLib -// -// Created by Michael Rademaker on 07/08/2018. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import UIKit diff --git a/ORLib/Models/ProjectConfig.swift b/ORLib/Models/ProjectConfig.swift index 5895a85..3fbf782 100644 --- a/ORLib/Models/ProjectConfig.swift +++ b/ORLib/Models/ProjectConfig.swift @@ -1,9 +1,22 @@ -// -// ProjectConfig.swift -// ORLib -// -// Created by Eric Bariaux on 16/09/2022. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import Foundation diff --git a/ORLib/Network/ApiManager.swift b/ORLib/Network/ApiManager.swift index 09bca83..8f18a48 100644 --- a/ORLib/Network/ApiManager.swift +++ b/ORLib/Network/ApiManager.swift @@ -1,9 +1,22 @@ -// -// ApiManager.swift -// ORLib -// -// Created by Eric Bariaux on 31/08/2022. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import Foundation diff --git a/ORLib/Network/HttpApiManager.swift b/ORLib/Network/HttpApiManager.swift index 3defbbb..c157084 100644 --- a/ORLib/Network/HttpApiManager.swift +++ b/ORLib/Network/HttpApiManager.swift @@ -1,10 +1,22 @@ -// -// ApiManager.swift -// GenericApp -// -// Created by nuc on 17/06/2020. -// Copyright © 2020 OpenRemote. All rights reserved. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import UIKit diff --git a/ORLib/Network/ORNotificationResource.swift b/ORLib/Network/ORNotificationResource.swift index cee1fd5..951d135 100644 --- a/ORLib/Network/ORNotificationResource.swift +++ b/ORLib/Network/ORNotificationResource.swift @@ -1,9 +1,22 @@ -// -// ORNotificationResource.swift -// ORLib -// -// Created by Michael Rademaker on 08/08/2018. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import UIKit diff --git a/ORLib/ORLib.swift b/ORLib/ORLib.swift index 0e78f78..647e1ea 100644 --- a/ORLib/ORLib.swift +++ b/ORLib/ORLib.swift @@ -1,9 +1,22 @@ -// -// ORLib.swift -// ORLib -// -// Created by Michael Rademaker on 11/10/2021. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ class ORLib { diff --git a/ORLib/UI/ORTextInput.swift b/ORLib/UI/ORTextInput.swift index 3b54cd5..839d54a 100644 --- a/ORLib/UI/ORTextInput.swift +++ b/ORLib/UI/ORTextInput.swift @@ -1,10 +1,22 @@ -// -// ORTextInput.swift -// GenericApp -// -// Created by Michael Rademaker on 26/10/2020. -// Copyright © 2020 OpenRemote. All rights reserved. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import UIKit diff --git a/ORLib/UI/OrOfflineViewController.swift b/ORLib/UI/OrOfflineViewController.swift index 0d4162a..7275a02 100644 --- a/ORLib/UI/OrOfflineViewController.swift +++ b/ORLib/UI/OrOfflineViewController.swift @@ -1,9 +1,22 @@ -// -// OfflineViewController.swift -// ORLib -// -// Created by Michael Rademaker on 12/02/2024. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import UIKit diff --git a/ORLib/UI/QrScannerViewController.swift b/ORLib/UI/QrScannerViewController.swift index 24c4c49..2d21429 100644 --- a/ORLib/UI/QrScannerViewController.swift +++ b/ORLib/UI/QrScannerViewController.swift @@ -1,9 +1,22 @@ -// -// QrScannerViewController.swift -// ORLib -// -// Created by Michael Rademaker on 22/11/2021. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import AVFoundation import UIKit diff --git a/ORLib/UI/ScannerOverlayPreviewLayer.swift b/ORLib/UI/ScannerOverlayPreviewLayer.swift index 53c523c..d533f3a 100644 --- a/ORLib/UI/ScannerOverlayPreviewLayer.swift +++ b/ORLib/UI/ScannerOverlayPreviewLayer.swift @@ -1,9 +1,22 @@ -// -// ScannerOverlayPreviewLayer.swift -// ORLib -// -// Created by Michael Rademaker on 22/11/2021. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import AVFoundation import UIKit diff --git a/ORLib/Utils/ConnectivityChecker.swift b/ORLib/Utils/ConnectivityChecker.swift index e37b4a5..21ee1e1 100644 --- a/ORLib/Utils/ConnectivityChecker.swift +++ b/ORLib/Utils/ConnectivityChecker.swift @@ -1,9 +1,22 @@ -// -// ConnectivityChecker.swift -// ORLib -// -// Created by Michael Rademaker on 12/02/2024. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import Network diff --git a/ORLib/Utils/UIColor+Utils.swift b/ORLib/Utils/UIColor+Utils.swift index 395a66a..1bf356b 100644 --- a/ORLib/Utils/UIColor+Utils.swift +++ b/ORLib/Utils/UIColor+Utils.swift @@ -1,10 +1,22 @@ -// -// UIColor+Utils.swift -// GenericApp -// -// Created by Michael Rademaker on 26/10/2020. -// Copyright © 2020 OpenRemote. All rights reserved. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import Foundation import UIKit diff --git a/ORLib/Utils/UIViewController+Utils.swift b/ORLib/Utils/UIViewController+Utils.swift index b8d9cd4..4b3710d 100644 --- a/ORLib/Utils/UIViewController+Utils.swift +++ b/ORLib/Utils/UIViewController+Utils.swift @@ -1,3 +1,23 @@ +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + import UIKit extension UIViewController { diff --git a/ORLib/Utils/ViewControllerFactory.swift b/ORLib/Utils/ViewControllerFactory.swift index 2b43bea..1ec6089 100644 --- a/ORLib/Utils/ViewControllerFactory.swift +++ b/ORLib/Utils/ViewControllerFactory.swift @@ -1,9 +1,22 @@ -// -// ViewControllerFactory.swift -// ORLib -// -// Created by Michael Rademaker on 18/02/2024. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import UIKit diff --git a/ORLib/Utils/WKWebView+Utils.swift b/ORLib/Utils/WKWebView+Utils.swift index da8c9a3..b160493 100644 --- a/ORLib/Utils/WKWebView+Utils.swift +++ b/ORLib/Utils/WKWebView+Utils.swift @@ -1,3 +1,23 @@ +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + import WebKit extension WKWebView { diff --git a/ORLib/Utils/Window+Utils.swift b/ORLib/Utils/Window+Utils.swift index 8071330..e41db5a 100644 --- a/ORLib/Utils/Window+Utils.swift +++ b/ORLib/Utils/Window+Utils.swift @@ -1,10 +1,22 @@ -// -// Window+Utils.swift -// GenericApp -// -// Created by Michael Rademaker on 02/11/2020. -// Copyright © 2020 OpenRemote. All rights reserved. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import Foundation import UIKit diff --git a/Tests/ConfigManagerTest.swift b/Tests/ConfigManagerTest.swift index 9092abd..5b53421 100644 --- a/Tests/ConfigManagerTest.swift +++ b/Tests/ConfigManagerTest.swift @@ -1,9 +1,22 @@ -// -// ConfigManagerTest.swift -// Tests -// -// Created by Eric Bariaux on 31/08/2022. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import XCTest diff --git a/Tests/FileApiManager.swift b/Tests/FileApiManager.swift index 4bfea2a..f6f474f 100644 --- a/Tests/FileApiManager.swift +++ b/Tests/FileApiManager.swift @@ -1,9 +1,22 @@ -// -// FileApiManager.swift -// Tests -// -// Created by Eric Bariaux on 31/08/2022. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import Foundation @testable import ORLib diff --git a/Tests/Fixture.swift b/Tests/Fixture.swift index eb75839..b231778 100644 --- a/Tests/Fixture.swift +++ b/Tests/Fixture.swift @@ -1,9 +1,22 @@ -// -// Fixture.swift -// Tests -// -// Created by Eric Bariaux on 17/09/2022. -// +/* + * Copyright 2017, OpenRemote Inc. + * + * See the CONTRIBUTORS.txt file in the distribution for a + * full listing of individual contributors. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ import Foundation @testable import ORLib From 84b3a4dc2ee476d454488358b10cfb62d859e7b3 Mon Sep 17 00:00:00 2001 From: Eric Bariaux <375613+ebariaux@users.noreply.github.com> Date: Thu, 10 Apr 2025 16:17:09 +0200 Subject: [PATCH 2/2] Use latest license header version, see https://github.com/openremote/openremote/pull/1441 --- ORLib/ConfigManager.swift | 9 +++---- ORLib/ConsoleProviders/BleProvider.swift | 9 +++---- ORLib/ConsoleProviders/GeofenceProvider.swift | 9 +++---- .../PushNotificationProvider.swift | 9 +++---- .../ConsoleProviders/QrScannerProvider.swift | 9 +++---- ORLib/ConsoleProviders/StorageProvider.swift | 9 +++---- ORLib/Models/ORAppInfo.swift | 9 +++---- ORLib/Models/ORConsoleConfig.swift | 9 +++---- ORLib/Models/ORLinkConfig.swift | 9 +++---- ORLib/Models/ORPushNotificationAction.swift | 9 +++---- ORLib/Models/ORPushNotificationButton.swift | 9 +++---- ORLib/Models/ProjectConfig.swift | 9 +++---- ORLib/Network/ApiManager.swift | 9 +++---- ORLib/Network/HttpApiManager.swift | 9 +++---- ORLib/Network/ORNotificationResource.swift | 9 +++---- ORLib/ORLib.swift | 9 +++---- ORLib/UI/ErrorManager.swift | 9 +++---- ORLib/UI/ORTextInput.swift | 9 +++---- ORLib/UI/ORViewController.swift | 9 +++---- ORLib/UI/OrOfflineViewController.swift | 9 +++---- ORLib/UI/QrScannerViewController.swift | 9 +++---- ORLib/UI/ScannerOverlayPreviewLayer.swift | 9 +++---- ORLib/Utils/ConnectivityChecker.swift | 9 +++---- ORLib/Utils/Constants.swift | 9 +++---- ORLib/Utils/String+Utils.swift | 25 +++++++++++++------ ORLib/Utils/UIColor+Utils.swift | 9 +++---- ORLib/Utils/UIViewController+Utils.swift | 9 +++---- ORLib/Utils/ViewControllerFactory.swift | 9 +++---- ORLib/Utils/WKWebView+Utils.swift | 9 +++---- ORLib/Utils/Window+Utils.swift | 9 +++---- Tests/ConfigManagerTest.swift | 9 +++---- Tests/FileApiManager.swift | 9 +++---- Tests/Fixture.swift | 9 +++---- 33 files changed, 146 insertions(+), 167 deletions(-) diff --git a/ORLib/ConfigManager.swift b/ORLib/ConfigManager.swift index 8604d85..04951d4 100644 --- a/ORLib/ConfigManager.swift +++ b/ORLib/ConfigManager.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import Foundation diff --git a/ORLib/ConsoleProviders/BleProvider.swift b/ORLib/ConsoleProviders/BleProvider.swift index 6aff40c..50cdb32 100644 --- a/ORLib/ConsoleProviders/BleProvider.swift +++ b/ORLib/ConsoleProviders/BleProvider.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import UIKit diff --git a/ORLib/ConsoleProviders/GeofenceProvider.swift b/ORLib/ConsoleProviders/GeofenceProvider.swift index cd783a5..0361dcf 100644 --- a/ORLib/ConsoleProviders/GeofenceProvider.swift +++ b/ORLib/ConsoleProviders/GeofenceProvider.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import UIKit diff --git a/ORLib/ConsoleProviders/PushNotificationProvider.swift b/ORLib/ConsoleProviders/PushNotificationProvider.swift index be027b2..a2f9d70 100644 --- a/ORLib/ConsoleProviders/PushNotificationProvider.swift +++ b/ORLib/ConsoleProviders/PushNotificationProvider.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import UIKit diff --git a/ORLib/ConsoleProviders/QrScannerProvider.swift b/ORLib/ConsoleProviders/QrScannerProvider.swift index 2ac5d89..461b1f1 100644 --- a/ORLib/ConsoleProviders/QrScannerProvider.swift +++ b/ORLib/ConsoleProviders/QrScannerProvider.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import UIKit diff --git a/ORLib/ConsoleProviders/StorageProvider.swift b/ORLib/ConsoleProviders/StorageProvider.swift index c84034b..58beb10 100644 --- a/ORLib/ConsoleProviders/StorageProvider.swift +++ b/ORLib/ConsoleProviders/StorageProvider.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import UIKit diff --git a/ORLib/Models/ORAppInfo.swift b/ORLib/Models/ORAppInfo.swift index 1980a6c..5f60e69 100644 --- a/ORLib/Models/ORAppInfo.swift +++ b/ORLib/Models/ORAppInfo.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import Foundation diff --git a/ORLib/Models/ORConsoleConfig.swift b/ORLib/Models/ORConsoleConfig.swift index d84e33c..49b1d2e 100644 --- a/ORLib/Models/ORConsoleConfig.swift +++ b/ORLib/Models/ORConsoleConfig.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import Foundation diff --git a/ORLib/Models/ORLinkConfig.swift b/ORLib/Models/ORLinkConfig.swift index c4e56db..8db19bf 100644 --- a/ORLib/Models/ORLinkConfig.swift +++ b/ORLib/Models/ORLinkConfig.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import UIKit diff --git a/ORLib/Models/ORPushNotificationAction.swift b/ORLib/Models/ORPushNotificationAction.swift index 763a248..a20710b 100644 --- a/ORLib/Models/ORPushNotificationAction.swift +++ b/ORLib/Models/ORPushNotificationAction.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import UIKit diff --git a/ORLib/Models/ORPushNotificationButton.swift b/ORLib/Models/ORPushNotificationButton.swift index 5565cf1..7a833db 100644 --- a/ORLib/Models/ORPushNotificationButton.swift +++ b/ORLib/Models/ORPushNotificationButton.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import UIKit diff --git a/ORLib/Models/ProjectConfig.swift b/ORLib/Models/ProjectConfig.swift index 3fbf782..1083723 100644 --- a/ORLib/Models/ProjectConfig.swift +++ b/ORLib/Models/ProjectConfig.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import Foundation diff --git a/ORLib/Network/ApiManager.swift b/ORLib/Network/ApiManager.swift index 8f18a48..2ee5141 100644 --- a/ORLib/Network/ApiManager.swift +++ b/ORLib/Network/ApiManager.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import Foundation diff --git a/ORLib/Network/HttpApiManager.swift b/ORLib/Network/HttpApiManager.swift index c157084..144be5a 100644 --- a/ORLib/Network/HttpApiManager.swift +++ b/ORLib/Network/HttpApiManager.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import UIKit diff --git a/ORLib/Network/ORNotificationResource.swift b/ORLib/Network/ORNotificationResource.swift index 951d135..d6fd9c7 100644 --- a/ORLib/Network/ORNotificationResource.swift +++ b/ORLib/Network/ORNotificationResource.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import UIKit diff --git a/ORLib/ORLib.swift b/ORLib/ORLib.swift index 647e1ea..93ebe82 100644 --- a/ORLib/ORLib.swift +++ b/ORLib/ORLib.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ class ORLib { diff --git a/ORLib/UI/ErrorManager.swift b/ORLib/UI/ErrorManager.swift index 64cedbf..0cee2c2 100644 --- a/ORLib/UI/ErrorManager.swift +++ b/ORLib/UI/ErrorManager.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import Foundation diff --git a/ORLib/UI/ORTextInput.swift b/ORLib/UI/ORTextInput.swift index 839d54a..7d3f94a 100644 --- a/ORLib/UI/ORTextInput.swift +++ b/ORLib/UI/ORTextInput.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import UIKit diff --git a/ORLib/UI/ORViewController.swift b/ORLib/UI/ORViewController.swift index f170deb..0f69109 100644 --- a/ORLib/UI/ORViewController.swift +++ b/ORLib/UI/ORViewController.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import Foundation diff --git a/ORLib/UI/OrOfflineViewController.swift b/ORLib/UI/OrOfflineViewController.swift index 7275a02..37612bd 100644 --- a/ORLib/UI/OrOfflineViewController.swift +++ b/ORLib/UI/OrOfflineViewController.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import UIKit diff --git a/ORLib/UI/QrScannerViewController.swift b/ORLib/UI/QrScannerViewController.swift index 2d21429..d7faee6 100644 --- a/ORLib/UI/QrScannerViewController.swift +++ b/ORLib/UI/QrScannerViewController.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import AVFoundation diff --git a/ORLib/UI/ScannerOverlayPreviewLayer.swift b/ORLib/UI/ScannerOverlayPreviewLayer.swift index d533f3a..fb172e9 100644 --- a/ORLib/UI/ScannerOverlayPreviewLayer.swift +++ b/ORLib/UI/ScannerOverlayPreviewLayer.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import AVFoundation diff --git a/ORLib/Utils/ConnectivityChecker.swift b/ORLib/Utils/ConnectivityChecker.swift index 21ee1e1..eda7801 100644 --- a/ORLib/Utils/ConnectivityChecker.swift +++ b/ORLib/Utils/ConnectivityChecker.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import Network diff --git a/ORLib/Utils/Constants.swift b/ORLib/Utils/Constants.swift index 51b4414..0774b6b 100644 --- a/ORLib/Utils/Constants.swift +++ b/ORLib/Utils/Constants.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import Foundation diff --git a/ORLib/Utils/String+Utils.swift b/ORLib/Utils/String+Utils.swift index b9ea1bf..0bef895 100644 --- a/ORLib/Utils/String+Utils.swift +++ b/ORLib/Utils/String+Utils.swift @@ -1,10 +1,21 @@ -// -// String+Utils.swift -// GenericApp -// -// Created by Michael Rademaker on 26/10/2020. -// Copyright © 2020 OpenRemote. All rights reserved. -// +/* + * Copyright 2025, OpenRemote Inc. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ import Foundation diff --git a/ORLib/Utils/UIColor+Utils.swift b/ORLib/Utils/UIColor+Utils.swift index 1bf356b..6066096 100644 --- a/ORLib/Utils/UIColor+Utils.swift +++ b/ORLib/Utils/UIColor+Utils.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import Foundation diff --git a/ORLib/Utils/UIViewController+Utils.swift b/ORLib/Utils/UIViewController+Utils.swift index 4b3710d..a78a323 100644 --- a/ORLib/Utils/UIViewController+Utils.swift +++ b/ORLib/Utils/UIViewController+Utils.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import UIKit diff --git a/ORLib/Utils/ViewControllerFactory.swift b/ORLib/Utils/ViewControllerFactory.swift index 1ec6089..f0212d8 100644 --- a/ORLib/Utils/ViewControllerFactory.swift +++ b/ORLib/Utils/ViewControllerFactory.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import UIKit diff --git a/ORLib/Utils/WKWebView+Utils.swift b/ORLib/Utils/WKWebView+Utils.swift index b160493..b790850 100644 --- a/ORLib/Utils/WKWebView+Utils.swift +++ b/ORLib/Utils/WKWebView+Utils.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import WebKit diff --git a/ORLib/Utils/Window+Utils.swift b/ORLib/Utils/Window+Utils.swift index e41db5a..09a7fb4 100644 --- a/ORLib/Utils/Window+Utils.swift +++ b/ORLib/Utils/Window+Utils.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import Foundation diff --git a/Tests/ConfigManagerTest.swift b/Tests/ConfigManagerTest.swift index 5b53421..c573614 100644 --- a/Tests/ConfigManagerTest.swift +++ b/Tests/ConfigManagerTest.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import XCTest diff --git a/Tests/FileApiManager.swift b/Tests/FileApiManager.swift index f6f474f..a8ceb6f 100644 --- a/Tests/FileApiManager.swift +++ b/Tests/FileApiManager.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import Foundation diff --git a/Tests/Fixture.swift b/Tests/Fixture.swift index b231778..16bacb4 100644 --- a/Tests/Fixture.swift +++ b/Tests/Fixture.swift @@ -1,8 +1,5 @@ /* - * Copyright 2017, OpenRemote Inc. - * - * See the CONTRIBUTORS.txt file in the distribution for a - * full listing of individual contributors. + * Copyright 2025, OpenRemote Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -15,7 +12,9 @@ * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later */ import Foundation