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
Amr Bashir
ba9590aa92
feat!: add Listener and Emitter traits ( #9640 )
...
* feat!: add `Listener` and `Emitter` traits
* keep only trait implementation
* change file
* fix doctests
* fix build
2024-07-12 09:01:40 -03:00
Hamir Mahal
1a88fc1a9b
style: simplify string formatting ( #10259 )
...
* style: simplfiy string formatting
* fix: file formatting in `core/`
2024-07-12 13:33:14 +03:00
Amr Bashir
2b1ceb40d3
refactor(api)!: renamed getCurrent
functions to avoid ambiguity ( #10229 )
...
* refactor(api)!: renamed `getCurrent` functions to avoid ambiguity
closes #10193
* Update .changes/get-current-ambguity.md
* rename `getAll` and update docs and examples
2024-07-11 14:26:15 +03:00
Tony
249cdde9b6
Fix Serialize impl missing TSend ( #10252 )
2024-07-11 11:11:15 +02:00
Tony
11339418b1
chore(example/api): fix enter doesn't work on input with action button ( #10254 )
...
* Fix enter doesn't work on input with action button
* Use form
2024-07-11 11:06:36 +02:00
Lorenzo Rizzotti
b4e16f3d8e
fix(android): fix Android Studio project plugin link ( #10235 )
...
* add plugin resolution to gradle settings
This is needed to make Android Studio able to link to the project
* reflect codegen edit in the plugin example
2024-07-10 14:26:06 +03:00
Tony
a4a7233081
chore(example): refactor api example ( #10228 )
2024-07-09 12:00:06 +03:00
Tony
afb102c59b
fix(runtime-wry): window edge not working after setting resizable false and decorated false dynamically ( #10211 )
...
* Fix window edge not working
after setting resziable false and decorated false dynamically
* Fix example don't go crazy on resize
* cargo fmt
2024-07-08 15:24:55 +03:00
Tony
11aa7743e7
enhance!(nsis): use !ifmacrodef
for installer hooks ( #10177 )
2024-07-03 05:48:22 +03:00
Tony
5878fb45ce
chore: Update api example ( #10144 )
2024-06-28 11:21:54 +02:00
Tony
cee0bfcd6c
feat(core): make all tray and menu permissions enable by default ( #10092 )
...
* Make all tray and menu permissions on by default
* Update example capabilities
* Add change file
2024-06-24 19:50:06 +03:00
Tony
16641723b0
chore(deps): update js dev dependencies ( #10051 )
2024-06-14 05:28:06 +03:00
dependabot[bot]
85889f289b
chore(deps): bump braces from 3.0.2 to 3.0.3 in /examples/api ( #10040 )
...
Bumps [braces](https://github.com/micromatch/braces ) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md )
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3 )
---
updated-dependencies:
- dependency-name: braces
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 11:17:15 +02:00
github-actions[bot]
a0a76cea2f
Apply Version Updates From Current Changes ( #9911 )
...
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-05-29 13:58:51 -03:00
github-actions[bot]
594e3e2939
Apply Version Updates From Current Changes ( #9869 )
...
* apply version updates
* fix bundler version
* update lockfile
---------
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-05-29 00:10:20 -03:00
Amr Bashir
265c23886e
refactor(cli&bundler): avoid renaming main executable and preserve cargo name ( #9375 )
...
* refactor(cli&bundler): avoid renaming main executable and reserve cargo name
closes #8109
closes #8349
* fix bundler
* fix test
* Discard changes to core/tauri-build/Cargo.toml
* revert Cargo.toml changes
* Discard changes to Cargo.lock
* Discard changes to tooling/cli/Cargo.lock
* lock file
* use product name for installers
* only warn for sign on windows
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-05-28 13:50:41 -03:00
Amr Bashir
bcc63bf36d
chore(examples/streaming): use get getrandom
to generate boundary ( #9546 )
2024-05-28 11:50:55 -03:00
Lucas Fernandes Nogueira
9970d88bec
chore(android): update to latest Gradle ( #9892 )
2024-05-27 15:58:00 -03:00
Lucas Fernandes Nogueira
80aa504987
chore(cli): update Android target SDK to 34 ( #9870 )
2024-05-25 07:46:34 -03:00
Amr Bashir
c4410daa85
feat(tray): add enter
, move
and leave
events ( #9777 )
...
* feat(tray): add `enter`, `move` and `leave` events
closes #8584
* update api example
* check button state [skip ci]
* fix enum [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-05-24 14:56:32 -03:00
Amr Bashir
276c4b1438
fix(Windows): sync menubar theme with the window theme ( #9832 )
...
* fix(Windows): sync menubar theme with the window theme
ref: https://github.com/tauri-apps/muda/issues/170
* fix moc runtime
* muda 0.13.4
* missing change file
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-05-24 14:23:54 -03:00
Jason Tsai
1df5cdeb06
refactor!: use tauri.conf.json > identifier
as package name and bundle id, close #9851 ( #9858 )
...
* fix(android): use identifier as Android package name
* update android_binding and android_fn interface
* chore: rename TAURI_ANDROID_PACKAGE_PREFIX to TAURI_ANDROID_PACKAGE_NAME
* revert back to split prefix and app_name
* rename `domain` to `identifier`
* add change log
* simplify reverse config identifier
* Update .changes/mobile-use-identifier-as-id.md
* Update core/tauri-build/src/lib.rs
* lint
* cargo-mobile2 0.12
* fmt
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-05-24 09:22:41 -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
Tony
ae6b13dfc0
feat(core): add app-region: drag
to data-tauri-drag-region
( #9789 )
2024-05-22 19:45:39 +03:00
ryoichi
0c61784efb
fix(example/state): correct invoke method path to __TAURI__.core.invoke() ( #9817 )
2024-05-19 11:16:23 +02:00
ryoichi
fe90a2925e
fix(examples/parent-window): fix typo in import ( #9816 )
2024-05-19 10:54:51 +02:00
Tony
31aa90f514
chore(example): fix duplicated windows implement and update deps ( #9772 )
2024-05-14 13:25:15 +02:00
Amr Bashir
a813caf2e4
chore(examples/parent-window): fix import closes #9704 ( #9705 )
...
* chore(examples/parent-window): fix import
closes #9704
* lock file
2024-05-08 19:06:07 +03:00
Amr Bashir
783ef0f2d3
refactor!(core): return result in Webview/WebviewWindow::url
getter ( #9647 )
...
* refactor!(core): return result in `Webview/WebviewWindow::url` getter
* clippy
* Apply suggestions from code review
2024-05-07 17:16:17 +03:00
Tony
5ce0737e9a
Update denpendencies ( #9688 )
2024-05-07 11:22:05 +02:00
Amr Bashir
48a7a78f80
fix(api): fix dpi types serialization ( #9376 )
...
* fix(api): fix dpi types serialization
closes #9370
* Update api-position-size-args.md
* lint
* setMinSize and setMaxSize
* Update api-position-size-args.md
2024-04-15 12:04:20 +02:00
dependabot[bot]
b231f4c2e5
chore(deps-dev): bump vite from 4.5.2 to 4.5.3 in /examples/api ( #9377 )
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 4.5.2 to 4.5.3.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.3/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v4.5.3/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-04 03:39:51 +02:00
Amr Bashir
284eca9ef2
refactor(core): scope JS resources to the webview ( #9272 )
...
* refactor(core): scope JS resources to the webview
* clippy
* change files
* swap args order
* more clippy
* just add them on each type
* clippy
* macro docs
* Update mod.rs
* use random rid
* revert resource table arg change
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2024-04-02 14:41:47 -03:00
Lucas Fernandes Nogueira
06833f4fa8
feat(ipc): enhance request URL checks, update wry, refactor file drop ( #9100 )
...
* feat(ipc): enhance request URL checks
* actually use req url
* fix windows, tests
* wry 0.38, file drop refactor
* wry 0.38.1
* adjust for windows [skip ci]
* wry 0.38.2 [skip ci]
* update to latest tao, wry, muda and tray-icon
* change tag
* serde
* use published crates
* downgrade cargo-platform to 0.1.7
---------
Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
2024-04-01 13:03:39 -03:00
Fabian-Lars
c33f6e6cf3
fix(core): Announce new webviews and windows ( #9211 )
...
* fix(core): Announce new webviews and windows
fixes #9200
fixes #8144
* fix js import in example
* emit created events to all listeners.
* remove duplicate event
2024-03-28 02:23:19 +02:00
Lucas Fernandes Nogueira
e227fe02f9
feat(core): allow defining global API script on plugin build ( #9156 )
...
* feat(core): allow defining global API script on plugin build
Adds `tauri_plugin::Builder::global_api_script_path` so plugin authors can define the JavaScript global API bindings (supposed to be injected to `window.__TAURI__`) at compile time, so the string is only part of the binary when withGlobalTauri is true.
Currently this needs to be done manually at runtime (and it's always added to the binary via include_str).
* prefix variable
* use list of scripts instead of combining them
* static str
* header [skip ci]
* slice
2024-03-12 12:01:13 -03:00
Lucas Fernandes Nogueira
e673854c83
fix(acl): inconsistencies on urlpattern usage for remote domain URL ( #9133 )
...
* fix(acl): inconsistencies on urlpattern usage for remote domain URL
* remove println!
* typo
* fix tests
2024-03-11 13:39:17 -03:00
Lucas Fernandes Nogueira
db0a24a973
refactor(core): use the image crate ( #9132 )
2024-03-11 11:46:34 -03:00
Dimitris Apostolou
26f0f71a40
chore: fix various typos ( #9131 )
2024-03-11 16:25:20 +02:00
Lucas Fernandes Nogueira
ba0206d8a3
feat(core): allow swapping the assets implementation ( #9141 )
2024-03-11 11:07:15 -03:00
Lucas Nogueira
9247ecf2a4
chore(cli): update Cargo.lock
2024-03-07 20:24:53 -03:00
Lucas Fernandes Nogueira
ed48e2b3c7
feat(core): expose the image module ( #9122 )
...
* feat(core): expose the image module
* code review
* fix import
* fix
* fix codegen
* jsimage owned
* fmt
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-03-07 19:23:21 -03:00
Amr Bashir
5541aafef3
fix(core): fix emit skipping webview listeners if filter wasn't provided ( #9107 )
...
* fix(core): fix emit skipping webview listeners if filter wasn't provided
* Update .changes/core-emit-js-all-targets.md
* update api example
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-03-07 20:36:52 +02:00
Lucas Fernandes Nogueira
9323fb7cda
fix(utils): ToTokens impl for ResolvedCommand broken on release ( #9087 )
2024-03-05 14:54:24 -03:00
Lucas Fernandes Nogueira
4bf1c55b0d
Revert "feat(core): use a strict CSP on the isolation iframe ( #9075 )" ( #9078 )
2024-03-04 22:22:49 -03:00
Lucas Fernandes Nogueira
7cec1049e8
feat(core): use a strict CSP on the isolation iframe ( #9075 )
2024-03-04 21:10:34 -03:00
Lucas Fernandes Nogueira
6c06832246
fix(acl): scope resolution should be per window ( #9068 )
...
* fix(acl): scope resolution should be per window
* Update core/tauri-utils/src/acl/resolved.rs
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* update snapshots
* lint
---------
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2024-03-04 17:01:30 -03:00
Amr Bashir
77b9a508a4
feat(api): add Image
class ( #9042 )
...
* feat(api): add `Image` class
* clippy
* license headers
* small cleanup
* fixes
* code review
* readd from_png_bytes and from_ico_bytes
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2024-03-03 04:31:08 +02:00
Amr Bashir
4b75834a41
chore: update license headers 2024 ( #9043 )
2024-03-01 08:29:01 -03:00