diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-08 00:05:39 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-08 00:05:39 +0300 |
| commit | 3e4bacb7b939b1de98a2fb07115f638750637357 (patch) | |
| tree | 0897a6854d1c3ca3b1d0252657e992abbba061ba /android_shared_android.go | |
| parent | 665b150727ee7259e398d38d1f6bc51b4c2d4a1c (diff) | |
Rewrite as Flutter app and rename to Quicklogmain
Drop the Go/Fyne implementation and replace it with a native Flutter app
targeting Android (primary) and Linux desktop (development). Rename
quicklogger -> quicklog throughout (project, applicationId, MethodChannel,
cache filename, AppBar title, Linux binary).
Storage on Android moves to /Android/data/org.buetow.quicklog/files/ so
MANAGE_EXTERNAL_STORAGE is no longer required. Share-intent receive is
preserved via a Kotlin ShareActivity that writes shared text to the app
cache, which Dart reads through a MethodChannel on app resume; MainActivity
also accepts SEND directly so launchers that prefer the main target work.
New since the Fyne version: an entry browser screen with read-only viewer
and long-press delete.
Cross-compiling to Android ARM from amd64 Linux no longer needs Docker /
fyne-cross / NDK -- flutter build apk emits ARM binaries directly.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Diffstat (limited to 'android_shared_android.go')
| -rw-r--r-- | android_shared_android.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/android_shared_android.go b/android_shared_android.go deleted file mode 100644 index b29f830..0000000 --- a/android_shared_android.go +++ /dev/null @@ -1,26 +0,0 @@ -//go:build android - -package main - -import ( - "os" - "path/filepath" -) - -// sharedTextCachePath returns the cache file used for Android share intents. -func sharedTextCachePath() string { - dir, derr := os.UserCacheDir() - if derr != nil || dir == "" { - dir = os.TempDir() - } - return filepath.Join(dir, "quicklogger-shared.txt") -} - -// readSharedFromCache tries to read the shared text written by the Android activity. -func readSharedFromCache() (string, error) { - b, err := os.ReadFile(sharedTextCachePath()) - if err != nil { - return "", err - } - return string(b), nil -} |
