From f19b0b0c7ac10255cc08d0e2dfd7228a7b03b18d Mon Sep 17 00:00:00 2001 From: Maxime Marinel Date: Sat, 10 Feb 2024 17:21:16 +0100 Subject: [PATCH] fix #413 (#414) --- Intents/AddEntryIntent.swift | 1 + bagit/ShareViewController.swift | 1 + wallabag.xcodeproj/project.pbxproj | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Intents/AddEntryIntent.swift b/Intents/AddEntryIntent.swift index 798a0a7e..bc759a06 100644 --- a/Intents/AddEntryIntent.swift +++ b/Intents/AddEntryIntent.swift @@ -14,6 +14,7 @@ struct AddEntryIntent: WallabagIntent { } func perform() async throws -> some IntentResult { + _ = try await kit.requestTokenAsync() _ = try await kit.send(to: WallabagEntryEndpoint.add(url: url.absoluteString)) return .result() diff --git a/bagit/ShareViewController.swift b/bagit/ShareViewController.swift index 9d720529..4e1afc9e 100644 --- a/bagit/ShareViewController.swift +++ b/bagit/ShareViewController.swift @@ -59,6 +59,7 @@ class ShareViewController: UIViewController { Task { do { + _ = try await kit.requestTokenAsync() let _: WallabagEntry = try await kit.send(to: WallabagEntryEndpoint.add(url: shareURL)) self.clearView(withError: nil) } catch { diff --git a/wallabag.xcodeproj/project.pbxproj b/wallabag.xcodeproj/project.pbxproj index 46a4bc2b..cdabddec 100644 --- a/wallabag.xcodeproj/project.pbxproj +++ b/wallabag.xcodeproj/project.pbxproj @@ -1271,7 +1271,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 17.0; - MARKETING_VERSION = 7.2.0; + MARKETING_VERSION = 7.2.1; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; @@ -1330,7 +1330,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 17.0; - MARKETING_VERSION = 7.2.0; + MARKETING_VERSION = 7.2.1; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SWIFT_COMPILATION_MODE = wholemodule;