* fix(android): avoid rebuilds if nothing changed
Unconditionally overwriting files where the build reruns if they changed
leads to rebuilds every time.
Only overwrite a file if its content is different to not rebuild in such
a case.
* Update build.rs
---------
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
* fix: Incorrect linux target name
The target configuration leaves it possible for gtk to not be found. It
is my understanding, that the "unknown-linux" is supposed to be "linux".
Fix it by changing the checked target name to "linux".
Signed-off-by: Esa Laakso <esa.laakso@fidelix.com>
* remove unused aliases
* Update build.rs
---------
Signed-off-by: Esa Laakso <esa.laakso@fidelix.com>
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
* Add cfg_aliases for easier feature configuration
* Add native feature flag to public
* Rename feature to os-webview
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* Refactor new method entry point to rwh
* Update doc and add change file
* Fix mac and ios compile error
* Add new_as_child
* Add rhw_04, 05 06 flags
* Update android port
* Remove winit CI
* Fix android bindings
* windows implementation
* Update Cargo.toml
* Fix macOS and iOS
* Fix Android
* fix is_child on WkWebView
* x11 impl
* expose `new_gtk`
* fix winit-gtk version
* remove undecorated resizing handling
* implement set_position and set_size for child gtk in x11
* fix macos
* more fixes
* one more time
* unreachable
* update actions
* fix windows
* some clippy
* Add documentation and fix clippy
* Fix windows clippy error
* Fix android biuld
* Fix documentation test
* Fix android again
* Reduce clippy noise
* use rc?
* refine some documentation, add set_visible
* fix set_visible
* impl set_visible on Windows
* fix doctests
* more set_visible fixes
* fix windows
* unsafe
* fix set size for child webviews
* fix initial visibility with new_gtk
* refine examples
* fix wpgu example
* fix examples on windows and macos
* use a better workaround
* make set_size work on x11
* Fix size in multiwebview example
* Add visible method on macOS and iOS
* remvoe `tao` from android backend and update documentation
* fix winit example
* Add new_as_content_view on macOS
* allow using raw-window-handle v0.5 [skip ci]
* change trait name [skip ci]
* fix linux impl [skip ci]
* fix android build [skip ci]
* fix windows build
* fix(macos): do not autoresize on child webview [skip ci]
* fix macos coordinates [skip ci]
* fix example [skip ci]
* fixed child on macos [skip ci]
* fix docs typos [skip ci]
* fix webview position when it's not a child [skip ci]
* replace new_as_content_view with new_as_subview
* with_as_subview instead of constructor [skip ci]
* fix position/size when as_subview is true
* lint & fmt
* Fix ios build
* Fix cargo test
* Fix mac build
* Update macOS contrusctors
* cargo fmt
* impl drop on Windows
* fix child transparency on Windows (still needs PRs in tao and winit)
* fix winit usage in the examples, use rwh_05 only for now
* fix tests
* add webview.focus
* fix dropping on Linux
* chore clean examples
* implement focus on Linux
* macos focus
---------
Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* refactor(build): adjust rerun-if-changed instruction for Android files
Tauri will also need to write to the `WRY_ANDROID_KOTLIN_FILES_OUT_DIR` path, so watching for changes in the entire directory will result in unnecessary builds being triggered (always). Changing the instruction to be per file fixes this problem.
* fix println
* feat(android): generate kotlin files at build time
* changefile
* Update kotlin-files.md
* fix android ci
* Add option for extra code when generating files
* rerun build script when env changes
* change it to a class code, prepare var name for future additions
* Delete MainActivity.kt
* uppercase [skip ci]
* fix android detection
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* chore(tools): add rustfmt / toolchain
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com>
* chore(.github)
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com>
* chore(workflows): audit, clippy, fmt, udeps
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com>
* Remove some files for simplicity
* cargo fmt
* cargo clippy
* Remove clippy ci check
There are several rules violate clippy but we use it for debug and compatibility for system api. So we have to remove it.
Co-authored-by: Ngo Iok Ui <wusyong9104@gmail.com>