Commit Graph

78 Commits

Author SHA1 Message Date
Amr Bashir
70306dc79b ci: check toml formatting with taplo-cli (#10787)
* ci: check toml formatting with taplo-cli

* change name of job

* { workspace = true } -> .workspace = true

* add taplo.toml
2024-08-26 21:46:05 -03:00
Amr Bashir
ad83d41cb5 chore: cleanup and simplify examples (#10743) 2024-08-27 01:25:36 +03:00
Amr Bashir
c01e87ad46 refactor(cli/migrate): use oxc kit to parse and migrate js/ts files (#10198)
* refactor(cli/migrate): use `oxc` kit to parse and migrate js/ts files

closes #10192

* fix tests

* use majic-string to perserve formatting

* more comments

* Discard changes to package.json

* Update cli-migrate-enhancemnets.md

* Update cli-migrate-enhancemnets.md

* more context

* add missing quotes, rename getcurrent

* fix change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-07-12 09:03:30 -03:00
Lucas Fernandes Nogueira
8a1ae2deaf feat(plugin): add option to use a Xcode project for iOS (#9843)
* wip

* add option to use xcode project

* configuration

* clear env

* add change file

* remove xcuserdatad

* delete xcuserstate
2024-05-24 08:23:41 -03:00
Amr Bashir
d1e77acd8d refactor!(core): remove Icon enum and add Image type (#9011)
* refactor!(core): remove `Icon` enum and add `Image` type

* clippy

* revert api example config change

* Update image.rs

* fix build

* clippy

* change files

* add back removed methods as setter functions

* simplify error message

* Update .changes/runtime-icon-lifetime.md

* Update .changes/ico-featrue-flags.md

* Update core/tauri/src/image.rs

* update api lockfile

* update api ref

* lint

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-29 09:05:11 -03:00
Lucas Fernandes Nogueira
3657ad82f8 feat(core): allow defining permissions for the app commands (#9008)
* feat(core): allow defining permissions for the app commands

* global scope

* command scope

* write to disk

* lint

* fix path

* get autogenerated commands from generate_handler macro

* revert

* remove cli

* use const instead of empty str
2024-02-28 08:45:28 -03:00
Amr Bashir
b9e6a01879 refactor(cli): use tauri/custom-protocol instead of relying on user having custom-protocol in their cargo features (#8937)
* refactor(cli): use `tauri/custom-protocol` instead of relying on user having `custom-protocol` in their cargo features

* tauri-build dev cfg

* pass build-feature when building apk

* run beforeBuildCommand before first build for plugins

* clippy

* fix

* mut

* enhance dev/prod checks

* lint [skip ci]

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-02-26 15:17:45 -03:00
Amr Bashir
77f49ad55e refactor: optimize undecorated resizing handling (#8790)
* refactor: optimize undecorated resizing handling

* license

* separate modules

* fix windows

* rename export

* fix export

* same for gtk

* shared hit_test function

* change cursor on drag

* only set cursor on windows

* Revert "only set cursor on windows"

This reverts commit 03294a8430.

* fix flickering on Windows, change cursor on motion on Linux

* remove changing cursor on move on linux

* fix linux implementation

* clippy

* Windows, on left click only

* prevent on fullscreen, use OS border size on Windows

* fix build

* clippy

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-02-18 15:56:57 -03:00
Amr Bashir
58fe2e812a fix: improvements and ipc fixes for loading window content using custom protocol (#8670)
* fix: improvements and ipc fixes for loading window content using custom protocol

closes #5478

* Discard changes to tooling/cli/Cargo.lock

* clippy

* fix tests

* typo

* fix webviewurl deserialize

* resolve todo, fixes

* fmt

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-01-31 09:38:25 -03:00
Lucas Fernandes Nogueira
ebc3e78e68 feat: update to latest wry (#8213)
Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
2023-11-21 12:32:06 -03:00
Lucas Fernandes Nogueira
2b6ffe0fd1 chore: update plugins-workspace branch usage from next to v2 (#8120) 2023-10-27 00:17:23 -03:00
Lucas Fernandes Nogueira
198abe3c2c feat(plugins): typed invoke arguments for mobile plugins (#8076) 2023-10-23 14:09:42 -03:00
Lucas Fernandes Nogueira
880266a7f6 chore: bump MSRV to 1.70 (#8031) 2023-10-17 11:08:15 -03:00
Amr Bashir
7fb419c326 refactor: move to muda and tray_icon crates (#7535)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-08-13 22:25:50 -03:00
Lucas Fernandes Nogueira
7bbc626cc3 Merge remote-tracking branch 'origin/dev' into next (#7212) 2023-06-15 09:52:33 -03:00
Amr Bashir
e1e85dc2a5 chore: fix ci and cleanup leftovers (#6925)
* chore: fix ci and cleanup leftovers

1. removed leftover feature flags
2. remove zip/extract apis which are not used anymore
3. removed leftoever scopes
4. removed leftover allowlist and updater options
5. updated the example api

* remove leftover updater structs

* move updater under bundle and remove uneeded options

* fix cli on linux

* remove create_proxy

* clippy

* more clippy

* clippppy

* readd path api

* fix api example

* remove window allowlist

* remove window from allowlist config

* remove `all` allowlist option

* remove file_move

* lint

* fix windows build

* remvoe unused deps

* remvoe allowlist config option, move protocol to `security > asset_protocol`

* fix diffing features

* fmt and test

* fix scope alias

* change files

* android lint

* simplify allow_file impl

* Revert "simplify allow_file impl"

This reverts commit b8882f2fd0.

* expose scopes

* remove unused error variants

* protocol-asset on docs.rs

* ignore reqwest on udeps

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-05-13 13:48:28 +03:00
Lucas Fernandes Nogueira
b072daa3bd refactor(core): move updater to a plugin (#6919) 2023-05-09 16:43:31 -07:00
Lucas Fernandes Nogueira
3188f37649 feat: update MSRV to 1.65 (#6883) 2023-05-06 17:16:52 -03:00
Lucas Fernandes Nogueira
0c11023bcf refactor(core): remove http-multipart Cargo feature (#6748) 2023-04-19 20:17:41 -03:00
Lucas Fernandes Nogueira
86488a6ad8 refactor(core): remove notification API (#6745) 2023-04-19 19:03:34 -03:00
Lucas Fernandes Nogueira
3f17ee82f6 refactor(core): remove global shortcut APIs (#6737) 2023-04-18 14:57:51 -03:00
Lucas Fernandes Nogueira
e6e586ad75 chore(examples): update API example plugin usage (#6715) 2023-04-16 09:31:38 -03:00
Lucas Fernandes Nogueira
fc4d687ef0 refactor(core): move file system endpoints to its own plugin (#6716) 2023-04-16 09:20:58 -03:00
Lucas Fernandes Nogueira
09376af594 refactor(core): remove cli feature (#6704) 2023-04-14 15:33:53 -03:00
Lucas Fernandes Nogueira
be941b9719 feat(core): add path plugin, implement mobile APIs (#6339) 2023-04-07 12:48:14 -03:00
Lucas Nogueira
9c324bae61 chore(examples): update tauri-plugin-log 2023-03-20 09:06:49 -03:00
Lucas Fernandes Nogueira
dddaa943e7 refactor(core): remove attohttpc client, closes #6415 (#6468)
* refactor(core): remove attohttpc client, closes #6415

* lint [skip ci]
2023-03-17 09:09:13 -03:00
Lucas Nogueira
8241ef13e9 chore(examples): update tauri-plugin-log 2023-03-16 09:37:46 -03:00
Lucas Fernandes Nogueira
5d94eaa3bc feat(core): update swift-rs (#6355)
* feat(core): update swift-rs

* update tauri-plugin-log

* use env var for min iOS version

* test x86_64-apple-ios

* Revert "test x86_64-apple-ios"

This reverts commit 3ae6b79e5f.

* chore: swift min version 5.3 [skip ci]

* fix build [skip ci]

* fix cgrect usage

* test CI

* Revert "test CI"

This reverts commit 76ce0c5992.

* update swift-rs to 1.0.1

* lint

* lint [skip ci]
2023-03-16 09:34:41 -03:00
Lucas Fernandes Nogueira
d11af5be8d fix(cli): adjust iOS project to work on simulator again (#6349) 2023-02-23 18:01:17 -03:00
Lucas Nogueira
1fd329935e Merge branch 'dev' into next 2023-02-19 11:34:02 -03:00
Amr Bashir
f6c3ea6faa chore: simplify windows_subsystem attribute (#6273) 2023-02-18 16:23:09 -03:00
Lucas Nogueira
3d5cc7ab86 Merge remote-tracking branch 'origin/dev' into next 2023-02-14 10:58:46 -03:00
Amr Bashir
a81750d779 feat(core): add shadow APIs (#6206)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-02-07 19:38:10 -03:00
Lucas Fernandes Nogueira
17f26764c8 feat: initial work for Android plugins (#6167) 2023-02-06 08:56:00 -03:00
Lucas Nogueira
553a81f48c feat(examples): add tauri-plugin-log to API example 2023-01-30 12:04:42 -03:00
Ngo Iok Ui (Wu Yu Wei)
7eb9aa75cf Update gtk to 0.16 (#6155)
Co-authored-by: Wu Yu Wei <wusyong9104@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2023-01-29 15:08:27 -03:00
Lucas Fernandes Nogueira
630a7f4b18 refactor: remove mobile log initialization, ref #6049 (#6081) 2023-01-17 13:13:53 -03:00
Fabian-Lars
b08ae637a0 fix(cli): remove default features from template (#6074) 2023-01-16 21:43:29 -03:00
Lucas Fernandes Nogueira
6dcb7fbb81 fix(core): manage mobile logs, fix Android logcat filtering (#5659) 2022-11-20 10:55:38 -03:00
Lucas Fernandes Nogueira
658bb1165e feat(cli): automatically enable native-tls-vendored feature on mobile (#5651) 2022-11-18 13:10:20 -03:00
Lucas Nogueira
69414a487f chore(cli): lint 2022-11-09 11:50:41 -03:00
Lucas Nogueira
d0ad0d2f48 Merge remote-tracking branch 'origin/dev' into next 2022-10-31 10:13:57 -03:00
Lucas Fernandes Nogueira
7d9aa3987e feat: bump MSRV to 1.59 (#5296) 2022-09-28 14:33:35 -03:00
Lucas Nogueira
610aab7045 Merge branch 'dev' into next 2022-09-04 13:45:59 -03:00
Lucas Fernandes Nogueira
ff4cb56b2e fix(tauri-macros): escape _ in mobile entry point's app name (#5029) 2022-08-24 14:02:08 -03:00
Lucas Fernandes Nogueira
641d56dcb3 feat(android): improve initialization scripts (#5028) 2022-08-24 13:06:45 -03:00
Lucas Fernandes Nogueira
9890486321 feat(core): add mobile_entry_point macro (#4983) 2022-08-21 10:35:34 -03:00
Lucas Fernandes Nogueira
6f0615044d feat(cli): add android dev and ios dev commands (#4982) 2022-08-20 16:53:07 -03:00
Lucas Nogueira
a9f8ac7f96 fix(examples): set API lib crate-type 2022-08-15 13:24:26 -03:00