Commit 1bb1ced 1 parent 68eb743 commit 1bb1ced Copy full SHA for 1bb1ced
File tree 2 files changed +12
-8
lines changed
2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " log " : patch
3
+ " log-js " : patch
4
+ ---
5
+
6
+ enable TargetKind::LogDir on mobile
Original file line number Diff line number Diff line change @@ -159,11 +159,12 @@ pub enum TargetKind {
159
159
///
160
160
/// ### Platform-specific
161
161
///
162
- /// |Platform | Value | Example |
163
- /// | ------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
164
- /// | Linux | `$XDG_DATA_HOME/{bundleIdentifier}/logs` or `$HOME/.local/share/{bundleIdentifier}/logs` | `/home/alice/.local/share/com.tauri.dev/logs` |
165
- /// | macOS | `{homeDir}/Library/Logs/{bundleIdentifier}` | `/Users/Alice/Library/Logs/com.tauri.dev` |
166
- /// | Windows | `{FOLDERID_LocalAppData}/{bundleIdentifier}/logs` | `C:\Users\Alice\AppData\Local\com.tauri.dev\logs` |
162
+ /// |Platform | Value | Example |
163
+ /// | --------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
164
+ /// | Linux | `$XDG_DATA_HOME/{bundleIdentifier}/logs` or `$HOME/.local/share/{bundleIdentifier}/logs` | `/home/alice/.local/share/com.tauri.dev/logs` |
165
+ /// | macOS/iOS | `{homeDir}/Library/Logs/{bundleIdentifier}` | `/Users/Alice/Library/Logs/com.tauri.dev` |
166
+ /// | Windows | `{FOLDERID_LocalAppData}/{bundleIdentifier}/logs` | `C:\Users\Alice\AppData\Local\com.tauri.dev\logs` |
167
+ /// | Android | `{ConfigDir}/logs` | `/data/data/com.tauri.dev/files/logs` |
167
168
LogDir { file_name : Option < String > } ,
168
169
/// Forward logs to the webview (via the `log://log` event).
169
170
///
@@ -451,9 +452,6 @@ impl Builder {
451
452
) ?) ?
452
453
. into ( )
453
454
}
454
- #[ cfg( mobile) ]
455
- TargetKind :: LogDir { .. } => continue ,
456
- #[ cfg( desktop) ]
457
455
TargetKind :: LogDir { file_name } => {
458
456
let path = app_handle. path ( ) . app_log_dir ( ) ?;
459
457
if !path. exists ( ) {
You can’t perform that action at this time.
0 commit comments