Просмотр исходного кода

Merge branch 'master' into v8

# Conflicts:
#	Kingfisher.podspec
onevcat 2 лет назад
Родитель
Сommit
f41393a57b

+ 8 - 0
CHANGELOG.md

@@ -2,6 +2,14 @@
 
 
 -----
 -----
 
 
+## [7.11.0 - visionOS for CocoaPods](https://github.com/onevcat/Kingfisher/releases/tag/7.11.0) (2024-02-12)
+
+#### Add
+* Add visionOS as a supported platform when being used in CocoaPods. For other dependency managers, it was already supported from previous versions. [#2205](https://github.com/onevcat/Kingfisher/pull/2205) @onevcat @grachyov
+* A name for background task started for image cache cleanup. [#2201](https://github.com/onevcat/Kingfisher/pull/2201) @antohisorin
+
+---
+
 ## [7.10.2 - GIF crash fix](https://github.com/onevcat/Kingfisher/releases/tag/7.10.2) (2024-01-11)
 ## [7.10.2 - GIF crash fix](https://github.com/onevcat/Kingfisher/releases/tag/7.10.2) (2024-01-11)
 
 
 #### Fix
 #### Fix

+ 32 - 33
Gemfile.lock

@@ -3,7 +3,7 @@ GEM
   specs:
   specs:
     CFPropertyList (3.0.6)
     CFPropertyList (3.0.6)
       rexml
       rexml
-    activesupport (7.1.2)
+    activesupport (7.1.3)
       base64
       base64
       bigdecimal
       bigdecimal
       concurrent-ruby (~> 1.0, >= 1.0.2)
       concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -21,29 +21,29 @@ GEM
     artifactory (3.0.15)
     artifactory (3.0.15)
     atomos (0.1.3)
     atomos (0.1.3)
     aws-eventstream (1.3.0)
     aws-eventstream (1.3.0)
-    aws-partitions (1.878.0)
-    aws-sdk-core (3.190.2)
+    aws-partitions (1.889.0)
+    aws-sdk-core (3.191.1)
       aws-eventstream (~> 1, >= 1.3.0)
       aws-eventstream (~> 1, >= 1.3.0)
       aws-partitions (~> 1, >= 1.651.0)
       aws-partitions (~> 1, >= 1.651.0)
       aws-sigv4 (~> 1.8)
       aws-sigv4 (~> 1.8)
       jmespath (~> 1, >= 1.6.1)
       jmespath (~> 1, >= 1.6.1)
-    aws-sdk-kms (1.76.0)
-      aws-sdk-core (~> 3, >= 3.188.0)
+    aws-sdk-kms (1.77.0)
+      aws-sdk-core (~> 3, >= 3.191.0)
       aws-sigv4 (~> 1.1)
       aws-sigv4 (~> 1.1)
-    aws-sdk-s3 (1.142.0)
-      aws-sdk-core (~> 3, >= 3.189.0)
+    aws-sdk-s3 (1.143.0)
+      aws-sdk-core (~> 3, >= 3.191.0)
       aws-sdk-kms (~> 1)
       aws-sdk-kms (~> 1)
       aws-sigv4 (~> 1.8)
       aws-sigv4 (~> 1.8)
     aws-sigv4 (1.8.0)
     aws-sigv4 (1.8.0)
       aws-eventstream (~> 1, >= 1.0.2)
       aws-eventstream (~> 1, >= 1.0.2)
     babosa (1.0.4)
     babosa (1.0.4)
     base64 (0.2.0)
     base64 (0.2.0)
-    bigdecimal (3.1.5)
+    bigdecimal (3.1.6)
     claide (1.1.0)
     claide (1.1.0)
-    cocoapods (1.14.3)
+    cocoapods (1.15.2)
       addressable (~> 2.8)
       addressable (~> 2.8)
       claide (>= 1.0.2, < 2.0)
       claide (>= 1.0.2, < 2.0)
-      cocoapods-core (= 1.14.3)
+      cocoapods-core (= 1.15.2)
       cocoapods-deintegrate (>= 1.0.3, < 2.0)
       cocoapods-deintegrate (>= 1.0.3, < 2.0)
       cocoapods-downloader (>= 2.1, < 3.0)
       cocoapods-downloader (>= 2.1, < 3.0)
       cocoapods-plugins (>= 1.0.0, < 2.0)
       cocoapods-plugins (>= 1.0.0, < 2.0)
@@ -58,7 +58,7 @@ GEM
       nap (~> 1.0)
       nap (~> 1.0)
       ruby-macho (>= 2.3.0, < 3.0)
       ruby-macho (>= 2.3.0, < 3.0)
       xcodeproj (>= 1.23.0, < 2.0)
       xcodeproj (>= 1.23.0, < 2.0)
-    cocoapods-core (1.14.3)
+    cocoapods-core (1.15.2)
       activesupport (>= 5.0, < 8)
       activesupport (>= 5.0, < 8)
       addressable (~> 2.8)
       addressable (~> 2.8)
       algoliasearch (~> 1.0)
       algoliasearch (~> 1.0)
@@ -81,7 +81,7 @@ GEM
     colored2 (3.1.2)
     colored2 (3.1.2)
     commander (4.6.0)
     commander (4.6.0)
       highline (~> 2.0.0)
       highline (~> 2.0.0)
-    concurrent-ruby (1.2.2)
+    concurrent-ruby (1.2.3)
     connection_pool (2.4.1)
     connection_pool (2.4.1)
     declarative (0.0.20)
     declarative (0.0.20)
     digest-crc (0.6.5)
     digest-crc (0.6.5)
@@ -168,38 +168,38 @@ GEM
     fourflusher (2.3.1)
     fourflusher (2.3.1)
     fuzzy_match (2.0.4)
     fuzzy_match (2.0.4)
     gh_inspector (1.1.3)
     gh_inspector (1.1.3)
-    google-apis-androidpublisher_v3 (0.54.0)
-      google-apis-core (>= 0.11.0, < 2.a)
-    google-apis-core (0.11.2)
+    google-apis-androidpublisher_v3 (0.57.0)
+      google-apis-core (>= 0.12.0, < 2.a)
+    google-apis-core (0.13.0)
       addressable (~> 2.5, >= 2.5.1)
       addressable (~> 2.5, >= 2.5.1)
-      googleauth (>= 0.16.2, < 2.a)
+      googleauth (~> 1.9)
       httpclient (>= 2.8.1, < 3.a)
       httpclient (>= 2.8.1, < 3.a)
       mini_mime (~> 1.0)
       mini_mime (~> 1.0)
       representable (~> 3.0)
       representable (~> 3.0)
       retriable (>= 2.0, < 4.a)
       retriable (>= 2.0, < 4.a)
       rexml
       rexml
-      webrick
-    google-apis-iamcredentials_v1 (0.17.0)
-      google-apis-core (>= 0.11.0, < 2.a)
-    google-apis-playcustomapp_v1 (0.13.0)
-      google-apis-core (>= 0.11.0, < 2.a)
-    google-apis-storage_v1 (0.31.0)
-      google-apis-core (>= 0.11.0, < 2.a)
+    google-apis-iamcredentials_v1 (0.18.0)
+      google-apis-core (>= 0.12.0, < 2.a)
+    google-apis-playcustomapp_v1 (0.14.0)
+      google-apis-core (>= 0.12.0, < 2.a)
+    google-apis-storage_v1 (0.33.0)
+      google-apis-core (>= 0.12.0, < 2.a)
     google-cloud-core (1.6.1)
     google-cloud-core (1.6.1)
       google-cloud-env (>= 1.0, < 3.a)
       google-cloud-env (>= 1.0, < 3.a)
       google-cloud-errors (~> 1.0)
       google-cloud-errors (~> 1.0)
-    google-cloud-env (2.1.0)
+    google-cloud-env (2.1.1)
       faraday (>= 1.0, < 3.a)
       faraday (>= 1.0, < 3.a)
     google-cloud-errors (1.3.1)
     google-cloud-errors (1.3.1)
-    google-cloud-storage (1.47.0)
+    google-cloud-storage (1.48.1)
       addressable (~> 2.8)
       addressable (~> 2.8)
       digest-crc (~> 0.4)
       digest-crc (~> 0.4)
-      google-apis-iamcredentials_v1 (~> 0.1)
-      google-apis-storage_v1 (~> 0.31.0)
+      google-apis-core (~> 0.13)
+      google-apis-iamcredentials_v1 (~> 0.18)
+      google-apis-storage_v1 (~> 0.33)
       google-cloud-core (~> 1.6)
       google-cloud-core (~> 1.6)
-      googleauth (>= 0.16.2, < 2.a)
+      googleauth (~> 1.9)
       mini_mime (~> 1.0)
       mini_mime (~> 1.0)
-    googleauth (1.9.1)
+    googleauth (1.10.0)
       faraday (>= 1.0, < 3.a)
       faraday (>= 1.0, < 3.a)
       google-cloud-env (~> 2.1)
       google-cloud-env (~> 2.1)
       jwt (>= 1.4, < 3.0)
       jwt (>= 1.4, < 3.0)
@@ -217,10 +217,10 @@ GEM
     jwt (2.7.1)
     jwt (2.7.1)
     mini_magick (4.12.0)
     mini_magick (4.12.0)
     mini_mime (1.1.5)
     mini_mime (1.1.5)
-    minitest (5.20.0)
+    minitest (5.22.2)
     molinillo (0.8.0)
     molinillo (0.8.0)
     multi_json (1.15.0)
     multi_json (1.15.0)
-    multipart-post (2.3.0)
+    multipart-post (2.4.0)
     mutex_m (0.2.0)
     mutex_m (0.2.0)
     nanaimo (0.3.0)
     nanaimo (0.3.0)
     nap (1.1.0)
     nap (1.1.0)
@@ -264,12 +264,11 @@ GEM
       concurrent-ruby (~> 1.0)
       concurrent-ruby (~> 1.0)
     uber (0.1.0)
     uber (0.1.0)
     unicode-display_width (2.5.0)
     unicode-display_width (2.5.0)
-    webrick (1.8.1)
     word_wrap (1.0.0)
     word_wrap (1.0.0)
     xcode-install (2.8.1)
     xcode-install (2.8.1)
       claide (>= 0.9.1)
       claide (>= 0.9.1)
       fastlane (>= 2.1.0, < 3.0.0)
       fastlane (>= 2.1.0, < 3.0.0)
-    xcodeproj (1.23.0)
+    xcodeproj (1.24.0)
       CFPropertyList (>= 2.3.3, < 4.0)
       CFPropertyList (>= 2.3.3, < 4.0)
       atomos (~> 0.1.3)
       atomos (~> 0.1.3)
       claide (>= 1.0.2, < 2.0)
       claide (>= 1.0.2, < 2.0)

+ 2 - 3
Kingfisher.podspec

@@ -1,7 +1,7 @@
 Pod::Spec.new do |s|
 Pod::Spec.new do |s|
 
 
   s.name         = "Kingfisher"
   s.name         = "Kingfisher"
-  s.version      = "7.10.2"
+  s.version      = "7.11.0"
   s.summary      = "A lightweight and pure Swift implemented library for downloading and cacheing image from the web."
   s.summary      = "A lightweight and pure Swift implemented library for downloading and cacheing image from the web."
 
 
   s.description  = <<-DESC
   s.description  = <<-DESC
@@ -31,8 +31,7 @@ Pod::Spec.new do |s|
   s.tvos.deployment_target = "13.0"
   s.tvos.deployment_target = "13.0"
   s.osx.deployment_target = "10.15"
   s.osx.deployment_target = "10.15"
   s.watchos.deployment_target = "6.0"
   s.watchos.deployment_target = "6.0"
-  # Wait for CocoaPods 1.13.0 (visionOS support)
-  # s.visionos.deployment_target = "1.0"
+  s.visionos.deployment_target = "1.0"
 
 
   s.source       = { :git => "https://github.com/onevcat/Kingfisher.git", :tag => s.version }
   s.source       = { :git => "https://github.com/onevcat/Kingfisher.git", :tag => s.version }
   s.source_files  = ["Sources/**/*.swift"]
   s.source_files  = ["Sources/**/*.swift"]

+ 4 - 4
Kingfisher.xcodeproj/project.pbxproj

@@ -1084,11 +1084,11 @@
 				CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES;
 				CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES;
 				CLANG_WARN_UNREACHABLE_CODE = YES_AGGRESSIVE;
 				CLANG_WARN_UNREACHABLE_CODE = YES_AGGRESSIVE;
 				CLANG_WARN__EXIT_TIME_DESTRUCTORS = YES;
 				CLANG_WARN__EXIT_TIME_DESTRUCTORS = YES;
-				CURRENT_PROJECT_VERSION = 2684;
+				CURRENT_PROJECT_VERSION = 2700;
 				DEFINES_MODULE = YES;
 				DEFINES_MODULE = YES;
 				DEAD_CODE_STRIPPING = YES;
 				DEAD_CODE_STRIPPING = YES;
 				DYLIB_COMPATIBILITY_VERSION = 1;
 				DYLIB_COMPATIBILITY_VERSION = 1;
-				DYLIB_CURRENT_VERSION = 2684;
+				DYLIB_CURRENT_VERSION = 2700;
 				DYLIB_INSTALL_NAME_BASE = "@rpath";
 				DYLIB_INSTALL_NAME_BASE = "@rpath";
 				GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
 				GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
 				GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES;
 				GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES;
@@ -1145,11 +1145,11 @@
 				CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES;
 				CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES;
 				CLANG_WARN_UNREACHABLE_CODE = YES_AGGRESSIVE;
 				CLANG_WARN_UNREACHABLE_CODE = YES_AGGRESSIVE;
 				CLANG_WARN__EXIT_TIME_DESTRUCTORS = YES;
 				CLANG_WARN__EXIT_TIME_DESTRUCTORS = YES;
-				CURRENT_PROJECT_VERSION = 2684;
+				CURRENT_PROJECT_VERSION = 2700;
 				DEFINES_MODULE = YES;
 				DEFINES_MODULE = YES;
 				DEAD_CODE_STRIPPING = YES;
 				DEAD_CODE_STRIPPING = YES;
 				DYLIB_COMPATIBILITY_VERSION = 1;
 				DYLIB_COMPATIBILITY_VERSION = 1;
-				DYLIB_CURRENT_VERSION = 2684;
+				DYLIB_CURRENT_VERSION = 2700;
 				DYLIB_INSTALL_NAME_BASE = "@rpath";
 				DYLIB_INSTALL_NAME_BASE = "@rpath";
 				GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
 				GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
 				GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES;
 				GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES;

+ 1 - 1
Sources/Cache/ImageCache.swift

@@ -825,7 +825,7 @@ open class ImageCache {
         }
         }
         
         
         var backgroundTask: UIBackgroundTaskIdentifier!
         var backgroundTask: UIBackgroundTaskIdentifier!
-        backgroundTask = sharedApplication.beginBackgroundTask {
+        backgroundTask = sharedApplication.beginBackgroundTask(withName: "Kingfisher:backgroundCleanExpiredDiskCache") {
             endBackgroundTask(&backgroundTask!)
             endBackgroundTask(&backgroundTask!)
         }
         }
         
         

+ 2 - 2
Sources/Info.plist

@@ -15,11 +15,11 @@
 	<key>CFBundlePackageType</key>
 	<key>CFBundlePackageType</key>
 	<string>FMWK</string>
 	<string>FMWK</string>
 	<key>CFBundleShortVersionString</key>
 	<key>CFBundleShortVersionString</key>
-	<string>7.10.2</string>
+	<string>7.11.0</string>
 	<key>CFBundleSignature</key>
 	<key>CFBundleSignature</key>
 	<string>????</string>
 	<string>????</string>
 	<key>CFBundleVersion</key>
 	<key>CFBundleVersion</key>
-	<string>2684</string>
+	<string>2700</string>
 	<key>NSPrincipalClass</key>
 	<key>NSPrincipalClass</key>
 	<string></string>
 	<string></string>
 </dict>
 </dict>

+ 2 - 2
Tests/KingfisherTests/Info.plist

@@ -15,10 +15,10 @@
 	<key>CFBundlePackageType</key>
 	<key>CFBundlePackageType</key>
 	<string>BNDL</string>
 	<string>BNDL</string>
 	<key>CFBundleShortVersionString</key>
 	<key>CFBundleShortVersionString</key>
-	<string>7.10.2</string>
+	<string>7.11.0</string>
 	<key>CFBundleSignature</key>
 	<key>CFBundleSignature</key>
 	<string>????</string>
 	<string>????</string>
 	<key>CFBundleVersion</key>
 	<key>CFBundleVersion</key>
-	<string>2684</string>
+	<string>2700</string>
 </dict>
 </dict>
 </plist>
 </plist>