From 54ae255e9e5af3813820b8744d57123ca0f3f1bb Mon Sep 17 00:00:00 2001
From: Hyperling <me@hyperling.com>
Date: Fri, 25 Apr 2025 08:39:56 -0700
Subject: [PATCH] Add var for number of seconds between data refreshes. Rename
 locals file to config and also end example files in `.dart`.

---
 .gitignore                                             | 5 +++--
 lib/var/config.EXAMPLE.dart                            | 5 +++++
 lib/var/locals.dart.EXAMPLE                            | 3 ---
 lib/var/{secrets.dart.EXAMPLE => secrets.EXAMPLE.dart} | 2 +-
 4 files changed, 9 insertions(+), 6 deletions(-)
 create mode 100644 lib/var/config.EXAMPLE.dart
 delete mode 100644 lib/var/locals.dart.EXAMPLE
 rename lib/var/{secrets.dart.EXAMPLE => secrets.EXAMPLE.dart} (67%)

diff --git a/.gitignore b/.gitignore
index a99e512..1472bf5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -244,7 +244,8 @@ app.*.map.json
 /android/app/release
 
 # Do not post secrets!
-secrets.dart
+lib/var/secrets.dart
 
 # Keep locals local.
-locals.dart
+lib/var/local.dart
+lib/var/config.dart
diff --git a/lib/var/config.EXAMPLE.dart b/lib/var/config.EXAMPLE.dart
new file mode 100644
index 0000000..70cf7e0
--- /dev/null
+++ b/lib/var/config.EXAMPLE.dart
@@ -0,0 +1,5 @@
+// This file needs renamed `local.dart` when implemented.
+
+// Project-wide configuration variables for both testing and production.
+const bool debug = false;
+const int limitRefreshSeconds = 60;
diff --git a/lib/var/locals.dart.EXAMPLE b/lib/var/locals.dart.EXAMPLE
deleted file mode 100644
index ebcea57..0000000
--- a/lib/var/locals.dart.EXAMPLE
+++ /dev/null
@@ -1,3 +0,0 @@
-// This file needs renamed `local.dart` if implemented.
-
-const bool debug = false;
diff --git a/lib/var/secrets.dart.EXAMPLE b/lib/var/secrets.EXAMPLE.dart
similarity index 67%
rename from lib/var/secrets.dart.EXAMPLE
rename to lib/var/secrets.EXAMPLE.dart
index d55f238..14dff99 100644
--- a/lib/var/secrets.dart.EXAMPLE
+++ b/lib/var/secrets.EXAMPLE.dart
@@ -1,3 +1,3 @@
 // This file needs renamed `secrets.dart` and filled out properly if implemented.
 
-final openWeatherKey = "abc123";
+final String openWeatherKey = "abc123";