license headers

pull/536/head
Lucas Nogueira 2 years ago
parent 12043261cc
commit 9f1bec6a0f
No known key found for this signature in database
GPG Key ID: 7C32FCA95C8C95D7

@ -21,6 +21,7 @@ const ignore = [
"dist-js", "dist-js",
".svelte-kit", ".svelte-kit",
"api-iife.js", "api-iife.js",
".build"
]; ];
async function checkFile(file) { async function checkFile(file) {
@ -70,7 +71,9 @@ async function checkFile(file) {
async function check(src) { async function check(src) {
const missingHeader = []; const missingHeader = [];
for (const entry of fs.readdirSync(src, { withFileTypes: true })) { for (const entry of fs.readdirSync(src, {
withFileTypes: true
})) {
const p = path.join(src, entry.name); const p = path.join(src, entry.name);
if (entry.isSymbolicLink() || ignore.includes(entry.name)) { if (entry.isSymbolicLink() || ignore.includes(entry.name)) {
@ -110,7 +113,8 @@ if (files.length > 0) {
run(); run();
} else { } else {
check(path.resolve(new URL(import.meta.url).pathname, "../../..")).then( check(path.resolve(new URL(
import.meta.url).pathname, "../../..")).then(
(missing) => { (missing) => {
if (missing.length > 0) { if (missing.length > 0) {
console.log(missing.join("\n")); console.log(missing.join("\n"));
@ -118,4 +122,4 @@ if (files.length > 0) {
} }
}, },
); );
} }

@ -1,3 +1,7 @@
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
package app.tauri.barcodescanner package app.tauri.barcodescanner
import androidx.test.platform.app.InstrumentationRegistry import androidx.test.platform.app.InstrumentationRegistry

@ -1,3 +1,7 @@
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
package app.tauri.barcodescanner package app.tauri.barcodescanner
import android.Manifest import android.Manifest

@ -1,3 +1,7 @@
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
package app.tauri.barcodescanner package app.tauri.barcodescanner
import android.content.Context import android.content.Context

@ -1,3 +1,7 @@
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
package app.tauri.barcodescanner package app.tauri.barcodescanner
import org.junit.Test import org.junit.Test

@ -1,3 +1,7 @@
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
use std::process::exit; use std::process::exit;
fn main() { fn main() {

@ -1,3 +1,7 @@
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
import { invoke } from "@tauri-apps/api/tauri"; import { invoke } from "@tauri-apps/api/tauri";
export type PermissionState = "granted" | "denied" | "default"; export type PermissionState = "granted" | "denied" | "default";

@ -1,4 +1,8 @@
// swift-tools-version:5.3 // swift-tools-version:5.3
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
// The swift-tools-version declares the minimum version of Swift required to build this package. // The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription import PackageDescription

@ -1,3 +1,7 @@
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
import AVFoundation import AVFoundation
import Tauri import Tauri
import UIKit import UIKit

@ -1,3 +1,7 @@
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
import AVFoundation import AVFoundation
import UIKit import UIKit

@ -1,3 +1,7 @@
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
import AVFoundation import AVFoundation
func createCaptureDeviceInput( func createCaptureDeviceInput(

@ -1,8 +1,13 @@
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
import XCTest import XCTest
@testable import ExamplePlugin @testable import ExamplePlugin
final class ExamplePluginTests: XCTestCase { final class ExamplePluginTests: XCTestCase {
func testExample() throws { func testExample() throws {
let plugin = ExamplePlugin() let plugin = ExamplePlugin()
} }
} }

Loading…
Cancel
Save