From 3e4bacb7b939b1de98a2fb07115f638750637357 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 8 May 2026 00:05:39 +0300 Subject: Rewrite as Flutter app and rename to Quicklog 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 --- android_shared_stub_test.go | 51 --------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 android_shared_stub_test.go (limited to 'android_shared_stub_test.go') diff --git a/android_shared_stub_test.go b/android_shared_stub_test.go deleted file mode 100644 index 7b42b3a..0000000 --- a/android_shared_stub_test.go +++ /dev/null @@ -1,51 +0,0 @@ -//go:build !android - -package main - -import "testing" - -func TestReadSharedFromCacheStub(t *testing.T) { - txt, err := readSharedFromCache() - if err != nil { - t.Fatalf("stub returned error: %v", err) - } - if txt != "" { - t.Errorf("stub returned non-empty text: %q", txt) - } -} - -func TestHandleSharedTextLoadAutoLogSkipsEmptyStubText(t *testing.T) { - var clearCalls int - - handleSharedTextLoad( - "", - true, - t.TempDir(), - func(string) { - t.Fatal("prefill should not be called for empty shared text") - }, - func() { - t.Fatal("focus should not be called for empty shared text") - }, - func() { - t.Fatal("resetInput should not be called for empty shared text") - }, - func() { - clearCalls++ - }, - func(string, string) error { - t.Fatal("logEntry should not be called for empty shared text") - return nil - }, - func(string, string) { - t.Fatal("info dialog should not be shown for empty shared text") - }, - func(error) { - t.Fatal("error dialog should not be shown for empty shared text") - }, - ) - - if clearCalls != 1 { - t.Fatalf("expected cache cleanup once, got %d", clearCalls) - } -} -- cgit v1.2.3