diff --git a/.github/sync-to-mirrors.sh b/.github/sync-to-mirrors.sh index 52d4c27f1..4baf55d22 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 19a7f4c85..618ebf590 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 1ec0225ef..c85d37128 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 000000000..15e9f2cba --- /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 cb5a344a2..abe20e351 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 104e0ef40..63b14e97d 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 b5c4ab7d8..f10247e0a 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 c2c0a1d34..02b96541a 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 0f51d2f70..db0a8cfb2 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 82da46fc7..b34ccc7c6 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 254fb503b..e0c49a851 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 000000000..5e6292588 --- /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 cd563694b..a9e4f867a 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 1871473b9..ebe06f766 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 790ed9d23..fc97c050b 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 8b4a533c5..f8db2008d 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 c334173d4..34bc332b5 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 87a393d29..8cc5df000 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 e1b488e0d..b46f44c62 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 e8bd5de96..12f1d6c32 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 0d43fe6ea..b3100708d 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 cfdd5ccc3..2ecc46091 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 f00b83700..f7f36a0e4 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 8dee7f66e..b4bd28722 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 25795c01e..8243dff35 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 2938f836f..02e6984bc 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 ece3e45e7..8f622251c 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 6a8897632..282700f2d 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 86ac3f0ad..743096a60 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 e38a8bb65..42c3de035 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 dda6177bf..5f84aa654 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 f1657dea0..e5d54b38b 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 cebbd46c9..6c9d837e0 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 b7d61c6a6..00369a3f5 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 86ac3f0ad..743096a60 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 6bc96852d..45a58a430 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 0970c056f..ef1dff717 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 fc6364733..b2752f0b0 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 4f8e9ace3..99992ce4c 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 168f96290..59255796d 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 837e3a402..f6c9b235d 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 e627b458d..effc017f0 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 79cb34a27..647342c73 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 f9bf24603..8157000c8 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 4266de219..6ac38f45c 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 997dee058..07614a53d 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 5e9d4c588..94c713248 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 d6b5eba0c..4e9d7317e 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 f1234cbbb..8b49b0f7f 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 348d26a2b..afee9b548 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 11a0b75cc..e34a9ace2 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 f7b8e7ef9..54fb6e286 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 4f7364181..4afbbbdba 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 954f357e4..cefdc8588 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 cbb6dd294..64489f466 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 814a39aff..88ede7f46 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 c97cd528d..fafccf7ae 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 cf68e6668..2ae740e55 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 3839807bc..9076fa8f1 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 c1a964b45..d50d0fe99 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 1cc35e89b..56a138180 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 f87bcf172..2b6043dc8 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 89edbc9db..64c83486d 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 bfddfcc2a..4d55a9a45 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 79e679088..2f9480692 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 46693a0fe..134a27d4a 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 86ac3f0ad..743096a60 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 bfcaf338f..1a2c48016 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 52b1016fc..e6f0d0773 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 74a1e194f..ae37ffc34 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 1f7cb8ba6..ac569bdf1 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 857636fb6..183b4dd51 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 217c999d1..29e018656 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 4f8e9ace3..99992ce4c 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 d69acf615..53de95867 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 348a17153..314d10dff 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 4ce7207a2..f5d8816af 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 13436d2f8..1b51eaeaf 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 6fb9d0f93..f1e02c188 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 dffbf54e7..14bad9e97 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 01d34cf5f..196209ada 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 34492a347..fd0140a4b 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 de2e73028..2c27a3d22 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 e38a4edc2..d3d48cac8 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 226022d5b..e4b63e245 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 180de7f60..5dd32862d 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 968e70a60..0a673e8a3 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 5453b15b0..43bf006c7 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 795b9b7c8..b055ec37c 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 a6260a7f0..0b93460de 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 f2ceb4589..6b20956e0 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 42557e5af..3ad8585fe 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 1b408c66e..170ff0e0d 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 69036f581..31c4f229f 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 a574e72ee..687f6321c 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 415c99b87..50fb3c78d 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 e68bd1ac2..6ca7e4035 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 39c9acfd8..bd77aff08 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 65d378cb9..1f0808ae3 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 201531093..4bc873249 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 6d682bdaa..460b24429 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 cc6058d80..966e371d0 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 03d29182e..0a04bb092 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 7c7918f45..968cdc05e 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 f8cba4e0c..41e9ff54c 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 3339f87f8..8bd4e894b 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 b35f61bd1..87bedc92a 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 8e065c441..7da521bdd 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 74bf430be..0b339c43e 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 7fb766e01..269b0f18a 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 8de387dc4..75d78288d 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 458cc58da..9361ea009 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 7d4818b34..711fc7426 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 96e346595..d220af04b 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 714fd1ca0..0930efd9a 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 795b9b7c8..b055ec37c 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 d71d3109d..8858da82e 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 1cea0dcf2..caf34f1d0 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 998c36478..af7cb8a96 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 efc8757fb..2b08f9611 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 9dc5b4d8c..5678f7e0b 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 b61f25377..66a0a90ef 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 2d3031121..4fed384f1 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 65690db48..17486505a 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 9fdb6d542..32345feeb 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 74bf430be..0b339c43e 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 63ef037b4..98fb60c03 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 0f4c2ddad..b34fccbce 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 9595b929d..0fec516e8 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 24e699cc7..b7ca3f668 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 8ac527d88..9fed811cf 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 50792fe64..71cee3c29 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 86ac3f0ad..743096a60 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 e69de29bb..a05603857 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 ff9991fa9..e4f53f0b0 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 5544d3bca..7a36b76b5 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 4f8e9ace3..99992ce4c 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