Compare commits

..

14 Commits

Author SHA1 Message Date
Lucas Nogueira
4dfba14fbb fix tests 2023-07-31 13:03:55 -03:00
Lucas Nogueira
f514d655b6 make description optional 2023-07-31 12:55:57 -03:00
Lucas Nogueira
e729a9c83f use btreemap for manifests 2023-07-31 12:52:44 -03:00
Lucas Nogueira
41961e7de0 allow the app capability json to contain an array 2023-07-31 12:50:23 -03:00
Lucas Nogueira
cb78c12db8 resolve conflicts on capability ids 2023-07-31 09:37:26 -03:00
Lucas Nogueira
13a774e0ca automatically define a capability for each plugin feature 2023-07-31 08:00:15 -03:00
Lucas Nogueira
d894ad2896 allow the capability JSON to have a list of capabilities 2023-07-31 07:54:14 -03:00
Lucas Nogueira
b382a4e08f allow core to define plugin manifests 2023-07-30 17:53:26 -03:00
Lucas Nogueira
b82899b96b allow the app to define custom capabilities 2023-07-30 17:36:20 -03:00
Lucas Nogueira
708cb9fa28 initial draft for runtime authority 2023-07-26 09:01:37 -03:00
Lucas Nogueira
8467f138bb move types to tauri-utils 2023-07-25 12:51:35 -03:00
Lucas Nogueira
50aaf4ec14 initial lockfile format and generation script 2023-07-24 22:11:38 -03:00
Lucas Nogueira
f8d98db9ff initial namespace config definition 2023-07-24 22:11:18 -03:00
Lucas Nogueira
0811f512c5 initial plugin metadata implementation 2023-07-24 15:37:08 -03:00
1065 changed files with 38804 additions and 99486 deletions

6
.changes/add-command.md Normal file
View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:feat'
"@tauri-apps/cli": 'patch:feat'
---
Added `tauri plugin add` command to add a plugin to the Tauri project.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'minor:feat'
"@tauri-apps/cli": 'minor:feat'
---
Added `plugin android add` and `plugin ios add` commands to add mobile plugin functionality to existing projects.

View File

@@ -0,0 +1,6 @@
---
"tauri-runtime": 'minor:feat'
"tauri-runtime-wry": 'minor:feat'
---
Add `find_class`, `run_on_android_context` on `RuntimeHandle`.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Do not gitignore the Android project's `buildSrc` folder by default since we removed absolute paths from it.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Enhance parsing of annotated Android plugin methods to support private functions.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Added static function `loadConfig` on the Android `PluginManager` class.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Listen to `onNewIntent` and forward it to registered plugins.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Adjust Android plugin exception error.

View File

@@ -1,6 +0,0 @@
---
"tauri": patch:enhance
"tauri-codegen": patch:enhance
---
Enhance `AssetResolver::get` in development mode by reading distDir directly as a fallback to the embedded assets.

View File

@@ -0,0 +1,5 @@
---
"tauri-build": 'patch:enhance'
---
Set environment variables used by `tauri::mobile_entry_point`.

10
.changes/bump-1.3.md Normal file
View File

@@ -0,0 +1,10 @@
---
"tauri-bundler": 'patch:enhance'
"tauri-codegen": 'patch:enhance'
"tauri-macros": 'patch:enhance'
"tauri-utils": 'patch:enhance'
"tauri-runtime": 'patch:enhance'
"tauri-runtime-wry": 'patch:enhance'
---
Pull changes from Tauri 1.3 release.

View File

@@ -0,0 +1,5 @@
---
"tauri-bundler": 'patch:enhance'
---
Removed the `UpdaterSettings::dialog` field.

View File

@@ -0,0 +1,5 @@
---
'tauri-bundler': 'patch:bug'
---
Enable `zip`'s `deflate` feature flag to fix issues when downloading nsis and wix tools.

View File

@@ -1,5 +0,0 @@
---
"tauri": patch:bug
---
Fix Specta remote implementation target for `Channel`.

6
.changes/channel-api.md Normal file
View File

@@ -0,0 +1,6 @@
---
"api": 'patch:enhance'
"tauri": 'patch:enhance'
---
Add channel API for sending data across the IPC.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'minor:feat'
"@tauri-apps/cli": 'minor:feat'
---
Added `android build` command.

View File

@@ -0,0 +1,6 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Add `--release` flag for `tauri android dev` however you will need to sign your Android app, see https://next--tauri.netlify.app/next/guides/distribution/sign-android

View File

@@ -0,0 +1,6 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Build only specified rust targets for `tauri android build` instead of all.

View File

@@ -0,0 +1,5 @@
---
'tauri-cli': 'patch:bug'
---
Fix `--split-per-abi` not building any targets unless specified by `--target` flag.

View File

@@ -0,0 +1,5 @@
---
'tauri-cli': 'patch:bug'
---
Fix `tauri info` failing when there is no available iOS code signing certificate.

View File

@@ -0,0 +1,6 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Use local ip address for built-in dev server on mobile.

View File

@@ -1,6 +0,0 @@
---
"tauri-cli": "patch:enhance"
"@tauri-apps/cli": "patch:enhance"
---
Changes the default behavior of the `dev` command to only expose to localhost (`127.0.0.1`) instead of the default system interface.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": patch:feat
"@tauri-apps/cli": patch:feat
---
Expose an environment variable `TAURI_${PLUGIN_NAME}_PLUGIN_CONFIG` for each defined plugin configuration object.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Added `ios build` command.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": patch:feat
"@tauri-apps/cli": patch:feat
---
Expose the `TAURI_IOS_PROJECT_PATH` and `TAURI_IOS_APP_NAME` environment variables when using `ios` commands.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Add `key.properties` file to android's `.gitignore`.

View File

@@ -0,0 +1,6 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
On mobile, fix regression introduced in `tauri-cli` version `2.0.0-alpha.3` where library not found error was thrown.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Don't build library files when building desktop targets.

View File

@@ -0,0 +1,5 @@
---
'tauri-cli': 'patch:enhance'
---
Auto select an external IP for mobile development and fallback to prompting the user. Use `--force-ip-prompt` to force prompting.

View File

@@ -0,0 +1,6 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
Set current directory to tauri directory before reading config file.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'minor:feat'
"@tauri-apps/cli": 'minor:feat'
---
Added `android dev` and `ios dev` commands.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'minor:feat'
"@tauri-apps/cli": 'minor:feat'
---
Add commands to add native Android and iOS functionality to plugins.

View File

@@ -0,0 +1,5 @@
---
'tauri-cli': 'patch:enhance'
---
In mobile commands, correctly detect when nodejs binary has the version in its name, for example `node-18`

View File

@@ -0,0 +1,6 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
Fix `tauri (android|ios) (dev|build)` failing when using `npx tauri`

6
.changes/cli-pnpm.md Normal file
View File

@@ -0,0 +1,6 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Fix android project build crashing when using `pnpm` caused by extra `--`.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Use temp file instead of environment variable to pass CLI IPC websocket address to the IDE.

View File

@@ -0,0 +1,6 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Skip Rust target installation if they are already installed.

6
.changes/cli-wry-0-28.md Normal file
View File

@@ -0,0 +1,6 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Update mobile template to `wry@0.28`

View File

@@ -0,0 +1,5 @@
---
"tauri-codegen": 'patch:enhance'
---
Change `devPath` URL to use the local IP address on iOS and Android.

View File

@@ -0,0 +1,5 @@
---
'tauri': 'patch:feat'
---
Add `incognito` option to the window configuration object.

View File

@@ -1,5 +1,6 @@
{
"gitSiteUrl": "https://www.github.com/tauri-apps/tauri/",
"timeout": 3600000,
"changeTags": {
"feat": "New Features",
"enhance": "Enhancements",
@@ -71,7 +72,7 @@
],
"assets": [
{
"path": "./target/package/${ pkg.pkg }-${ pkgFile.version }.crate",
"path": "${ pkg.path }/target/package/${ pkg.pkg }-${ pkgFile.version }.crate",
"name": "${ pkg.pkg }-${ pkgFile.version }.crate"
}
]
@@ -188,14 +189,10 @@
"path": "./core/tauri-utils",
"manager": "rust"
},
"tauri-macos-sign": {
"path": "./tooling/macos-sign",
"manager": "rust"
},
"tauri-bundler": {
"path": "./tooling/bundler",
"manager": "rust",
"dependencies": ["tauri-utils", "tauri-macos-sign"]
"dependencies": ["tauri-utils"]
},
"tauri-runtime": {
"path": "./core/tauri-runtime",
@@ -217,12 +214,6 @@
"manager": "rust",
"dependencies": ["tauri-codegen", "tauri-utils"]
},
"tauri-plugin": {
"path": "./core/tauri-plugin",
"manager": "rust",
"dependencies": ["tauri-utils"],
"postversion": "node ../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }"
},
"tauri-build": {
"path": "./core/tauri-build",
"manager": "rust",
@@ -266,7 +257,7 @@
"tauri-cli": {
"path": "./tooling/cli",
"manager": "rust",
"dependencies": ["tauri-bundler", "tauri-utils", "tauri-macos-sign"],
"dependencies": ["tauri-bundler", "tauri-utils"],
"postversion": [
"cargo check",
"cargo build --manifest-path ../../core/tauri-config-schema/Cargo.toml"
@@ -280,8 +271,7 @@
},
"tauri-driver": {
"path": "./tooling/webdriver",
"manager": "rust",
"postversion": "cargo check"
"manager": "rust"
}
}
}

View File

@@ -0,0 +1,5 @@
---
'tauri': 'patch:enhance'
---
Use correct HTTP method when making requests to the proxied server on mobile.

View File

@@ -0,0 +1,5 @@
---
'tauri': 'minor:feat'
---
Add `App::primary_monitor`, `App::available_monitors`, `AppHandle::primary_monitor`, and `AppHandle::available_monitors`

View File

@@ -0,0 +1,5 @@
---
'tauri': 'patch:enhance'
---
Implement `Clone` for `Channel`

View File

@@ -0,0 +1,5 @@
---
'tauri': 'patch:feat'
---
Add `WindowBuilder::incognito`

View File

@@ -0,0 +1,5 @@
---
"tauri": 'minor:feat'
---
Added `Window::navigate`.

View File

@@ -1,9 +0,0 @@
---
"tauri": patch:breaking
"tauri-plugin": patch:breaking
"@tauri-apps/cli": patch:breaking
"tauri-cli": patch:breaking
---
Core plugin permissions are now prefixed with `core:`, the `core:default` permission set can now be used and the `core` plugin name is reserved.
The `tauri migrate` tool will automate the migration process, which involves prefixing all `app`, `event`, `image`, `menu`, `path`, `resources`, `tray`, `webview` and `window` permissions with `core:`.

View File

@@ -0,0 +1,6 @@
---
'tauri': 'patch:breaking'
---
- Removed `tauri::api::file` and `tauri::api::dir` modules, use `std::fs` instead.
- Removed `tauri::api::version` module, use `semver` crate instead.

View File

@@ -0,0 +1,5 @@
---
'tauri': 'patch:enhance'
---
On Android, update proguard rules.

View File

@@ -0,0 +1,5 @@
---
'tauri-utils': 'patch:feat'
---
Add `WindowEffect::MicaDark` and `WindowEffect::MicaLight`

View File

@@ -0,0 +1,5 @@
---
"tauri": major:feat
---
Added the `default-tls` and `reqwest-default-tls` Cargo features for enabling TLS suppport to connect over HTTPS.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Add `default_window_icon` getter on `App` and `AppHandle`.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Implement response cache on the dev server proxy, used when the server responds with status 304.

5
.changes/dev-proxy.md Normal file
View File

@@ -0,0 +1,5 @@
---
"tauri": major:feat
---
**Breaking change:** Use the custom protocol as a proxy to the development server on all platforms except Linux.

View File

@@ -1,9 +0,0 @@
---
"tauri-cli": patch:breaking
"@tauri-apps/cli": patch:breaking
---
`ios dev` and `android dev` now uses localhost for the development server unless running on an iOS device,
which still requires connecting to the public network address. To conditionally check this on your frontend
framework's configuration you can check for the existence of the `TAURI_DEV_HOST`
environment variable instead of checking if the target is iOS or Android (previous recommendation).

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"tauri": 'patch:enhance'
---
Change minimum Android SDK version to 21 for the plugin library.

View File

@@ -0,0 +1,6 @@
---
"tauri-runtime-wry": 'patch:enhance'
"tauri": 'patch:enhance'
---
Allow a wry plugin to be registered at runtime.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Change the Android template to enable minification on release and pull ProGuard rules from proguard-tauri.pro.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Fixes path commands not being added.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Enhance Android's `JSObject` return types.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Print an error if the Android project was generated with an older bundle identifier or package name.

View File

@@ -0,0 +1,5 @@
---
"@tauri-apps/api": 'patch:enhance'
---
Expose the window target option on event APIs.

View File

@@ -0,0 +1,5 @@
---
"tauri-utils": minor:feat
---
Add a configuration object for file associations under `BundleConfig`.

View File

@@ -0,0 +1,5 @@
---
"tauri": minor:feat
---
Added support to file associations.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Fixes the generated mobile build script when using an NPM runner.

View File

@@ -1,7 +0,0 @@
---
"tauri-utils": "patch:bug"
---
Fixed an issue where configuration parsing errors always displayed 'tauri.conf.json' as the file path, even when using 'Tauri.toml' or 'tauri.conf.json5'.
The error messages now correctly shows the actual config file being used.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Properly proxy dev server requests with query strings and fragments.

View File

@@ -0,0 +1,7 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
"tauri-macros": 'patch:enhance'
---
Resolve Android package name from single word bundle identifiers.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fixes panic when exiting the `ios dev` command with Ctrl + C.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Use actual iOS plugin instance to run command with `throws`.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Fixes running on device using Xcode 14.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Fixes the iOS project script to build the Rust library.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Fixes `TAURI_*` environment variables for hook scripts on mobile commands.

View File

@@ -0,0 +1,5 @@
---
"@tauri-apps/cli": 'patch:enhance'
---
Update tauri-mobile to fix running ADB scripts.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Update Android project template with fix to crash on orientation change.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Fixes boolean plugin parameters freezing the application.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Clear Android plugin JSON file before building Rust library to ensure removed plugins are propagated to the Android project.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Readd the Cargo.toml file to the plugin template.

View File

@@ -0,0 +1,5 @@
---
"tauri-build": 'patch:bug'
---
Fixes injection of the proguard rules on the Android project.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Fixes ProGuard rules.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Fix compilation issues without the shell API features.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Fixes the Android build gradle plugin implementation on Windows.

View File

@@ -1,6 +0,0 @@
---
"tauri": patch:bug
"tauri-codegen": patch:bug
---
Fixes asset resolving when not using the `compression` feature.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Fixes iOS build script using the wrong path for the app library file.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Force colored logs on mobile commands.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Generate `TauriActivity` Kotlin class on the build script.

6
.changes/gradle-8.md Normal file
View File

@@ -0,0 +1,6 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Update android template to gradle 8.0

8
.changes/gtk16.md Normal file
View File

@@ -0,0 +1,8 @@
---
"tauri-runtime": 'minor:feat'
"tauri-runtime-wry": 'minor:feat'
"tauri": 'minor:feat'
---
Update gtk to 0.16.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Improve local IP address detection with user selection.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Improve the `run_mobile_plugin` function error handling.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Inject Tauri configuration in the Android assets.

View File

@@ -0,0 +1,5 @@
---
"tauri": 'patch:enhance'
---
Inject `proguard-tauri.pro` file in the Android project.

View File

@@ -0,0 +1,6 @@
---
"tauri-macros": 'patch:enhance'
"tauri": 'patch:enhance'
---
Added support to attibutes for each command path in the `generate_handler` macro.

View File

@@ -0,0 +1,7 @@
---
"tauri-macros": major:feat
"tauri-codegen": major:feat
"tauri": major:feat
---
Return `bool` in the invoke handler.

View File

@@ -0,0 +1,5 @@
---
"tauri-build": 'patch:enhance'
---
Read the `IPHONEOS_DEPLOYMENT_TARGET` environment variable to set the Swift iOS target version, defaults to 13.

View File

@@ -3,4 +3,4 @@
"@tauri-apps/cli": patch:feat
---
Added migration from `2.0.0-beta` to `2.0.0-rc`.
Generate empty entitlements file for the iOS project.

View File

@@ -1,7 +0,0 @@
---
"tauri-utils": patch:feat
"@tauri-apps/cli": patch:feat
"tauri-cli": patch:feat
---
Added `bundle > iOS > frameworks` configuration to define a list of frameworks that are linked to the Xcode project when it is generated.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Added `--ios-color` option to the `tauri icon` command.

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---
Keep the process alive even when the iOS application is closed.

Some files were not shown because too many files have changed in this diff Show More