From 0619f018fbade5d988c44f69a5f2ec0098e3e05b Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Fri, 25 Nov 2022 00:27:51 -0800 Subject: [PATCH 1/3] Update feature.yml --- .github/ISSUE_TEMPLATE/feature.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml index 71a6ae15..40e28a9e 100644 --- a/.github/ISSUE_TEMPLATE/feature.yml +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -1,6 +1,6 @@ name: Feature Request description: Request a new feature -title: "[Enhancement]: " +title: "[Feature]: " labels: ["enhancement"] body: - type: markdown From d9734d3f8b8dc38f65a8774e5f5beda3a7926e83 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Fri, 25 Nov 2022 00:28:30 -0800 Subject: [PATCH 2/3] Update feature.yml --- .github/ISSUE_TEMPLATE/feature.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.yml index 40e28a9e..88a3b118 100644 --- a/.github/ISSUE_TEMPLATE/feature.yml +++ b/.github/ISSUE_TEMPLATE/feature.yml @@ -1,6 +1,6 @@ name: Feature Request description: Request a new feature -title: "[Feature]: " +title: "[Feature Request]: " labels: ["enhancement"] body: - type: markdown From 44a388f0c82be5adbd93e038f5c100ebb5f34f42 Mon Sep 17 00:00:00 2001 From: Joshua Pirihi Date: Thu, 15 Dec 2022 06:16:07 +1300 Subject: [PATCH 3/3] Add security call when importing mbtiles file --- Meshtastic/MeshtasticApp.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Meshtastic/MeshtasticApp.swift b/Meshtastic/MeshtasticApp.swift index 98958a3e..84ae1e6a 100644 --- a/Meshtastic/MeshtasticApp.swift +++ b/Meshtastic/MeshtasticApp.swift @@ -66,6 +66,12 @@ struct MeshtasticAppleApp: App { let destination = documentsDirectory.appendingPathComponent("offline_map.mbtiles", isDirectory: false) if !self.saveChannels { + + //tell the system we want the file please + guard url.startAccessingSecurityScopedResource() else { + return + } + //do we need to delete an old one? if (fileManager.fileExists(atPath: destination.path)) { print("ℹ️ Found an old map file. Deleting it")