From 5914fb9f3666ff862518cf37a6d29e1f0641bb53 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sun, 21 May 2023 12:56:10 -0700 Subject: [PATCH] chore: add license headers (#384) * feat: check for license headers * add headers * format --- .github/sync-to-mirrors.sh | 3 + .github/workflows/audit-javascript.yml | 4 + .github/workflows/audit-rust.yml | 4 + .github/workflows/check-license-header.yml | 28 +++++ .github/workflows/covector-status.yml | 4 + .../covector-version-or-publish-v2.yml | 4 + .../workflows/covector-version-or-publish.yml | 4 + .github/workflows/lint-javascript.yml | 4 + .github/workflows/lint-rust.yml | 4 + .github/workflows/sync.yml | 4 + .github/workflows/test-rust.yml | 4 + .scripts/ci/check-license-header.js | 118 ++++++++++++++++++ examples/api/.setup-cross.sh | 3 + plugins/app/src/commands.rs | 4 + plugins/app/src/lib.rs | 4 + plugins/authenticator/guest-js/index.ts | 4 + plugins/authenticator/src/auth.rs | 2 +- plugins/authenticator/src/error.rs | 4 + plugins/authenticator/src/lib.rs | 2 +- plugins/authenticator/src/u2f.rs | 2 +- plugins/autostart/guest-js/index.ts | 2 +- plugins/autostart/src/lib.rs | 2 +- plugins/cli/src/config.rs | 4 + plugins/cli/src/error.rs | 4 + plugins/cli/src/lib.rs | 4 + .../java/ExampleInstrumentedTest.kt | 4 + .../android/src/main/java/ClipboardPlugin.kt | 4 + .../android/src/test/java/ExampleUnitTest.kt | 4 + plugins/clipboard/build.rs | 4 + plugins/clipboard/ios/Package.swift | 4 +- .../ios/Sources/ClipboardPlugin.swift | 4 + .../ios/Tests/PluginTests/PluginTests.swift | 4 + .../java/ExampleInstrumentedTest.kt | 4 + .../android/src/test/java/ExampleUnitTest.kt | 4 + plugins/dialog/build.rs | 4 + plugins/dialog/ios/Package.swift | 4 +- plugins/dialog/ios/Sources/DialogPlugin.swift | 4 + .../ios/Sources/FilePickerController.swift | 4 + .../ios/Tests/PluginTests/PluginTests.swift | 4 + plugins/fs/src/commands.rs | 4 + plugins/fs/src/config.rs | 4 + plugins/fs/src/error.rs | 4 + plugins/fs/src/watcher.rs | 4 + plugins/global-shortcut/src/error.rs | 4 + plugins/global-shortcut/src/lib.rs | 4 + plugins/http/src/commands/client.rs | 4 + plugins/http/src/commands/mod.rs | 4 + plugins/http/src/config.rs | 4 + plugins/http/src/error.rs | 4 + plugins/http/src/lib.rs | 4 + plugins/localhost/src/lib.rs | 2 +- plugins/log/guest-js/index.ts | 4 + plugins/log/ios/Package.swift | 4 +- plugins/log/ios/Sources/LogPlugin.swift | 4 + plugins/log/src/lib.rs | 2 +- .../java/ExampleInstrumentedTest.kt | 4 + .../android/src/main/java/AssetUtils.kt | 4 + .../android/src/main/java/ChannelManager.kt | 4 + .../android/src/main/java/Notification.kt | 4 + .../src/main/java/NotificationAction.kt | 4 + .../src/main/java/NotificationAttachment.kt | 4 + .../src/main/java/NotificationPlugin.kt | 4 + .../src/main/java/NotificationSchedule.kt | 4 + .../src/main/java/NotificationStorage.kt | 4 + .../src/main/java/TauriNotificationManager.kt | 4 + .../android/src/test/java/ExampleUnitTest.kt | 4 + plugins/notification/build.rs | 4 + plugins/notification/ios/Package.swift | 6 +- .../ios/Sources/Notification.swift | 4 + .../ios/Sources/NotificationCategory.swift | 4 + .../ios/Sources/NotificationHandler.swift | 4 + .../ios/Sources/NotificationManager.swift | 4 + .../ios/Sources/NotificationPlugin.swift | 4 + .../ios/Tests/PluginTests/PluginTests.swift | 4 + plugins/notification/src/init.js | 4 + plugins/os/src/commands.rs | 4 + plugins/os/src/error.rs | 4 + plugins/os/src/lib.rs | 4 + plugins/persisted-scope/src/lib.rs | 2 +- plugins/positioner/guest-js/index.ts | 2 + plugins/positioner/src/ext.rs | 2 + plugins/positioner/src/lib.rs | 2 + plugins/process/src/commands.rs | 4 + plugins/process/src/lib.rs | 4 + plugins/shell/src/commands.rs | 4 + plugins/shell/src/config.rs | 4 + plugins/shell/src/error.rs | 4 + plugins/shell/src/lib.rs | 4 + .../examples/vanilla/src-tauri/build.rs | 4 + .../examples/vanilla/src-tauri/src/main.rs | 4 + plugins/single-instance/src/lib.rs | 4 + .../src/platform_impl/linux.rs | 4 + .../src/platform_impl/macos.rs | 4 + .../src/platform_impl/windows.rs | 4 + plugins/sql/guest-js/index.ts | 4 + plugins/sql/src/decode/mod.rs | 4 + plugins/sql/src/decode/mysql.rs | 4 + plugins/sql/src/decode/postgres.rs | 4 + plugins/sql/src/decode/sqlite.rs | 4 + plugins/sql/src/lib.rs | 2 +- plugins/sql/src/plugin.rs | 2 +- plugins/store/guest-js/index.ts | 2 +- plugins/store/src/error.rs | 2 +- plugins/store/src/lib.rs | 2 +- plugins/store/src/store.rs | 2 +- plugins/stronghold/guest-js/index.ts | 4 + plugins/stronghold/src/lib.rs | 4 + plugins/stronghold/src/stronghold.rs | 4 + plugins/updater/build.rs | 4 + plugins/updater/guest-js/index.ts | 4 + plugins/updater/src/commands.rs | 4 + plugins/updater/src/config.rs | 4 + plugins/updater/src/lib.rs | 4 + plugins/upload/guest-js/index.ts | 4 + plugins/upload/src/lib.rs | 2 +- .../examples/svelte-app/src-tauri/build.rs | 4 + .../examples/svelte-app/src-tauri/src/main.rs | 4 + .../examples/svelte-app/src/app.d.ts | 4 + .../examples/svelte-app/svelte.config.js | 4 + .../examples/svelte-app/vite.config.ts | 4 + plugins/websocket/guest-js/index.ts | 4 + plugins/websocket/src/lib.rs | 4 + plugins/window-state/guest-js/index.ts | 4 + plugins/window-state/src/cmd.rs | 4 + plugins/window-state/src/lib.rs | 2 +- plugins/window/build.rs | 4 + plugins/window/src/desktop_commands.rs | 4 + plugins/window/src/lib.rs | 4 + shared/rollup.config.mjs | 4 + .../java/ExampleInstrumentedTest.kt | 4 + .../android/src/main/java/ExamplePlugin.kt | 4 + .../android/src/test/java/ExampleUnitTest.kt | 4 + shared/template/build.rs | 4 + shared/template/guest-js/index.ts | 3 + shared/template/ios/Package.swift | 4 +- .../template/ios/Sources/ExamplePlugin.swift | 4 + .../ios/Tests/PluginTests/PluginTests.swift | 4 + 137 files changed, 626 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/check-license-header.yml create mode 100644 .scripts/ci/check-license-header.js diff --git a/.github/sync-to-mirrors.sh b/.github/sync-to-mirrors.sh index 52d4c27f..4baf55d2 100755 --- a/.github/sync-to-mirrors.sh +++ b/.github/sync-to-mirrors.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright 2019-2023 Tauri Programme within The Commons Conservancy +# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: MIT ## Environment used by this script: # diff --git a/.github/workflows/audit-javascript.yml b/.github/workflows/audit-javascript.yml index 19a7f4c8..618ebf59 100644 --- a/.github/workflows/audit-javascript.yml +++ b/.github/workflows/audit-javascript.yml @@ -1,3 +1,7 @@ +# Copyright 2019-2023 Tauri Programme within The Commons Conservancy +# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: MIT + name: Audit JavaScript on: diff --git a/.github/workflows/audit-rust.yml b/.github/workflows/audit-rust.yml index 1ec0225e..c85d3712 100644 --- a/.github/workflows/audit-rust.yml +++ b/.github/workflows/audit-rust.yml @@ -1,3 +1,7 @@ +# Copyright 2019-2023 Tauri Programme within The Commons Conservancy +# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: MIT + name: Audit Rust on: diff --git a/.github/workflows/check-license-header.yml b/.github/workflows/check-license-header.yml new file mode 100644 index 00000000..15e9f2cb --- /dev/null +++ b/.github/workflows/check-license-header.yml @@ -0,0 +1,28 @@ +# Copyright 2019-2023 Tauri Programme within The Commons Conservancy +# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: MIT + +name: Check generated files + +on: + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dorny/paths-filter@v2 + id: filter + with: + list-files: shell + filters: | + added: + - added: '**' + - name: check header license on new files + if: ${{ steps.filter.outputs.added == 'true' }} + run: node .scripts/ci/check-license-header.js ${{ steps.filter.outputs.added_files }} diff --git a/.github/workflows/covector-status.yml b/.github/workflows/covector-status.yml index cb5a344a..abe20e35 100644 --- a/.github/workflows/covector-status.yml +++ b/.github/workflows/covector-status.yml @@ -1,3 +1,7 @@ +# Copyright 2019-2023 Tauri Programme within The Commons Conservancy +# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: MIT + name: covector status on: [pull_request] diff --git a/.github/workflows/covector-version-or-publish-v2.yml b/.github/workflows/covector-version-or-publish-v2.yml index 104e0ef4..63b14e97 100644 --- a/.github/workflows/covector-version-or-publish-v2.yml +++ b/.github/workflows/covector-version-or-publish-v2.yml @@ -1,3 +1,7 @@ +# Copyright 2019-2023 Tauri Programme within The Commons Conservancy +# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: MIT + name: version or publish on: diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index b5c4ab7d..f10247e0 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -1,3 +1,7 @@ +# Copyright 2019-2023 Tauri Programme within The Commons Conservancy +# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: MIT + name: version or publish on: diff --git a/.github/workflows/lint-javascript.yml b/.github/workflows/lint-javascript.yml index c2c0a1d3..02b96541 100644 --- a/.github/workflows/lint-javascript.yml +++ b/.github/workflows/lint-javascript.yml @@ -1,3 +1,7 @@ +# Copyright 2019-2023 Tauri Programme within The Commons Conservancy +# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: MIT + name: Lint JavaScript on: diff --git a/.github/workflows/lint-rust.yml b/.github/workflows/lint-rust.yml index 0f51d2f7..db0a8cfb 100644 --- a/.github/workflows/lint-rust.yml +++ b/.github/workflows/lint-rust.yml @@ -1,3 +1,7 @@ +# Copyright 2019-2023 Tauri Programme within The Commons Conservancy +# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: MIT + name: Lint Rust on: diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 82da46fc..b34ccc7c 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -1,3 +1,7 @@ +# Copyright 2019-2023 Tauri Programme within The Commons Conservancy +# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: MIT + name: Sync on: diff --git a/.github/workflows/test-rust.yml b/.github/workflows/test-rust.yml index 254fb503..e0c49a85 100644 --- a/.github/workflows/test-rust.yml +++ b/.github/workflows/test-rust.yml @@ -1,3 +1,7 @@ +# Copyright 2019-2023 Tauri Programme within The Commons Conservancy +# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: MIT + name: Test Rust on: diff --git a/.scripts/ci/check-license-header.js b/.scripts/ci/check-license-header.js new file mode 100644 index 00000000..5e629258 --- /dev/null +++ b/.scripts/ci/check-license-header.js @@ -0,0 +1,118 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + +import fs from "fs"; +import path from "path"; +import readline from "readline"; + +const header = `Copyright 2019-2023 Tauri Programme within The Commons Conservancy +SPDX-License-Identifier: Apache-2.0 +SPDX-License-Identifier: MIT`; +const ignoredLicense = "// Copyright 2021 Jonas Kruckenberg"; + +const extensions = [".rs", ".js", ".ts", ".yml", ".swift", ".kt"]; +const ignore = [ + "target", + "templates", + "node_modules", + "gen", + "dist", + "dist-js", + ".svelte-kit", + "api-iife.js", +]; + +async function checkFile(file) { + if (extensions.some((e) => file.endsWith(e))) { + const fileStream = fs.createReadStream(file); + const rl = readline.createInterface({ + input: fileStream, + crlfDelay: Infinity, + }); + + let contents = ``; + let i = 0; + for await (let line of rl) { + // ignore empty lines, allow shebang, swift-tools-version and bundler license + if ( + line.length === 0 || + line.startsWith("#!") || + line.startsWith("// swift-tools-version:") || + line === ignoredLicense + ) { + continue; + } + + // strip comment marker + if (line.startsWith("// ")) { + line = line.substring(3); + } else if (line.startsWith("# ")) { + line = line.substring(2); + } + + contents += line; + if (++i === 3) { + break; + } + contents += "\n"; + } + if (contents !== header) { + return true; + } + } + return false; +} + +async function check(src) { + const missingHeader = []; + + for (const entry of fs.readdirSync(src, { withFileTypes: true })) { + const p = path.join(src, entry.name); + + if (entry.isSymbolicLink() || ignore.includes(entry.name)) { + continue; + } + + if (entry.isDirectory()) { + const missing = await check(p); + missingHeader.push(...missing); + } else { + const isMissing = await checkFile(p); + if (isMissing) { + missingHeader.push(p); + } + } + } + + return missingHeader; +} + +const [_bin, _script, ...files] = process.argv; + +if (files.length > 0) { + async function run() { + const missing = []; + for (const f of files) { + const isMissing = await checkFile(f); + if (isMissing) { + missing.push(f); + } + } + if (missing.length > 0) { + console.log(missing.join("\n")); + process.exit(1); + } + } + + run(); +} else { + check(path.resolve(new URL(import.meta.url).pathname, "../../..")).then( + (missing) => { + if (missing.length > 0) { + console.log(missing.join("\n")); + process.exit(1); + } + } + ); +} diff --git a/examples/api/.setup-cross.sh b/examples/api/.setup-cross.sh index cd563694..a9e4f867 100644 --- a/examples/api/.setup-cross.sh +++ b/examples/api/.setup-cross.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright 2019-2023 Tauri Programme within The Commons Conservancy +# SPDX-License-Identifier: Apache-2.0 +# SPDX-License-Identifier: MIT export ICONS_VOLUME="$(realpath icons)" export DIST_VOLUME="$(realpath dist)" diff --git a/plugins/app/src/commands.rs b/plugins/app/src/commands.rs index 1871473b..ebe06f76 100644 --- a/plugins/app/src/commands.rs +++ b/plugins/app/src/commands.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use tauri::{AppHandle, Runtime}; #[tauri::command] diff --git a/plugins/app/src/lib.rs b/plugins/app/src/lib.rs index 790ed9d2..fc97c050 100644 --- a/plugins/app/src/lib.rs +++ b/plugins/app/src/lib.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use tauri::{ plugin::{Builder, TauriPlugin}, Runtime, diff --git a/plugins/authenticator/guest-js/index.ts b/plugins/authenticator/guest-js/index.ts index 8b4a533c..f8db2008 100644 --- a/plugins/authenticator/guest-js/index.ts +++ b/plugins/authenticator/guest-js/index.ts @@ -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"; export class Authenticator { diff --git a/plugins/authenticator/src/auth.rs b/plugins/authenticator/src/auth.rs index c334173d..34bc332b 100644 --- a/plugins/authenticator/src/auth.rs +++ b/plugins/authenticator/src/auth.rs @@ -1,4 +1,4 @@ -// Copyright 2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/authenticator/src/error.rs b/plugins/authenticator/src/error.rs index 87a393d2..8cc5df00 100644 --- a/plugins/authenticator/src/error.rs +++ b/plugins/authenticator/src/error.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use serde::{Serialize, Serializer}; #[derive(Debug, thiserror::Error)] diff --git a/plugins/authenticator/src/lib.rs b/plugins/authenticator/src/lib.rs index e1b488e0..b46f44c6 100644 --- a/plugins/authenticator/src/lib.rs +++ b/plugins/authenticator/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/authenticator/src/u2f.rs b/plugins/authenticator/src/u2f.rs index e8bd5de9..12f1d6c3 100644 --- a/plugins/authenticator/src/u2f.rs +++ b/plugins/authenticator/src/u2f.rs @@ -1,4 +1,4 @@ -// Copyright 2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/autostart/guest-js/index.ts b/plugins/autostart/guest-js/index.ts index 0d43fe6e..b3100708 100644 --- a/plugins/autostart/guest-js/index.ts +++ b/plugins/autostart/guest-js/index.ts @@ -1,4 +1,4 @@ -// Copyright 2019-2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/autostart/src/lib.rs b/plugins/autostart/src/lib.rs index cfdd5ccc..2ecc4609 100644 --- a/plugins/autostart/src/lib.rs +++ b/plugins/autostart/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2019-2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/cli/src/config.rs b/plugins/cli/src/config.rs index f00b8370..f7f36a0e 100644 --- a/plugins/cli/src/config.rs +++ b/plugins/cli/src/config.rs @@ -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::collections::HashMap; use serde::Deserialize; diff --git a/plugins/cli/src/error.rs b/plugins/cli/src/error.rs index 8dee7f66..b4bd2872 100644 --- a/plugins/cli/src/error.rs +++ b/plugins/cli/src/error.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use serde::{Serialize, Serializer}; #[derive(Debug, thiserror::Error)] diff --git a/plugins/cli/src/lib.rs b/plugins/cli/src/lib.rs index 25795c01..8243dff3 100644 --- a/plugins/cli/src/lib.rs +++ b/plugins/cli/src/lib.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use tauri::{ plugin::{Builder, PluginApi, TauriPlugin}, AppHandle, Manager, Runtime, State, diff --git a/plugins/clipboard/android/src/androidTest/java/ExampleInstrumentedTest.kt b/plugins/clipboard/android/src/androidTest/java/ExampleInstrumentedTest.kt index 2938f836..02e6984b 100644 --- a/plugins/clipboard/android/src/androidTest/java/ExampleInstrumentedTest.kt +++ b/plugins/clipboard/android/src/androidTest/java/ExampleInstrumentedTest.kt @@ -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.clipboard import androidx.test.platform.app.InstrumentationRegistry diff --git a/plugins/clipboard/android/src/main/java/ClipboardPlugin.kt b/plugins/clipboard/android/src/main/java/ClipboardPlugin.kt index ece3e45e..8f622251 100644 --- a/plugins/clipboard/android/src/main/java/ClipboardPlugin.kt +++ b/plugins/clipboard/android/src/main/java/ClipboardPlugin.kt @@ -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.clipboard import android.R.attr.value diff --git a/plugins/clipboard/android/src/test/java/ExampleUnitTest.kt b/plugins/clipboard/android/src/test/java/ExampleUnitTest.kt index 6a889763..282700f2 100644 --- a/plugins/clipboard/android/src/test/java/ExampleUnitTest.kt +++ b/plugins/clipboard/android/src/test/java/ExampleUnitTest.kt @@ -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.clipboard import org.junit.Test diff --git a/plugins/clipboard/build.rs b/plugins/clipboard/build.rs index 86ac3f0a..743096a6 100644 --- a/plugins/clipboard/build.rs +++ b/plugins/clipboard/build.rs @@ -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; fn main() { diff --git a/plugins/clipboard/ios/Package.swift b/plugins/clipboard/ios/Package.swift index e38a8bb6..42c3de03 100644 --- a/plugins/clipboard/ios/Package.swift +++ b/plugins/clipboard/ios/Package.swift @@ -1,5 +1,7 @@ // swift-tools-version:5.3 -// The swift-tools-version declares the minimum version of Swift required to build this package. +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT import PackageDescription diff --git a/plugins/clipboard/ios/Sources/ClipboardPlugin.swift b/plugins/clipboard/ios/Sources/ClipboardPlugin.swift index dda6177b..5f84aa65 100644 --- a/plugins/clipboard/ios/Sources/ClipboardPlugin.swift +++ b/plugins/clipboard/ios/Sources/ClipboardPlugin.swift @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import UIKit import WebKit import Tauri diff --git a/plugins/clipboard/ios/Tests/PluginTests/PluginTests.swift b/plugins/clipboard/ios/Tests/PluginTests/PluginTests.swift index f1657dea..e5d54b38 100644 --- a/plugins/clipboard/ios/Tests/PluginTests/PluginTests.swift +++ b/plugins/clipboard/ios/Tests/PluginTests/PluginTests.swift @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import XCTest @testable import ClipboardPlugin diff --git a/plugins/dialog/android/src/androidTest/java/ExampleInstrumentedTest.kt b/plugins/dialog/android/src/androidTest/java/ExampleInstrumentedTest.kt index cebbd46c..6c9d837e 100644 --- a/plugins/dialog/android/src/androidTest/java/ExampleInstrumentedTest.kt +++ b/plugins/dialog/android/src/androidTest/java/ExampleInstrumentedTest.kt @@ -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.dialog import androidx.test.platform.app.InstrumentationRegistry diff --git a/plugins/dialog/android/src/test/java/ExampleUnitTest.kt b/plugins/dialog/android/src/test/java/ExampleUnitTest.kt index b7d61c6a..00369a3f 100644 --- a/plugins/dialog/android/src/test/java/ExampleUnitTest.kt +++ b/plugins/dialog/android/src/test/java/ExampleUnitTest.kt @@ -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.dialog import org.junit.Test diff --git a/plugins/dialog/build.rs b/plugins/dialog/build.rs index 86ac3f0a..743096a6 100644 --- a/plugins/dialog/build.rs +++ b/plugins/dialog/build.rs @@ -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; fn main() { diff --git a/plugins/dialog/ios/Package.swift b/plugins/dialog/ios/Package.swift index 6bc96852..45a58a43 100644 --- a/plugins/dialog/ios/Package.swift +++ b/plugins/dialog/ios/Package.swift @@ -1,5 +1,7 @@ // swift-tools-version:5.3 -// The swift-tools-version declares the minimum version of Swift required to build this package. +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT import PackageDescription diff --git a/plugins/dialog/ios/Sources/DialogPlugin.swift b/plugins/dialog/ios/Sources/DialogPlugin.swift index 0970c056..ef1dff71 100644 --- a/plugins/dialog/ios/Sources/DialogPlugin.swift +++ b/plugins/dialog/ios/Sources/DialogPlugin.swift @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import UIKit import MobileCoreServices import PhotosUI diff --git a/plugins/dialog/ios/Sources/FilePickerController.swift b/plugins/dialog/ios/Sources/FilePickerController.swift index fc636473..b2752f0b 100644 --- a/plugins/dialog/ios/Sources/FilePickerController.swift +++ b/plugins/dialog/ios/Sources/FilePickerController.swift @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import UIKit import MobileCoreServices import PhotosUI diff --git a/plugins/dialog/ios/Tests/PluginTests/PluginTests.swift b/plugins/dialog/ios/Tests/PluginTests/PluginTests.swift index 4f8e9ace..99992ce4 100644 --- a/plugins/dialog/ios/Tests/PluginTests/PluginTests.swift +++ b/plugins/dialog/ios/Tests/PluginTests/PluginTests.swift @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import XCTest @testable import ExamplePlugin diff --git a/plugins/fs/src/commands.rs b/plugins/fs/src/commands.rs index 168f9629..59255796 100644 --- a/plugins/fs/src/commands.rs +++ b/plugins/fs/src/commands.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use crate::Scope; use anyhow::Context; use serde::{Deserialize, Serialize, Serializer}; diff --git a/plugins/fs/src/config.rs b/plugins/fs/src/config.rs index 837e3a40..f6c9b235 100644 --- a/plugins/fs/src/config.rs +++ b/plugins/fs/src/config.rs @@ -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::path::PathBuf; use serde::Deserialize; diff --git a/plugins/fs/src/error.rs b/plugins/fs/src/error.rs index e627b458..effc017f 100644 --- a/plugins/fs/src/error.rs +++ b/plugins/fs/src/error.rs @@ -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::path::PathBuf; use serde::{Serialize, Serializer}; diff --git a/plugins/fs/src/watcher.rs b/plugins/fs/src/watcher.rs index 79cb34a2..647342c7 100644 --- a/plugins/fs/src/watcher.rs +++ b/plugins/fs/src/watcher.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use notify::{Config, Event, RecommendedWatcher, RecursiveMode, Watcher}; use notify_debouncer_mini::{new_debouncer, DebounceEventResult, Debouncer}; use serde::Deserialize; diff --git a/plugins/global-shortcut/src/error.rs b/plugins/global-shortcut/src/error.rs index f9bf2460..8157000c 100644 --- a/plugins/global-shortcut/src/error.rs +++ b/plugins/global-shortcut/src/error.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use serde::{Serialize, Serializer}; #[derive(Debug, thiserror::Error)] diff --git a/plugins/global-shortcut/src/lib.rs b/plugins/global-shortcut/src/lib.rs index 4266de21..6ac38f45 100644 --- a/plugins/global-shortcut/src/lib.rs +++ b/plugins/global-shortcut/src/lib.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + #![cfg(not(any(target_os = "android", target_os = "ios")))] use std::{ diff --git a/plugins/http/src/commands/client.rs b/plugins/http/src/commands/client.rs index 997dee05..07614a53 100644 --- a/plugins/http/src/commands/client.rs +++ b/plugins/http/src/commands/client.rs @@ -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::{collections::HashMap, path::PathBuf, time::Duration}; use reqwest::{header, Method, Url}; diff --git a/plugins/http/src/commands/mod.rs b/plugins/http/src/commands/mod.rs index 5e9d4c58..94c71324 100644 --- a/plugins/http/src/commands/mod.rs +++ b/plugins/http/src/commands/mod.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use tauri::{path::SafePathBuf, AppHandle, Runtime, State}; use tauri_plugin_fs::FsExt; diff --git a/plugins/http/src/config.rs b/plugins/http/src/config.rs index d6b5eba0..4e9d7317 100644 --- a/plugins/http/src/config.rs +++ b/plugins/http/src/config.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use reqwest::Url; use serde::Deserialize; diff --git a/plugins/http/src/error.rs b/plugins/http/src/error.rs index f1234cbb..8b49b0f7 100644 --- a/plugins/http/src/error.rs +++ b/plugins/http/src/error.rs @@ -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::path::PathBuf; use reqwest::Url; diff --git a/plugins/http/src/lib.rs b/plugins/http/src/lib.rs index 348d26a2..afee9b54 100644 --- a/plugins/http/src/lib.rs +++ b/plugins/http/src/lib.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use config::{Config, HttpAllowlistScope}; pub use reqwest as client; use tauri::{ diff --git a/plugins/localhost/src/lib.rs b/plugins/localhost/src/lib.rs index 11a0b75c..e34a9ace 100644 --- a/plugins/localhost/src/lib.rs +++ b/plugins/localhost/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2019-2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/log/guest-js/index.ts b/plugins/log/guest-js/index.ts index f7b8e7ef..54fb6e28 100644 --- a/plugins/log/guest-js/index.ts +++ b/plugins/log/guest-js/index.ts @@ -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 { listen, UnlistenFn } from "@tauri-apps/api/event"; diff --git a/plugins/log/ios/Package.swift b/plugins/log/ios/Package.swift index 4f736418..4afbbbdb 100644 --- a/plugins/log/ios/Package.swift +++ b/plugins/log/ios/Package.swift @@ -1,5 +1,7 @@ // swift-tools-version:5.3 -// The swift-tools-version declares the minimum version of Swift required to build this package. +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT import PackageDescription diff --git a/plugins/log/ios/Sources/LogPlugin.swift b/plugins/log/ios/Sources/LogPlugin.swift index 954f357e..cefdc858 100644 --- a/plugins/log/ios/Sources/LogPlugin.swift +++ b/plugins/log/ios/Sources/LogPlugin.swift @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import UIKit import Tauri import SwiftRs diff --git a/plugins/log/src/lib.rs b/plugins/log/src/lib.rs index cbb6dd29..64489f46 100644 --- a/plugins/log/src/lib.rs +++ b/plugins/log/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/notification/android/src/androidTest/java/ExampleInstrumentedTest.kt b/plugins/notification/android/src/androidTest/java/ExampleInstrumentedTest.kt index 814a39af..88ede7f4 100644 --- a/plugins/notification/android/src/androidTest/java/ExampleInstrumentedTest.kt +++ b/plugins/notification/android/src/androidTest/java/ExampleInstrumentedTest.kt @@ -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.notification import androidx.test.platform.app.InstrumentationRegistry diff --git a/plugins/notification/android/src/main/java/AssetUtils.kt b/plugins/notification/android/src/main/java/AssetUtils.kt index c97cd528..fafccf7a 100644 --- a/plugins/notification/android/src/main/java/AssetUtils.kt +++ b/plugins/notification/android/src/main/java/AssetUtils.kt @@ -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.notification import android.annotation.SuppressLint diff --git a/plugins/notification/android/src/main/java/ChannelManager.kt b/plugins/notification/android/src/main/java/ChannelManager.kt index cf68e666..2ae740e5 100644 --- a/plugins/notification/android/src/main/java/ChannelManager.kt +++ b/plugins/notification/android/src/main/java/ChannelManager.kt @@ -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.notification import android.app.NotificationChannel diff --git a/plugins/notification/android/src/main/java/Notification.kt b/plugins/notification/android/src/main/java/Notification.kt index 3839807b..9076fa8f 100644 --- a/plugins/notification/android/src/main/java/Notification.kt +++ b/plugins/notification/android/src/main/java/Notification.kt @@ -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.notification import android.content.ContentResolver diff --git a/plugins/notification/android/src/main/java/NotificationAction.kt b/plugins/notification/android/src/main/java/NotificationAction.kt index c1a964b4..d50d0fe9 100644 --- a/plugins/notification/android/src/main/java/NotificationAction.kt +++ b/plugins/notification/android/src/main/java/NotificationAction.kt @@ -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.notification import app.tauri.Logger diff --git a/plugins/notification/android/src/main/java/NotificationAttachment.kt b/plugins/notification/android/src/main/java/NotificationAttachment.kt index 1cc35e89..56a13818 100644 --- a/plugins/notification/android/src/main/java/NotificationAttachment.kt +++ b/plugins/notification/android/src/main/java/NotificationAttachment.kt @@ -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.notification import app.tauri.plugin.JSObject diff --git a/plugins/notification/android/src/main/java/NotificationPlugin.kt b/plugins/notification/android/src/main/java/NotificationPlugin.kt index f87bcf17..2b6043dc 100644 --- a/plugins/notification/android/src/main/java/NotificationPlugin.kt +++ b/plugins/notification/android/src/main/java/NotificationPlugin.kt @@ -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.notification import android.Manifest diff --git a/plugins/notification/android/src/main/java/NotificationSchedule.kt b/plugins/notification/android/src/main/java/NotificationSchedule.kt index 89edbc9d..64c83486 100644 --- a/plugins/notification/android/src/main/java/NotificationSchedule.kt +++ b/plugins/notification/android/src/main/java/NotificationSchedule.kt @@ -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.notification import android.annotation.SuppressLint diff --git a/plugins/notification/android/src/main/java/NotificationStorage.kt b/plugins/notification/android/src/main/java/NotificationStorage.kt index bfddfcc2..4d55a9a4 100644 --- a/plugins/notification/android/src/main/java/NotificationStorage.kt +++ b/plugins/notification/android/src/main/java/NotificationStorage.kt @@ -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.notification import android.content.Context diff --git a/plugins/notification/android/src/main/java/TauriNotificationManager.kt b/plugins/notification/android/src/main/java/TauriNotificationManager.kt index 79e67908..2f948069 100644 --- a/plugins/notification/android/src/main/java/TauriNotificationManager.kt +++ b/plugins/notification/android/src/main/java/TauriNotificationManager.kt @@ -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.notification import android.annotation.SuppressLint diff --git a/plugins/notification/android/src/test/java/ExampleUnitTest.kt b/plugins/notification/android/src/test/java/ExampleUnitTest.kt index 46693a0f..134a27d4 100644 --- a/plugins/notification/android/src/test/java/ExampleUnitTest.kt +++ b/plugins/notification/android/src/test/java/ExampleUnitTest.kt @@ -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.notification import org.junit.Test diff --git a/plugins/notification/build.rs b/plugins/notification/build.rs index 86ac3f0a..743096a6 100644 --- a/plugins/notification/build.rs +++ b/plugins/notification/build.rs @@ -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; fn main() { diff --git a/plugins/notification/ios/Package.swift b/plugins/notification/ios/Package.swift index bfcaf338..1a2c4801 100644 --- a/plugins/notification/ios/Package.swift +++ b/plugins/notification/ios/Package.swift @@ -1,5 +1,9 @@ // swift-tools-version:5.3 -// The swift-tools-version declares the minimum version of Swift required to build this package. +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + + import PackageDescription diff --git a/plugins/notification/ios/Sources/Notification.swift b/plugins/notification/ios/Sources/Notification.swift index 52b1016f..e6f0d077 100644 --- a/plugins/notification/ios/Sources/Notification.swift +++ b/plugins/notification/ios/Sources/Notification.swift @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import Tauri import UserNotifications diff --git a/plugins/notification/ios/Sources/NotificationCategory.swift b/plugins/notification/ios/Sources/NotificationCategory.swift index 74a1e194..ae37ffc3 100644 --- a/plugins/notification/ios/Sources/NotificationCategory.swift +++ b/plugins/notification/ios/Sources/NotificationCategory.swift @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import Tauri import UserNotifications diff --git a/plugins/notification/ios/Sources/NotificationHandler.swift b/plugins/notification/ios/Sources/NotificationHandler.swift index 1f7cb8ba..ac569bdf 100644 --- a/plugins/notification/ios/Sources/NotificationHandler.swift +++ b/plugins/notification/ios/Sources/NotificationHandler.swift @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import Tauri import UserNotifications diff --git a/plugins/notification/ios/Sources/NotificationManager.swift b/plugins/notification/ios/Sources/NotificationManager.swift index 857636fb..183b4dd5 100644 --- a/plugins/notification/ios/Sources/NotificationManager.swift +++ b/plugins/notification/ios/Sources/NotificationManager.swift @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import Foundation import UserNotifications diff --git a/plugins/notification/ios/Sources/NotificationPlugin.swift b/plugins/notification/ios/Sources/NotificationPlugin.swift index 217c999d..29e01865 100644 --- a/plugins/notification/ios/Sources/NotificationPlugin.swift +++ b/plugins/notification/ios/Sources/NotificationPlugin.swift @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import SwiftRs import Tauri import UIKit diff --git a/plugins/notification/ios/Tests/PluginTests/PluginTests.swift b/plugins/notification/ios/Tests/PluginTests/PluginTests.swift index 4f8e9ace..99992ce4 100644 --- a/plugins/notification/ios/Tests/PluginTests/PluginTests.swift +++ b/plugins/notification/ios/Tests/PluginTests/PluginTests.swift @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import XCTest @testable import ExamplePlugin diff --git a/plugins/notification/src/init.js b/plugins/notification/src/init.js index d69acf61..53de9586 100644 --- a/plugins/notification/src/init.js +++ b/plugins/notification/src/init.js @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + (function () { let permissionSettable = false; let permissionValue = "default"; diff --git a/plugins/os/src/commands.rs b/plugins/os/src/commands.rs index 348a1715..314d10df 100644 --- a/plugins/os/src/commands.rs +++ b/plugins/os/src/commands.rs @@ -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::path::PathBuf; #[tauri::command] diff --git a/plugins/os/src/error.rs b/plugins/os/src/error.rs index 4ce7207a..f5d8816a 100644 --- a/plugins/os/src/error.rs +++ b/plugins/os/src/error.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use serde::{Serialize, Serializer}; #[derive(Debug, thiserror::Error)] diff --git a/plugins/os/src/lib.rs b/plugins/os/src/lib.rs index 13436d2f..1b51eaea 100644 --- a/plugins/os/src/lib.rs +++ b/plugins/os/src/lib.rs @@ -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::{fmt::Display, path::PathBuf}; pub use os_info::Version; diff --git a/plugins/persisted-scope/src/lib.rs b/plugins/persisted-scope/src/lib.rs index 6fb9d0f9..f1e02c18 100644 --- a/plugins/persisted-scope/src/lib.rs +++ b/plugins/persisted-scope/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/positioner/guest-js/index.ts b/plugins/positioner/guest-js/index.ts index dffbf54e..14bad9e9 100644 --- a/plugins/positioner/guest-js/index.ts +++ b/plugins/positioner/guest-js/index.ts @@ -1,4 +1,6 @@ // Copyright 2021 Jonas Kruckenberg +// 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"; diff --git a/plugins/positioner/src/ext.rs b/plugins/positioner/src/ext.rs index 01d34cf5..196209ad 100644 --- a/plugins/positioner/src/ext.rs +++ b/plugins/positioner/src/ext.rs @@ -1,4 +1,6 @@ // Copyright 2021 Jonas Kruckenberg +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT #[cfg(feature = "system-tray")] diff --git a/plugins/positioner/src/lib.rs b/plugins/positioner/src/lib.rs index 34492a34..fd0140a4 100644 --- a/plugins/positioner/src/lib.rs +++ b/plugins/positioner/src/lib.rs @@ -1,4 +1,6 @@ // Copyright 2021 Jonas Kruckenberg +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! A plugin for Tauri that helps position your windows at well-known locations. diff --git a/plugins/process/src/commands.rs b/plugins/process/src/commands.rs index de2e7302..2c27a3d2 100644 --- a/plugins/process/src/commands.rs +++ b/plugins/process/src/commands.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use tauri::{AppHandle, Runtime}; #[tauri::command] diff --git a/plugins/process/src/lib.rs b/plugins/process/src/lib.rs index e38a4edc..d3d48cac 100644 --- a/plugins/process/src/lib.rs +++ b/plugins/process/src/lib.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use tauri::{ plugin::{Builder, TauriPlugin}, Runtime, diff --git a/plugins/shell/src/commands.rs b/plugins/shell/src/commands.rs index 226022d5..e4b63e24 100644 --- a/plugins/shell/src/commands.rs +++ b/plugins/shell/src/commands.rs @@ -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::{collections::HashMap, path::PathBuf, string::FromUtf8Error}; use encoding_rs::Encoding; diff --git a/plugins/shell/src/config.rs b/plugins/shell/src/config.rs index 180de7f6..5dd32862 100644 --- a/plugins/shell/src/config.rs +++ b/plugins/shell/src/config.rs @@ -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::path::PathBuf; use serde::{de::Error as DeError, Deserialize, Deserializer}; diff --git a/plugins/shell/src/error.rs b/plugins/shell/src/error.rs index 968e70a6..0a673e8a 100644 --- a/plugins/shell/src/error.rs +++ b/plugins/shell/src/error.rs @@ -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::path::PathBuf; use serde::{Serialize, Serializer}; diff --git a/plugins/shell/src/lib.rs b/plugins/shell/src/lib.rs index 5453b15b..43bf006c 100644 --- a/plugins/shell/src/lib.rs +++ b/plugins/shell/src/lib.rs @@ -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::{ collections::HashMap, sync::{Arc, Mutex}, diff --git a/plugins/single-instance/examples/vanilla/src-tauri/build.rs b/plugins/single-instance/examples/vanilla/src-tauri/build.rs index 795b9b7c..b055ec37 100644 --- a/plugins/single-instance/examples/vanilla/src-tauri/build.rs +++ b/plugins/single-instance/examples/vanilla/src-tauri/build.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + fn main() { tauri_build::build() } diff --git a/plugins/single-instance/examples/vanilla/src-tauri/src/main.rs b/plugins/single-instance/examples/vanilla/src-tauri/src/main.rs index a6260a7f..0b93460d 100644 --- a/plugins/single-instance/examples/vanilla/src-tauri/src/main.rs +++ b/plugins/single-instance/examples/vanilla/src-tauri/src/main.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + #![cfg_attr( all(not(debug_assertions), target_os = "windows"), windows_subsystem = "windows" diff --git a/plugins/single-instance/src/lib.rs b/plugins/single-instance/src/lib.rs index f2ceb458..6b20956e 100644 --- a/plugins/single-instance/src/lib.rs +++ b/plugins/single-instance/src/lib.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + #![cfg(not(any(target_os = "android", target_os = "ios")))] use tauri::{plugin::TauriPlugin, AppHandle, Manager, Runtime}; diff --git a/plugins/single-instance/src/platform_impl/linux.rs b/plugins/single-instance/src/platform_impl/linux.rs index 42557e5a..3ad8585f 100644 --- a/plugins/single-instance/src/platform_impl/linux.rs +++ b/plugins/single-instance/src/platform_impl/linux.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + #![cfg(target_os = "linux")] use std::sync::Arc; diff --git a/plugins/single-instance/src/platform_impl/macos.rs b/plugins/single-instance/src/platform_impl/macos.rs index 1b408c66..170ff0e0 100644 --- a/plugins/single-instance/src/platform_impl/macos.rs +++ b/plugins/single-instance/src/platform_impl/macos.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + #![cfg(target_os = "macos")] use crate::SingleInstanceCallback; diff --git a/plugins/single-instance/src/platform_impl/windows.rs b/plugins/single-instance/src/platform_impl/windows.rs index 69036f58..31c4f229 100644 --- a/plugins/single-instance/src/platform_impl/windows.rs +++ b/plugins/single-instance/src/platform_impl/windows.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + #![cfg(target_os = "windows")] use crate::SingleInstanceCallback; diff --git a/plugins/sql/guest-js/index.ts b/plugins/sql/guest-js/index.ts index a574e72e..687f6321 100644 --- a/plugins/sql/guest-js/index.ts +++ b/plugins/sql/guest-js/index.ts @@ -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"; export interface QueryResult { diff --git a/plugins/sql/src/decode/mod.rs b/plugins/sql/src/decode/mod.rs index 415c99b8..50fb3c78 100644 --- a/plugins/sql/src/decode/mod.rs +++ b/plugins/sql/src/decode/mod.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + #[cfg(feature = "mysql")] mod mysql; #[cfg(feature = "postgres")] diff --git a/plugins/sql/src/decode/mysql.rs b/plugins/sql/src/decode/mysql.rs index e68bd1ac..6ca7e403 100644 --- a/plugins/sql/src/decode/mysql.rs +++ b/plugins/sql/src/decode/mysql.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use serde_json::Value as JsonValue; use sqlx::{mysql::MySqlValueRef, TypeInfo, Value, ValueRef}; use time::{Date, OffsetDateTime, PrimitiveDateTime, Time}; diff --git a/plugins/sql/src/decode/postgres.rs b/plugins/sql/src/decode/postgres.rs index 39c9acfd..bd77aff0 100644 --- a/plugins/sql/src/decode/postgres.rs +++ b/plugins/sql/src/decode/postgres.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use serde_json::Value as JsonValue; use sqlx::{postgres::PgValueRef, TypeInfo, Value, ValueRef}; use time::{Date, OffsetDateTime, PrimitiveDateTime, Time}; diff --git a/plugins/sql/src/decode/sqlite.rs b/plugins/sql/src/decode/sqlite.rs index 65d378cb..1f0808ae 100644 --- a/plugins/sql/src/decode/sqlite.rs +++ b/plugins/sql/src/decode/sqlite.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use serde_json::Value as JsonValue; use sqlx::{sqlite::SqliteValueRef, TypeInfo, Value, ValueRef}; use time::{Date, PrimitiveDateTime, Time}; diff --git a/plugins/sql/src/lib.rs b/plugins/sql/src/lib.rs index 20153109..4bc87324 100644 --- a/plugins/sql/src/lib.rs +++ b/plugins/sql/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/sql/src/plugin.rs b/plugins/sql/src/plugin.rs index 6d682bda..460b2442 100644 --- a/plugins/sql/src/plugin.rs +++ b/plugins/sql/src/plugin.rs @@ -1,4 +1,4 @@ -// Copyright 2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/store/guest-js/index.ts b/plugins/store/guest-js/index.ts index cc6058d8..966e371d 100644 --- a/plugins/store/guest-js/index.ts +++ b/plugins/store/guest-js/index.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/store/src/error.rs b/plugins/store/src/error.rs index 03d29182..0a04bb09 100644 --- a/plugins/store/src/error.rs +++ b/plugins/store/src/error.rs @@ -1,4 +1,4 @@ -// Copyright 2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/store/src/lib.rs b/plugins/store/src/lib.rs index 7c7918f4..968cdc05 100644 --- a/plugins/store/src/lib.rs +++ b/plugins/store/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/store/src/store.rs b/plugins/store/src/store.rs index f8cba4e0..41e9ff54 100644 --- a/plugins/store/src/store.rs +++ b/plugins/store/src/store.rs @@ -1,4 +1,4 @@ -// Copyright 2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/stronghold/guest-js/index.ts b/plugins/stronghold/guest-js/index.ts index 3339f87f..8bd4e894 100644 --- a/plugins/stronghold/guest-js/index.ts +++ b/plugins/stronghold/guest-js/index.ts @@ -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"; type BytesDto = string | number[]; diff --git a/plugins/stronghold/src/lib.rs b/plugins/stronghold/src/lib.rs index b35f61bd..87bedc92 100644 --- a/plugins/stronghold/src/lib.rs +++ b/plugins/stronghold/src/lib.rs @@ -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::{ collections::HashMap, fmt, diff --git a/plugins/stronghold/src/stronghold.rs b/plugins/stronghold/src/stronghold.rs index 8e065c44..7da521bd 100644 --- a/plugins/stronghold/src/stronghold.rs +++ b/plugins/stronghold/src/stronghold.rs @@ -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::{convert::TryFrom, ops::Deref, path::Path}; use iota_stronghold::{KeyProvider, SnapshotPath}; diff --git a/plugins/updater/build.rs b/plugins/updater/build.rs index 74bf430b..0b339c43 100644 --- a/plugins/updater/build.rs +++ b/plugins/updater/build.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + fn main() { let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap(); let mobile = target_os == "ios" || target_os == "android"; diff --git a/plugins/updater/guest-js/index.ts b/plugins/updater/guest-js/index.ts index 7fb766e0..269b0f18 100644 --- a/plugins/updater/guest-js/index.ts +++ b/plugins/updater/guest-js/index.ts @@ -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, Channel } from "@tauri-apps/api/tauri"; interface CheckOptions { diff --git a/plugins/updater/src/commands.rs b/plugins/updater/src/commands.rs index 8de387dc..75d78288 100644 --- a/plugins/updater/src/commands.rs +++ b/plugins/updater/src/commands.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use crate::{PendingUpdate, Result, UpdaterExt}; use http::header; diff --git a/plugins/updater/src/config.rs b/plugins/updater/src/config.rs index 458cc58d..9361ea00 100644 --- a/plugins/updater/src/config.rs +++ b/plugins/updater/src/config.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use serde::{Deserialize, Deserializer}; use url::Url; diff --git a/plugins/updater/src/lib.rs b/plugins/updater/src/lib.rs index 7d4818b3..711fc742 100644 --- a/plugins/updater/src/lib.rs +++ b/plugins/updater/src/lib.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use tauri::{ plugin::{Builder as PluginBuilder, TauriPlugin}, Manager, Runtime, diff --git a/plugins/upload/guest-js/index.ts b/plugins/upload/guest-js/index.ts index 96e34659..d220af04 100644 --- a/plugins/upload/guest-js/index.ts +++ b/plugins/upload/guest-js/index.ts @@ -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, Channel } from "@tauri-apps/api/tauri"; interface ProgressPayload { diff --git a/plugins/upload/src/lib.rs b/plugins/upload/src/lib.rs index 714fd1ca..0930efd9 100644 --- a/plugins/upload/src/lib.rs +++ b/plugins/upload/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/websocket/examples/svelte-app/src-tauri/build.rs b/plugins/websocket/examples/svelte-app/src-tauri/build.rs index 795b9b7c..b055ec37 100644 --- a/plugins/websocket/examples/svelte-app/src-tauri/build.rs +++ b/plugins/websocket/examples/svelte-app/src-tauri/build.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + fn main() { tauri_build::build() } diff --git a/plugins/websocket/examples/svelte-app/src-tauri/src/main.rs b/plugins/websocket/examples/svelte-app/src-tauri/src/main.rs index d71d3109..8858da82 100644 --- a/plugins/websocket/examples/svelte-app/src-tauri/src/main.rs +++ b/plugins/websocket/examples/svelte-app/src-tauri/src/main.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + #![cfg_attr( all(not(debug_assertions), target_os = "windows"), windows_subsystem = "windows" diff --git a/plugins/websocket/examples/svelte-app/src/app.d.ts b/plugins/websocket/examples/svelte-app/src/app.d.ts index 1cea0dcf..caf34f1d 100644 --- a/plugins/websocket/examples/svelte-app/src/app.d.ts +++ b/plugins/websocket/examples/svelte-app/src/app.d.ts @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + // See https://kit.svelte.dev/docs/types#app // for information about these interfaces // and what to do when importing types diff --git a/plugins/websocket/examples/svelte-app/svelte.config.js b/plugins/websocket/examples/svelte-app/svelte.config.js index 998c3647..af7cb8a9 100644 --- a/plugins/websocket/examples/svelte-app/svelte.config.js +++ b/plugins/websocket/examples/svelte-app/svelte.config.js @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import adapter from "@sveltejs/adapter-auto"; import { vitePreprocess } from "@sveltejs/kit/vite"; diff --git a/plugins/websocket/examples/svelte-app/vite.config.ts b/plugins/websocket/examples/svelte-app/vite.config.ts index efc8757f..2b08f961 100644 --- a/plugins/websocket/examples/svelte-app/vite.config.ts +++ b/plugins/websocket/examples/svelte-app/vite.config.ts @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import { sveltekit } from "@sveltejs/kit/vite"; import type { UserConfig } from "vite"; diff --git a/plugins/websocket/guest-js/index.ts b/plugins/websocket/guest-js/index.ts index 9dc5b4d8..5678f7e0 100644 --- a/plugins/websocket/guest-js/index.ts +++ b/plugins/websocket/guest-js/index.ts @@ -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, transformCallback } from "@tauri-apps/api/tauri"; export interface MessageKind { diff --git a/plugins/websocket/src/lib.rs b/plugins/websocket/src/lib.rs index b61f2537..66a0a90e 100644 --- a/plugins/websocket/src/lib.rs +++ b/plugins/websocket/src/lib.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use futures_util::{stream::SplitSink, SinkExt, StreamExt}; use serde::{ser::Serializer, Deserialize, Serialize}; use tauri::{ diff --git a/plugins/window-state/guest-js/index.ts b/plugins/window-state/guest-js/index.ts index 2d303112..4fed384f 100644 --- a/plugins/window-state/guest-js/index.ts +++ b/plugins/window-state/guest-js/index.ts @@ -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"; interface WindowDef { diff --git a/plugins/window-state/src/cmd.rs b/plugins/window-state/src/cmd.rs index 65690db4..17486505 100644 --- a/plugins/window-state/src/cmd.rs +++ b/plugins/window-state/src/cmd.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use crate::{AppHandleExt, StateFlags, WindowExt}; use tauri::{command, AppHandle, Manager, Runtime}; diff --git a/plugins/window-state/src/lib.rs b/plugins/window-state/src/lib.rs index 9fdb6d54..32345fee 100644 --- a/plugins/window-state/src/lib.rs +++ b/plugins/window-state/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2021 Tauri Programme within The Commons Conservancy +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT diff --git a/plugins/window/build.rs b/plugins/window/build.rs index 74bf430b..0b339c43 100644 --- a/plugins/window/build.rs +++ b/plugins/window/build.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + fn main() { let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap(); let mobile = target_os == "ios" || target_os == "android"; diff --git a/plugins/window/src/desktop_commands.rs b/plugins/window/src/desktop_commands.rs index 63ef037b..98fb60c0 100644 --- a/plugins/window/src/desktop_commands.rs +++ b/plugins/window/src/desktop_commands.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use serde::{Deserialize, Serialize, Serializer}; use tauri::{ utils::config::WindowConfig, AppHandle, CursorIcon, Icon, Manager, Monitor, PhysicalPosition, diff --git a/plugins/window/src/lib.rs b/plugins/window/src/lib.rs index 0f4c2dda..b34fccbc 100644 --- a/plugins/window/src/lib.rs +++ b/plugins/window/src/lib.rs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + use tauri::{ plugin::{Builder, TauriPlugin}, Runtime, diff --git a/shared/rollup.config.mjs b/shared/rollup.config.mjs index 9595b929..0fec516e 100644 --- a/shared/rollup.config.mjs +++ b/shared/rollup.config.mjs @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import { builtinModules } from "module"; import typescript from "@rollup/plugin-typescript"; diff --git a/shared/template/android/src/androidTest/java/ExampleInstrumentedTest.kt b/shared/template/android/src/androidTest/java/ExampleInstrumentedTest.kt index 24e699cc..b7ca3f66 100644 --- a/shared/template/android/src/androidTest/java/ExampleInstrumentedTest.kt +++ b/shared/template/android/src/androidTest/java/ExampleInstrumentedTest.kt @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + package {{android_package_id}} import androidx.test.platform.app.InstrumentationRegistry diff --git a/shared/template/android/src/main/java/ExamplePlugin.kt b/shared/template/android/src/main/java/ExamplePlugin.kt index 8ac527d8..9fed811c 100644 --- a/shared/template/android/src/main/java/ExamplePlugin.kt +++ b/shared/template/android/src/main/java/ExamplePlugin.kt @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + package {{android_package_id}} import android.app.Activity diff --git a/shared/template/android/src/test/java/ExampleUnitTest.kt b/shared/template/android/src/test/java/ExampleUnitTest.kt index 50792fe6..71cee3c2 100644 --- a/shared/template/android/src/test/java/ExampleUnitTest.kt +++ b/shared/template/android/src/test/java/ExampleUnitTest.kt @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + package {{android_package_id}} import org.junit.Test diff --git a/shared/template/build.rs b/shared/template/build.rs index 86ac3f0a..743096a6 100644 --- a/shared/template/build.rs +++ b/shared/template/build.rs @@ -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; fn main() { diff --git a/shared/template/guest-js/index.ts b/shared/template/guest-js/index.ts index e69de29b..a0560385 100644 --- a/shared/template/guest-js/index.ts +++ b/shared/template/guest-js/index.ts @@ -0,0 +1,3 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT diff --git a/shared/template/ios/Package.swift b/shared/template/ios/Package.swift index ff9991fa..e4f53f0b 100644 --- a/shared/template/ios/Package.swift +++ b/shared/template/ios/Package.swift @@ -1,5 +1,7 @@ // swift-tools-version:5.3 -// The swift-tools-version declares the minimum version of Swift required to build this package. +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT import PackageDescription diff --git a/shared/template/ios/Sources/ExamplePlugin.swift b/shared/template/ios/Sources/ExamplePlugin.swift index 5544d3bc..7a36b76b 100644 --- a/shared/template/ios/Sources/ExamplePlugin.swift +++ b/shared/template/ios/Sources/ExamplePlugin.swift @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import UIKit import WebKit import Tauri diff --git a/shared/template/ios/Tests/PluginTests/PluginTests.swift b/shared/template/ios/Tests/PluginTests/PluginTests.swift index 4f8e9ace..99992ce4 100644 --- a/shared/template/ios/Tests/PluginTests/PluginTests.swift +++ b/shared/template/ios/Tests/PluginTests/PluginTests.swift @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import XCTest @testable import ExamplePlugin