Skip to content

Commit

Permalink
feat: custom schema support (#516)
Browse files Browse the repository at this point in the history
* feat(custom-scheme): add custom scheme functionality (WIP)

* feat(custom-schema): implement custom schema for auto import

* fix(custom-schema): fix missing deep link prepare

* fix(custom-schema): fix typo and better handling
  • Loading branch information
4o3F authored Feb 29, 2024
1 parent 4aa830b commit 24617aa
Show file tree
Hide file tree
Showing 27 changed files with 1,189 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ scripts/_env.sh

tauri.nightly.conf.json

.idea
56 changes: 56 additions & 0 deletions backend/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions backend/tauri-plugin-deep-link/.github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Audit

on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
paths:
- "**/Cargo.lock"
- "**/Cargo.toml"
pull_request:
branches:
- main
paths:
- "**/Cargo.lock"
- "**/Cargo.toml"

jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
24 changes: 24 additions & 0 deletions backend/tauri-plugin-deep-link/.github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Format

on:
push:
branches:
- main
pull_request:
branches:
- main
- dev

jobs:
format:
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
27 changes: 27 additions & 0 deletions backend/tauri-plugin-deep-link/.github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Clippy

on:
push:
branches:
- main
pull_request:
branches:
- main
- dev

jobs:
clippy:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all-targets --all-features -- -D warnings
33 changes: 33 additions & 0 deletions backend/tauri-plugin-deep-link/.github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish

on:
push:
tags:
- "v*.*.*"

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Release to crates.io
run: |
cargo login ${{ secrets.CRATES_IO }}
cargo publish
- name: Generate Changelog
uses: orhun/git-cliff-action@v2
id: git-cliff
with:
config: cliff.toml
args: -vv --latest --strip header

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.git-cliff.outputs.content }}
2 changes: 2 additions & 0 deletions backend/tauri-plugin-deep-link/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
/Cargo.lock
34 changes: 34 additions & 0 deletions backend/tauri-plugin-deep-link/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Changelog

All notable changes to this project will be documented in this file.

## [0.1.2] - 2023-08-15

**This plugin will be migrated to https://github.com/tauri-apps/plugins-workspace/.** Therefore, this will likely be the last release in this repository.

### Miscellaneous Tasks

- Update rust crate objc2 to 0.4.0 (#30)
- Update rust crate objc2 to 0.4.1 (#31)

## [0.1.1] - 2023-04-04

### Bug Fixes

- Info.plist formatting (#22)
- Fixed inability to focus when launched from a Windows notification. (#27)

### Documentation

- Add env::args getter to example

### Miscellaneous Tasks

- Update rust crate winreg to 0.50.0 (#28)
- Switch from dirs-next to dirs

## [0.1.0] - 2023-02-27

### Features

- Initial release
29 changes: 29 additions & 0 deletions backend/tauri-plugin-deep-link/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[package]
name = "tauri-plugin-deep-link"
version = "0.1.2"
authors = ["FabianLars <fabianlars@fabianlars.de>"]
description = "A Tauri plugin for deep linking support"
repository = "https://github.com/FabianLars/tauri-plugin-deep-link"
edition = "2021"
rust-version = "1.64"
license = "MIT OR Apache-2.0"
readme = "README.md"
include = ["src/**", "Cargo.toml", "LICENSE_*"]

[dependencies]
dirs = "5"
log = "0.4"
once_cell = "1"
tauri-utils = { version = "1" }

[target.'cfg(windows)'.dependencies]
interprocess = { version = "1.2", default-features = false }
windows-sys = { version = "0.52.0", features = [
"Win32_Foundation",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_UI_WindowsAndMessaging",
] }
winreg = "0.52.0"

[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.4.1"
Loading

0 comments on commit 24617aa

Please sign in to comment.