diff --git a/IteoLogger.podspec b/IteoLogger.podspec index b00fdbf..19b9a35 100644 --- a/IteoLogger.podspec +++ b/IteoLogger.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'IteoLogger' - spec.version = '1.2' + spec.version = '1.3' spec.license = { :type => 'MIT' } spec.homepage = 'https://github.com/psredzinski/IteoLogger' spec.authors = { 'Patryk ŚredziΕ„ski' => 'patryk.sredzinski@iteo.com' } diff --git a/IteoLogger.xcodeproj/project.pbxproj b/IteoLogger.xcodeproj/project.pbxproj index 76390f1..f405545 100644 --- a/IteoLogger.xcodeproj/project.pbxproj +++ b/IteoLogger.xcodeproj/project.pbxproj @@ -725,7 +725,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 13.0; - MARKETING_VERSION = 1.2; + MARKETING_VERSION = 1.3; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; @@ -784,7 +784,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 13.0; - MARKETING_VERSION = 1.2; + MARKETING_VERSION = 1.3; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SDKROOT = iphoneos; diff --git a/IteoLogger/Consumers/IteoLoggerStorageItemConsumer.swift b/IteoLogger/Consumers/IteoLoggerStorageItemConsumer.swift index 5180e62..cbd48f3 100644 --- a/IteoLogger/Consumers/IteoLoggerStorageItemConsumer.swift +++ b/IteoLogger/Consumers/IteoLoggerStorageItemConsumer.swift @@ -69,10 +69,13 @@ private extension IteoLoggerStorageItemConsumer { } let file = try FileHandle(forWritingTo: filePath) - file.seekToEndOfFile() - file.write(dataToLog) - file.closeFile() - + if #available(iOS 13.4, *) { + try file.seekToEnd() + try file.write(contentsOf: dataToLog) + } else { + file.write(dataToLog) + file.closeFile() + } } } diff --git a/IteoLogger/Models/IteoLoggerModule.swift b/IteoLogger/Models/IteoLoggerModule.swift index 3a3f55d..f525b44 100644 --- a/IteoLogger/Models/IteoLoggerModule.swift +++ b/IteoLogger/Models/IteoLoggerModule.swift @@ -183,6 +183,12 @@ public struct IteoLoggerModule: Codable, Equatable, Hashable { /// Deeplink - β›“ public static let deeplink = IteoLoggerModule("Deeplink" ,prefix: "β›“") + /// Link - πŸ”— + public static let link = IteoLoggerModule("Link" ,prefix: "πŸ”—") + + /// RichLink - πŸ—Ύ + public static let richlink = IteoLoggerModule("RichLink" ,prefix: "πŸ—Ύ") + /// Call - πŸ“ž public static let call = IteoLoggerModule("Call" ,prefix: "πŸ“ž")