Skip to content

Commit 17f78e5

Browse files
authored
Merge branch 'master' into aodh/expose-update-time
2 parents 092c332 + 85cd408 commit 17f78e5

97 files changed

Lines changed: 441 additions & 420 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: CI
22

33
on:
4+
pull_request:
5+
branches:
6+
- 'master'
47
push:
58
branches:
69
- 'master'
@@ -9,7 +12,7 @@ jobs:
912
build:
1013
runs-on: macOS-latest
1114
steps:
12-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v2
1316
- name: Build and Test
1417
run: ci/run.sh
1518
env:

.github/workflows/pull.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
[![License](https://img.shields.io/github/license/spotify/SPTPersistentCache.svg)](LICENSE)
66
[![CocoaPods](https://img.shields.io/cocoapods/v/SPTPersistentCache.svg)](https://cocoapods.org/?q=SPTPersistentCache)
77
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
8-
[![Spotify FOSS Slack](https://slackin.spotify.com/badge.svg)](https://slackin.spotify.com)
98
[![Readme Score](http://readme-score-api.herokuapp.com/score.svg?url=https://github.com/spotify/sptpersistentcache)](http://clayallsopp.github.io/readme-score?url=https://github.com/spotify/sptpersistentcache)
109

1110
Everyone tries to implement a cache at some point in their app’s lifecycle, and this is ours. This is a library that allows people to cache `NSData` with time to live (TTL) values and semantics for disk management.

Resources/PrivacyInfo.xcprivacy

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrivacyTracking</key>
6+
<false/>
7+
<key>NSPrivacyAccessedAPITypes</key>
8+
<array>
9+
<dict>
10+
<key>NSPrivacyAccessedAPIType</key>
11+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
12+
<key>NSPrivacyAccessedAPITypeReasons</key>
13+
<array>
14+
<string>C617.1</string>
15+
</array>
16+
</dict>
17+
<dict>
18+
<key>NSPrivacyAccessedAPIType</key>
19+
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
20+
<key>NSPrivacyAccessedAPITypeReasons</key>
21+
<array>
22+
<string>35F9.1</string>
23+
</array>
24+
</dict>
25+
<dict>
26+
<key>NSPrivacyAccessedAPIType</key>
27+
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
28+
<key>NSPrivacyAccessedAPITypeReasons</key>
29+
<array>
30+
<string>E174.1</string>
31+
</array>
32+
</dict>
33+
</array>
34+
<key>NSPrivacyTrackingDomains</key>
35+
<array/>
36+
<key>NSPrivacyCollectedDataTypes</key>
37+
<array/>
38+
</dict>
39+
</plist>

SPTPersistentCache.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ Pod::Spec.new do |s|
2626
s.xcconfig = {
2727
"OTHER_LDFLAGS" => "-lObjC"
2828
}
29+
s.resource_bundle = { 'SPTPersistentCache_Privacy' => ['Resources/PrivacyInfo.xcprivacy'] }
2930

3031
end

SPTPersistentCache.xcodeproj/project.pbxproj

Lines changed: 69 additions & 81 deletions
Large diffs are not rendered by default.

SPTPersistentCache.xcodeproj/xcshareddata/xcschemes/SPTPersistentCache.xcscheme

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0910"
3+
LastUpgradeVersion = "1300"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -40,8 +40,16 @@
4040
buildConfiguration = "Debug"
4141
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4242
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43-
language = ""
4443
shouldUseLaunchSchemeArgsEnv = "YES">
44+
<MacroExpansion>
45+
<BuildableReference
46+
BuildableIdentifier = "primary"
47+
BlueprintIdentifier = "0510FF121BA2FF7A00ED0766"
48+
BuildableName = "libSPTPersistentCache.a"
49+
BlueprintName = "SPTPersistentCache"
50+
ReferencedContainer = "container:SPTPersistentCache.xcodeproj">
51+
</BuildableReference>
52+
</MacroExpansion>
4553
<Testables>
4654
<TestableReference
4755
skipped = "NO">
@@ -59,23 +67,11 @@
5967
</SkippedTests>
6068
</TestableReference>
6169
</Testables>
62-
<MacroExpansion>
63-
<BuildableReference
64-
BuildableIdentifier = "primary"
65-
BlueprintIdentifier = "0510FF121BA2FF7A00ED0766"
66-
BuildableName = "libSPTPersistentCache.a"
67-
BlueprintName = "SPTPersistentCache"
68-
ReferencedContainer = "container:SPTPersistentCache.xcodeproj">
69-
</BuildableReference>
70-
</MacroExpansion>
71-
<AdditionalOptions>
72-
</AdditionalOptions>
7370
</TestAction>
7471
<LaunchAction
7572
buildConfiguration = "Debug"
7673
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
7774
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
78-
language = ""
7975
launchStyle = "0"
8076
useCustomWorkingDirectory = "NO"
8177
ignoresPersistentStateOnLaunch = "NO"
@@ -91,8 +87,6 @@
9187
ReferencedContainer = "container:SPTPersistentCache.xcodeproj">
9288
</BuildableReference>
9389
</MacroExpansion>
94-
<AdditionalOptions>
95-
</AdditionalOptions>
9690
</LaunchAction>
9791
<ProfileAction
9892
buildConfiguration = "Release"

SPTPersistentCacheDemo/SPTPersistentCacheDemo.xcodeproj/project.pbxproj

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
isa = PBXProject;
158158
attributes = {
159159
CLASSPREFIX = SPT;
160-
LastUpgradeCheck = 0900;
160+
LastUpgradeCheck = 1300;
161161
ORGANIZATIONNAME = Spotify;
162162
TargetAttributes = {
163163
055725F91C65280000EF6787 = {
@@ -257,9 +257,9 @@
257257
isa = XCBuildConfiguration;
258258
baseConfigurationReference = DD1D23C21C779BAE00D0477A /* project.xcconfig */;
259259
buildSettings = {
260-
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
261-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
260+
COPY_PHASE_STRIP = "$(YES_FOR_RELEASE)";
262261
SDKROOT = iphoneos;
262+
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
263263
TARGETED_DEVICE_FAMILY = "1,2";
264264
};
265265
name = Debug;
@@ -268,11 +268,10 @@
268268
isa = XCBuildConfiguration;
269269
baseConfigurationReference = DD1D23C21C779BAE00D0477A /* project.xcconfig */;
270270
buildSettings = {
271-
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
272-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
271+
COPY_PHASE_STRIP = "$(YES_FOR_RELEASE)";
273272
SDKROOT = iphoneos;
273+
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
274274
TARGETED_DEVICE_FAMILY = "1,2";
275-
VALIDATE_PRODUCT = YES;
276275
};
277276
name = Release;
278277
};

SPTPersistentCacheDemo/SPTPersistentCacheDemo.xcodeproj/xcshareddata/xcschemes/SPTPersistentCacheDemo.xcscheme

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "1300"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -27,8 +27,6 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30-
<Testables>
31-
</Testables>
3230
<MacroExpansion>
3331
<BuildableReference
3432
BuildableIdentifier = "primary"
@@ -38,8 +36,8 @@
3836
ReferencedContainer = "container:SPTPersistentCacheDemo.xcodeproj">
3937
</BuildableReference>
4038
</MacroExpansion>
41-
<AdditionalOptions>
42-
</AdditionalOptions>
39+
<Testables>
40+
</Testables>
4341
</TestAction>
4442
<LaunchAction
4543
buildConfiguration = "Debug"
@@ -61,8 +59,6 @@
6159
ReferencedContainer = "container:SPTPersistentCacheDemo.xcodeproj">
6260
</BuildableReference>
6361
</BuildableProductRunnable>
64-
<AdditionalOptions>
65-
</AdditionalOptions>
6662
</LaunchAction>
6763
<ProfileAction
6864
buildConfiguration = "Release"

SPTPersistentCacheDemo/SPTPersistentCacheDemo/AppDelegate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2019 Spotify AB.
2+
Copyright (c) 2015-2021 Spotify AB.
33
44
Licensed to the Apache Software Foundation (ASF) under one
55
or more contributor license agreements. See the NOTICE file

0 commit comments

Comments
 (0)