Skip to content

Commit

Permalink
fix license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Jul 18, 2023
1 parent 2451ea3 commit a8e748e
Show file tree
Hide file tree
Showing 10 changed files with 65 additions and 22 deletions.
4 changes: 4 additions & 0 deletions plugins/deep-link/examples/old/src-tauri/build.rs
Original file line number Diff line number Diff line change
@@ -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()
}
Original file line number Diff line number Diff line change
@@ -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()
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand All @@ -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
- $(SRCROOT)/target/x86_64-apple-ios/${CONFIGURATION}/deps/libdeep_link_example.a
47 changes: 27 additions & 20 deletions plugins/deep-link/examples/old/src-tauri/server.js
Original file line number Diff line number Diff line change
@@ -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}/`)
console.log(`Server running at http://127.0.0.1:${port}/`);
4 changes: 4 additions & 0 deletions plugins/deep-link/examples/old/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions plugins/deep-link/examples/old/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
@@ -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")]

Expand Down
4 changes: 4 additions & 0 deletions plugins/deep-link/examples/old/src/main.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
4 changes: 4 additions & 0 deletions plugins/deep-link/examples/old/vite.config.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down

0 comments on commit a8e748e

Please sign in to comment.