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;