让企业管理更智慧、更快捷
Skip to content
GitLab
探索
登录
注册
主导航
搜索或转到…
项目
Tauri Plugin Intents
管理
动态
成员
标记
计划
议题
议题看板
里程碑
Wiki
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
构建
流水线
作业
流水线计划
产物
部署
发布
Package registry
模型注册表
运维
环境
Terraform 模块
监控
事件
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
模型实验
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为 GitLab 提交贡献
提交反馈
快捷键
?
代码片段
群组
项目
显示更多面包屑
package
Tauri Plugin Intents
提交
f72fa0bc
提交
f72fa0bc
编辑于
5 months ago
作者:
周建
浏览文件
操作
下载
补丁
差异文件
完善说明
上级
37216aa6
分支
master
No related tags found
无相关合并请求
变更
3
隐藏空白变更内容
行内
左右并排
显示
3 个更改的文件
README.md
+33
-2
33 个添加, 2 个删除
README.md
android/.gradle/buildOutputCleanup/buildOutputCleanup.lock
+0
-0
0 个添加, 0 个删除
android/.gradle/buildOutputCleanup/buildOutputCleanup.lock
android/.gradle/buildOutputCleanup/cache.properties
+1
-1
1 个添加, 1 个删除
android/.gradle/buildOutputCleanup/cache.properties
有
34 个添加
和
3 个删除
README.md
+
33
−
2
浏览文件 @
f72fa0bc
...
...
@@ -10,11 +10,42 @@ npm i @package/tauri-plugin-intents
```
Tauri应用Cargo.toml
```
[dependencies]
```
diff
[
target.'cfg(target_os = "android")'.
dependencies]
+ tauri-plugin-intents = { versions = "x.x.x", git = "https://git.leadwaycloud.com/package/tauri-plugin-intents" }
```
修改src-tauri/src/lib.rs 的初始化中
```
diff
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.setup(|app| {
+ #[cfg(mobile)]
+ app.handle().plugin(tauri_plugin_intents::init())?;
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
```
修改src-tauri/capabilities/mobile.json 允许前端允许指定方法
```
diff
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "enables the default permissions",
"windows": [
"main"
],
"permissions": [
"core:default",
+ "intents:default"
]
}
```
## Usage
## API
...
...
此差异已折叠。
点击以展开。
android/.gradle/buildOutputCleanup/buildOutputCleanup.lock
+
0
−
0
浏览文件 @
f72fa0bc
无法预览此类型文件
此差异已折叠。
点击以展开。
android/.gradle/buildOutputCleanup/cache.properties
+
1
−
1
浏览文件 @
f72fa0bc
#Fri Mar 14 1
0:27:23
CST 2025
#Fri Mar 14 1
4:19:48
CST 2025
gradle.version
=
8.9
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录