diff --git a/plugins/deep-link/examples/old/src-tauri/build.rs b/plugins/deep-link/examples/old/src-tauri/build.rs index 795b9b7c8..b055ec37c 100644 --- a/plugins/deep-link/examples/old/src-tauri/build.rs +++ b/plugins/deep-link/examples/old/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/deep-link/examples/old/src-tauri/gen/android/app/src/main/java/com/tauri/deep_link_example/MainActivity.kt b/plugins/deep-link/examples/old/src-tauri/gen/android/app/src/main/java/com/tauri/deep_link_example/MainActivity.kt index 36bcc7ded..e13fb9956 100644 --- a/plugins/deep-link/examples/old/src-tauri/gen/android/app/src/main/java/com/tauri/deep_link_example/MainActivity.kt +++ b/plugins/deep-link/examples/old/src-tauri/gen/android/app/src/main/java/com/tauri/deep_link_example/MainActivity.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 com.tauri.deep_link_example class MainActivity : TauriActivity() diff --git a/plugins/deep-link/examples/old/src-tauri/gen/android/buildSrc/src/main/java/com/tauri/deep_link_example/kotlin/BuildTask.kt b/plugins/deep-link/examples/old/src-tauri/gen/android/buildSrc/src/main/java/com/tauri/deep_link_example/kotlin/BuildTask.kt index f98748258..b9e83018f 100644 --- a/plugins/deep-link/examples/old/src-tauri/gen/android/buildSrc/src/main/java/com/tauri/deep_link_example/kotlin/BuildTask.kt +++ b/plugins/deep-link/examples/old/src-tauri/gen/android/buildSrc/src/main/java/com/tauri/deep_link_example/kotlin/BuildTask.kt @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import java.io.File import org.apache.tools.ant.taskdefs.condition.Os import org.gradle.api.DefaultTask diff --git a/plugins/deep-link/examples/old/src-tauri/gen/android/buildSrc/src/main/java/com/tauri/deep_link_example/kotlin/RustPlugin.kt b/plugins/deep-link/examples/old/src-tauri/gen/android/buildSrc/src/main/java/com/tauri/deep_link_example/kotlin/RustPlugin.kt index 4aa7fcaf6..cad2d8770 100644 --- a/plugins/deep-link/examples/old/src-tauri/gen/android/buildSrc/src/main/java/com/tauri/deep_link_example/kotlin/RustPlugin.kt +++ b/plugins/deep-link/examples/old/src-tauri/gen/android/buildSrc/src/main/java/com/tauri/deep_link_example/kotlin/RustPlugin.kt @@ -1,3 +1,7 @@ +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + import com.android.build.api.dsl.ApplicationExtension import org.gradle.api.DefaultTask import org.gradle.api.Plugin diff --git a/plugins/deep-link/examples/old/src-tauri/gen/apple/project.yml b/plugins/deep-link/examples/old/src-tauri/gen/apple/project.yml index 81e7b2785..dec20c274 100644 --- a/plugins/deep-link/examples/old/src-tauri/gen/apple/project.yml +++ b/plugins/deep-link/examples/old/src-tauri/gen/apple/project.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: deep-link-example options: bundleIdPrefix: com.tauri @@ -60,7 +64,7 @@ targets: base: ENABLE_BITCODE: false ARCHS: [arm64, arm64-sim] - VALID_ARCHS: arm64 arm64-sim + VALID_ARCHS: arm64 arm64-sim LIBRARY_SEARCH_PATHS[arch=x86_64]: $(inherited) $(PROJECT_DIR)/Externals/$(CONFIGURATION) $(SDKROOT)/usr/lib/swift $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME) $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME) LIBRARY_SEARCH_PATHS[arch=arm64]: $(inherited) $(PROJECT_DIR)/Externals/$(CONFIGURATION) $(SDKROOT)/usr/lib/swift $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME) $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME) LIBRARY_SEARCH_PATHS[arch=arm64-sim]: $(inherited) $(PROJECT_DIR)/Externals/$(CONFIGURATION) $(SDKROOT)/usr/lib/swift $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME) $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME) @@ -82,4 +86,4 @@ targets: basedOnDependencyAnalysis: false outputFiles: - $(SRCROOT)/target/aarch64-apple-ios/${CONFIGURATION}/deps/libdeep_link_example.a - - $(SRCROOT)/target/x86_64-apple-ios/${CONFIGURATION}/deps/libdeep_link_example.a \ No newline at end of file + - $(SRCROOT)/target/x86_64-apple-ios/${CONFIGURATION}/deps/libdeep_link_example.a diff --git a/plugins/deep-link/examples/old/src-tauri/server.js b/plugins/deep-link/examples/old/src-tauri/server.js index 14bd298a7..e6efdd2e3 100644 --- a/plugins/deep-link/examples/old/src-tauri/server.js +++ b/plugins/deep-link/examples/old/src-tauri/server.js @@ -1,24 +1,31 @@ -import http from 'http' -import fs from 'fs' -import path from 'path' -import * as url from 'url' -const __dirname = url.fileURLToPath(new URL('.', - import.meta.url)) +// Copyright 2019-2023 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT -const port = 8125 +import http from "http"; +import fs from "fs"; +import path from "path"; +import * as url from "url"; +const __dirname = url.fileURLToPath(new URL(".", import.meta.url)); -http.createServer(function (request, response) { - if (request.url === '/.well-known/apple-app-site-association') { - // eslint-disable-next-line - fs.readFile(path.resolve(__dirname, 'apple-app-site-association'), function (_error, content) { - response.writeHead(200) - response.end(content, 'utf-8') - }); - } else { - response.writeHead(404) - response.end() - } +const port = 8125; -}).listen(port) +http + .createServer(function (request, response) { + if (request.url === "/.well-known/apple-app-site-association") { + // eslint-disable-next-line + fs.readFile( + path.resolve(__dirname, "apple-app-site-association"), + function (_error, content) { + response.writeHead(200); + response.end(content, "utf-8"); + } + ); + } else { + response.writeHead(404); + response.end(); + } + }) + .listen(port); -console.log(`Server running at http://127.0.0.1:${port}/`) \ No newline at end of file +console.log(`Server running at http://127.0.0.1:${port}/`); diff --git a/plugins/deep-link/examples/old/src-tauri/src/lib.rs b/plugins/deep-link/examples/old/src-tauri/src/lib.rs index f498908b2..524f56cb0 100644 --- a/plugins/deep-link/examples/old/src-tauri/src/lib.rs +++ b/plugins/deep-link/examples/old/src-tauri/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::Manager; // Learn more about Tauri commands at https://tauri.app/v1/guides/features/command diff --git a/plugins/deep-link/examples/old/src-tauri/src/main.rs b/plugins/deep-link/examples/old/src-tauri/src/main.rs index 2e4f3bd3a..799fad7cd 100644 --- a/plugins/deep-link/examples/old/src-tauri/src/main.rs +++ b/plugins/deep-link/examples/old/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 + // Prevents additional console window on Windows in release, DO NOT REMOVE!! #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] diff --git a/plugins/deep-link/examples/old/src/main.ts b/plugins/deep-link/examples/old/src/main.ts index 04c690f2e..0c403359e 100644 --- a/plugins/deep-link/examples/old/src/main.ts +++ b/plugins/deep-link/examples/old/src/main.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 { listen } from "@tauri-apps/api/event"; import { transformCallback } from "@tauri-apps/api/tauri"; diff --git a/plugins/deep-link/examples/old/vite.config.ts b/plugins/deep-link/examples/old/vite.config.ts index 136fee5db..4bf452bcb 100644 --- a/plugins/deep-link/examples/old/vite.config.ts +++ b/plugins/deep-link/examples/old/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 { defineConfig } from "vite"; import { internalIpV4 } from "internal-ip";