-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from nytimes/chore/update-PINRemoteImage-for-…
…xcode-12 update PINRemoteImage for xcode 12, prepare release of 5.0.4
- Loading branch information
Showing
1,523 changed files
with
280,112 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
[submodule "Carthage/Checkouts/ocmock"] | ||
path = Carthage/Checkouts/ocmock | ||
url = https://github.com/erikdoe/ocmock.git | ||
[submodule "Carthage/Checkouts/libwebp"] | ||
path = Carthage/Checkouts/libwebp | ||
url = https://chromium.googlesource.com/webm/libwebp | ||
[submodule "Carthage/Checkouts/PINCache"] | ||
url = https://github.com/pinterest/PINCache.git | ||
[submodule "Carthage/Checkouts/PINRemoteImage"] | ||
url = https://github.com/pinterest/PINRemoteImage.git | ||
[submodule "Carthage/Checkouts/PINOperation"] | ||
url = https://github.com/pinterest/PINOperation.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
github "pinterest/PINRemoteImage" ~> 3.0.0 | ||
github "pinterest/PINRemoteImage" ~> 3.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
github "erikdoe/ocmock" "v3.6" | ||
git "https://chromium.googlesource.com/webm/libwebp" "v1.1.0" | ||
github "erikdoe/ocmock" "v3.7.1" | ||
github "pinterest/PINCache" "3.0.1" | ||
github "pinterest/PINOperation" "1.2.0" | ||
github "pinterest/PINRemoteImage" "3.0.0" | ||
github "pinterest/PINOperation" "1.2" | ||
github "pinterest/PINRemoteImage" "3.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- 'releases/*' | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: macOS-latest | ||
strategy: | ||
matrix: | ||
platform: ['iOS Simulator,name=iPhone 8'] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Analyze and Test | ||
run: | | ||
xcodebuild clean analyze test \ | ||
-destination "platform=${{ matrix.platform }}" \ | ||
-sdk "iphonesimulator" \ | ||
-project PINCache.xcodeproj \ | ||
-scheme PINCache \ | ||
ONLY_ACTIVE_ARCH=NO \ | ||
CODE_SIGNING_REQUIRED=NO \ | ||
CLANG_ANALYZER_OUTPUT=plist-html \ | ||
CLANG_ANALYZER_OUTPUT_DIR="$(pwd)/clang" \ | ||
| xcpretty | ||
if [[ -n `find $(pwd)/clang -name "*.html"` ]] ; then rm -rf $(pwd)/clang; exit 1; fi | ||
rm -rf $(pwd)/clang | ||
cocoapods: | ||
name: CocoaPods | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Lint | ||
run: pod lib lint | ||
carthage: | ||
name: Carthage | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Update | ||
run: carthage update --no-use-binaries --no-build | ||
- name: Build | ||
run: carthage build --no-skip-current |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
issues=false | ||
since-tag=3.0.1-beta.8 | ||
future-release=3.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#Ignore the Mac OS X .DS_Store files | ||
.DS_Store | ||
|
||
#Ignore user-specific settings | ||
*.mode1v3 | ||
*.mode2v3 | ||
*.pbxuser | ||
*.perspectivev3 | ||
xcuserdata | ||
|
||
#Ignore textmate build errors | ||
*.tm_build_errors | ||
|
||
#Ignore temp nibs and swap files | ||
*.swp | ||
*~.nib | ||
|
||
.gitattributes | ||
|
||
# Buck | ||
/buck-out | ||
/.buckconfig.local | ||
/.buckd | ||
|
||
Carthage/Build |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
# Changelog | ||
|
||
## [3.0.1](https://github.com/Pinterest/PINCache/tree/3.0.1) (2020-08-20) | ||
|
||
[Full Changelog](https://github.com/Pinterest/PINCache/compare/3.0.1-beta.8...3.0.1) | ||
|
||
**Implemented enhancements:** | ||
|
||
- Support Catalyst [\#272](https://github.com/pinterest/PINCache/pull/272) ([cgmaier](https://github.com/cgmaier)) | ||
|
||
**Merged pull requests:** | ||
|
||
- Update PINOperation [\#277](https://github.com/pinterest/PINCache/pull/277) ([garrettmoon](https://github.com/garrettmoon)) | ||
- Fix PINCacheTests compiling in Xcode 12.0b4 [\#276](https://github.com/pinterest/PINCache/pull/276) ([arangato](https://github.com/arangato)) | ||
- Remove BUCK files [\#274](https://github.com/pinterest/PINCache/pull/274) ([adlerj](https://github.com/adlerj)) | ||
- Fix compiling in Xcode 12.0b4 [\#273](https://github.com/pinterest/PINCache/pull/273) ([zacwest](https://github.com/zacwest)) | ||
- Fix the grammar in an assertion failure message [\#270](https://github.com/pinterest/PINCache/pull/270) ([jparise](https://github.com/jparise)) | ||
- Add Carthage for watchOS, fix macOS min deployment target version [\#269](https://github.com/pinterest/PINCache/pull/269) ([dreampiggy](https://github.com/dreampiggy)) | ||
- Remove the unused CI directory [\#265](https://github.com/pinterest/PINCache/pull/265) ([jparise](https://github.com/jparise)) | ||
- Fix up analyze for github CI [\#264](https://github.com/pinterest/PINCache/pull/264) ([garrettmoon](https://github.com/garrettmoon)) | ||
- Use correct class name in NSAssert\(\) messages [\#263](https://github.com/pinterest/PINCache/pull/263) ([jparise](https://github.com/jparise)) | ||
- Check fileURL outside of the locked scope [\#262](https://github.com/pinterest/PINCache/pull/262) ([jparise](https://github.com/jparise)) | ||
- Remove Danger from the project [\#261](https://github.com/pinterest/PINCache/pull/261) ([jparise](https://github.com/jparise)) | ||
- Switch to GitHub Actions for CI [\#259](https://github.com/pinterest/PINCache/pull/259) ([jparise](https://github.com/jparise)) | ||
- Test that the "remove object" blocks are called [\#258](https://github.com/pinterest/PINCache/pull/258) ([jparise](https://github.com/jparise)) | ||
- Discrepancy between Header Comment and Implementation \#trivial [\#257](https://github.com/pinterest/PINCache/pull/257) ([jlaws](https://github.com/jlaws)) | ||
- Optimization `PINMemoryCache` trim to date [\#252](https://github.com/pinterest/PINCache/pull/252) ([kinarobin](https://github.com/kinarobin)) | ||
- Optimize `PINMemoryCache` remove objects when receive memory warning notification [\#251](https://github.com/pinterest/PINCache/pull/251) ([kinarobin](https://github.com/kinarobin)) | ||
|
||
## 3.0.1 -- Beta 8 | ||
- [fix] Initing PINCache with TTL enabled should enable TTL on PINMemoryCache. [#246](https://github.com/pinterest/PINCache/pull/246) | ||
- [performance] Return TTL cache objects without waiting for all metadata to be read. [#228](https://github.com/pinterest/PINCache/pull/228) | ||
- [performance] Memory cache now performs some tasks such as trimming and removing experied objects with low priority. [#234](https://github.com/pinterest/PINCache/pull/234) | ||
|
||
## 3.0.1 -- Beta 7 | ||
- [fix] Fix up warnings and upgrade to PINOperation 1.1.1: [#213](https://github.com/pinterest/PINCache/pull/213) | ||
- [performance] Reduce locking churn in cleanup methods. [#212](https://github.com/pinterest/PINCache/pull/212) | ||
- [fix] Don't set file protection unless requested. [#220](https://github.com/pinterest/PINCache/pull/220) | ||
- [new] Add ability to set an object level TTL: [#209](https://github.com/pinterest/PINCache/pull/209) | ||
- [performance] Improve performance of age limit trimming: [#224](https://github.com/pinterest/PINCache/pull/224) | ||
|
||
## 3.0.1 -- Beta 6 | ||
- [fix] Add some sane limits to the disk cache: [#201]https://github.com/pinterest/PINCache/pull/201 | ||
- [new] Update enumeration methods to allow a stop flag to be flipped by caller: [#204](https://github.com/pinterest/PINCache/pull/204) | ||
- [performance] Improves cache miss performance by ~2 orders of magnitude on device: [#202](https://github.com/pinterest/PINCache/pull/202) | ||
- [performance] Significantly improve startup performance: [#203](https://github.com/pinterest/PINCache/pull/203) | ||
|
||
## 3.0.1 -- Beta 5 | ||
- [fix] Respect small byteLimit settings by checking object size in setObject: [#198](https://github.com/pinterest/PINCache/pull/198) | ||
- [new] Added an ability to set custom encoder/decoder for file names: [#192](https://github.com/pinterest/PINCache/pull/192) | ||
|
||
## 2.2.1 -- 2016 Mar 5 | ||
- [new] Removed need for extension macro: [#72](https://github.com/pinterest/PINCache/pull/72) | ||
|
||
## 2.2.1 -- 2016 Feb 15 | ||
|
||
- [fixed] When ttlCache is enabled, skip updating the file modification time when accessing `fileURLForKey:` [#70](https://github.com/pinterest/PINCache/pull/70) | ||
|
||
## 2.2 -- 2016 Feb 10 | ||
|
||
- [new] Allow caches to behave like a TTLCache [#66](https://github.com/pinterest/PINCache/pull/66) | ||
|
||
## 2.1.2 -- 2015 Nov 19 | ||
|
||
- [fix] Fix disk caching bug due to incorrect string encoding [#42](https://github.com/pinterest/PINCache/pull/42) | ||
|
||
|
||
## 2.1.1 -- 2015 Nov 17 | ||
|
||
- [new] Added `tvOS` support | ||
- [fixed] PINDiskCache byteCount tracking bug [#30](https://github.com/pinterest/PINCache/pull/30) | ||
|
||
|
||
## 2.1 -- 2015 Aug 24 | ||
|
||
- [new] Xcode 7 support | ||
- [fixed] Invalid task ID's used for expiration handler on background tasks [#13](https://github.com/pinterest/PINCache/issues/13) | ||
- [fixed] Support for OS X since UIBackgroundTask is only on iOS [#19](https://github.com/pinterest/PINCache/pull/19) | ||
|
||
|
||
## 2.0.1 -- 2015 May 1 | ||
|
||
- [new] Added support for using PINCache in extensions | ||
- [new] Adopting nullability annotations. | ||
|
||
|
||
## 2.0 -- 2015 February 25 | ||
|
||
- [fix] PINCache redesign to avoid deadlocks | ||
|
||
|
||
## 1.2.3 -- 2014 December 13 | ||
|
||
- [fix] TMDiskCache/TMMemoryCache: import `UIKit` to facilitate Swift usage (thanks [digabriel](https://github.com/tumblr/TMCache/pull/57)!) | ||
- [fix] TMDiskCache: add try catch to ensure an exception isn’t thrown if a file on disk is unable to be unarchived (thanks [leonskywalker](https://github.com/tumblr/TMCache/pull/62)!) | ||
- [fix] TMDiskCache: create trash directory asynchronously to avoid race condition (thanks [napoapo77](https://github.com/tumblr/TMCache/pull/68)!) | ||
|
||
|
||
## 1.2.2 -- 2014 October 6 | ||
|
||
- [new] Remove deprecated `documentation` property from Podspec | ||
|
||
|
||
## 1.2.1 -- 2013 July 28 | ||
|
||
- [new] TMDiskCache: introduced concept of "trash" for rapid wipeouts | ||
- [new] TMDiskCache: `nil` checks to prevent crashes | ||
- [new] TMCache/TMDiskCache/TMMemoryCache: import Foundation to facilitate Swift usage | ||
|
||
|
||
## 1.2.0 -- 2013 May 24 | ||
|
||
- [new] TMDiskCache: added method `enumerateObjectsWithBlock:completionBlock:` | ||
- [new] TMDiskCache: added method `enumerateObjectsWithBlock:` | ||
- [new] TMDiskCache: added unit tests for the above | ||
- [new] TMMemoryCache: added method `enumerateObjectsWithBlock:completionBlock:` | ||
- [new] TMMemoryCache: added method `enumerateObjectsWithBlock:` | ||
- [new] TMMemoryCache: added event block `didReceiveMemoryWarningBlock` | ||
- [new] TMMemoryCache: added event block `didEnterBackgroundBlock` | ||
- [new] TMMemoryCache: added boolean property `removeAllObjectsOnMemoryWarning` | ||
- [new] TMMemoryCache: added boolean property `removeAllObjectsOnEnteringBackground` | ||
- [new] TMMemoryCache: added unit tests for memory warning and app background blocks | ||
- [del] TMCache: removed `cost` methods pending a solution for disk-based cost | ||
|
||
|
||
## 1.1.2 -- 2013 May 13 | ||
|
||
- [fix] TMCache: prevent `objectForKey:block:` from hitting the thread ceiling | ||
- [new] TMCache: added a test to make sure we don't deadlock the queue | ||
|
||
|
||
## 1.1.1 -- 2013 May 1 | ||
|
||
- [fix] simplified appledoc arguments in podspec, updated doc script | ||
|
||
|
||
## 1.1.0 -- 2013 April 29 | ||
|
||
- [new] TMCache: added method `setObject:forKey:withCost:` | ||
- [new] TMCache: documentation | ||
|
||
|
||
## 1.0.3 -- 2013 April 27 | ||
|
||
- [new] TMCache: added property `diskByteCount` (for convenience) | ||
- [new] TMMemoryCache: `totalCost` now returned synchronously from queue | ||
- [fix] TMMemoryCache: `totalCost` set to zero immediately after `removeAllObjects:` | ||
|
||
|
||
## 1.0.2 -- 2013 April 26 | ||
|
||
- [fix] TMCache: cache hits from memory will now update access time on disk | ||
- [fix] TMDiskCache: set & remove methods now acquire a `UIBackgroundTaskIdentifier` | ||
- [fix] TMDiskCache: will/didAddObject blocks actually get executed | ||
- [fix] TMDiskCache: `trimToSize:` now correctly removes objects in order of size | ||
- [fix] TMMemoryCache: `trimToCost:` now correctly removes objects in order of cost | ||
- [new] TMDiskCache: added method `trimToSizeByDate:` | ||
- [new] TMMemoryCache: added method `trimToCostByDate:` | ||
- [new] TMDiskCache: added properties `willRemoveAllObjectsBlock` & `didRemoveAllObjectsBlock` | ||
- [new] TMMemoryCache: added properties `willRemoveAllObjectsBlock` & `didRemoveAllObjectsBlock` | ||
- [new] TMCache: added unit tests | ||
|
||
|
||
## 1.0.1 -- 2013 April 23 | ||
|
||
- added an optional "cost limit" to `TMMemoryCache`, including new properties and methods | ||
- calling `[TMDiskCache trimToDate:]` with `[NSDate distantPast]` will now clear the cache | ||
- calling `[TMDiskCache trimDiskToSize:]` will now remove files in order of access date | ||
- setting the byte limit on `TMDiskCache` to 0 will no longer clear the cache (0 means no limit) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Code of Conduct | ||
|
||
At Pinterest, we work hard to ensure that our work environment is welcoming | ||
and inclusive to as many people as possible. We are committed to creating this | ||
environment for everyone involved in our open source projects as well. We | ||
welcome all participants regardless of ability, age, ethnicity, identified | ||
gender, religion (or lack there of), sexual orientation and socioeconomic | ||
status. | ||
|
||
This code of conduct details our expectations for upholding these values. | ||
|
||
## Good behavior | ||
|
||
We expect members of our community to exhibit good behavior including (but of | ||
course not limited to): | ||
|
||
- Using intentional and empathetic language. | ||
- Focusing on resolving instead of escalating conflict. | ||
- Providing constructive feedback. | ||
|
||
## Unacceptable behavior | ||
|
||
Some examples of unacceptable behavior (again, this is not an exhaustive | ||
list): | ||
|
||
- Harassment, publicly or in private. | ||
- Trolling. | ||
- Sexual advances (this isn’t the place for it). | ||
- Publishing other’s personal information. | ||
- Any behavior which would be deemed unacceptable in a professional environment. | ||
|
||
## Recourse | ||
|
||
If you are witness to or the target of unacceptable behavior, it should be | ||
reported to Pinterest at [email protected]. All reporters will | ||
be kept confidential and an appropriate response for each incident will be | ||
evaluated. | ||
|
||
If the maintainers do not uphold and enforce this code of conduct in | ||
good faith, community leadership will hold them accountable. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github "pinterest/PINOperation" ~> 1.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github "pinterest/PINOperation" "1.2" |
Oops, something went wrong.