diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7826be1d..fcbc9a30 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,3 +9,13 @@ jobs: name: Build for testing - run: ./scripts/test-without-building.sh name: Test + + check-headers: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v1 + - name: Check headers + run: | + chmod +x ./check_headers.sh + ./check_headers.sh + shell: bash diff --git a/OptimoveCore/Sources/Classes/JSON/Initialization.swift b/OptimoveCore/Sources/Classes/third_party/JSON/Initialization.swift similarity index 100% rename from OptimoveCore/Sources/Classes/JSON/Initialization.swift rename to OptimoveCore/Sources/Classes/third_party/JSON/Initialization.swift diff --git a/OptimoveCore/Sources/Classes/JSON/JSON.swift b/OptimoveCore/Sources/Classes/third_party/JSON/JSON.swift similarity index 100% rename from OptimoveCore/Sources/Classes/JSON/JSON.swift rename to OptimoveCore/Sources/Classes/third_party/JSON/JSON.swift diff --git a/OptimoveCore/Sources/Classes/JSON/Merging.swift b/OptimoveCore/Sources/Classes/third_party/JSON/Merging.swift similarity index 100% rename from OptimoveCore/Sources/Classes/JSON/Merging.swift rename to OptimoveCore/Sources/Classes/third_party/JSON/Merging.swift diff --git a/OptimoveCore/Sources/Classes/JSON/Querying.swift b/OptimoveCore/Sources/Classes/third_party/JSON/Querying.swift similarity index 100% rename from OptimoveCore/Sources/Classes/JSON/Querying.swift rename to OptimoveCore/Sources/Classes/third_party/JSON/Querying.swift diff --git a/OptimoveNotificationServiceExtension/Sources/OptimoveNotificationExtension.h b/OptimoveNotificationServiceExtension/Sources/OptimoveNotificationExtension.h index 6b523a5a..827944b7 100644 --- a/OptimoveNotificationServiceExtension/Sources/OptimoveNotificationExtension.h +++ b/OptimoveNotificationServiceExtension/Sources/OptimoveNotificationExtension.h @@ -1,9 +1,4 @@ -// -// OptimoveNotificationExtension.h -// OptimoveNotificationExtension -// -// Created by Christopher Wyllie on 21/04/2022. -// +// Copyright © 2022 Optimove. All rights reserved. #import diff --git a/OptimoveNotificationServiceExtension/Tests/Sources/OptimoveNotificationExtensionTests.swift b/OptimoveNotificationServiceExtension/Tests/Sources/OptimoveNotificationExtensionTests.swift index c2098d81..8d64105f 100644 --- a/OptimoveNotificationServiceExtension/Tests/Sources/OptimoveNotificationExtensionTests.swift +++ b/OptimoveNotificationServiceExtension/Tests/Sources/OptimoveNotificationExtensionTests.swift @@ -1,9 +1,4 @@ -// -// OptimoveNotificationExtensionTests.swift -// OptimoveNotificationExtensionTests -// -// Created by Christopher Wyllie on 21/04/2022. -// +// Copyright © 2022 Optimove. All rights reserved. import XCTest @testable import OptimoveNotificationServiceExtension diff --git a/OptimoveSDK/Sources/Classes/Optimobile/Optimobile+Location.swift b/OptimoveSDK/Sources/Classes/Optimobile/Optimobile+Location.swift index 0cafa84b..9ed3902a 100644 --- a/OptimoveSDK/Sources/Classes/Optimobile/Optimobile+Location.swift +++ b/OptimoveSDK/Sources/Classes/Optimobile/Optimobile+Location.swift @@ -1,4 +1,4 @@ - +// Copyright © 2022 Optimove. All rights reserved. import Foundation import CoreLocation diff --git a/OptimoveSDK/Sources/Classes/Optimobile/CwlSysctl.swift b/OptimoveSDK/Sources/Classes/Optimobile/third_party/CwlSysctl.swift similarity index 100% rename from OptimoveSDK/Sources/Classes/Optimobile/CwlSysctl.swift rename to OptimoveSDK/Sources/Classes/Optimobile/third_party/CwlSysctl.swift diff --git a/check_headers.sh b/check_headers.sh index a122623d..7d5d515e 100755 --- a/check_headers.sh +++ b/check_headers.sh @@ -11,7 +11,8 @@ options=( git grep "${options[@]}" -- \ '*.'{h,m,mm,swift} \ - ':(exclude)**/third_party/**' + ':(exclude)**/third_party/**' \ + ':(exclude)Package.swift' if [[ $? == 0 ]]; then echo "ERROR: Missing copyright notices in the files above. Please fix." exit 1