Skip to content

Commit 1c09d50

Browse files
authored
Merge pull request #10 from contentstack/bugs/url_cache
Url cache issue resolved
2 parents 6106894 + eeae193 commit 1c09d50

File tree

9 files changed

+24
-22
lines changed

9 files changed

+24
-22
lines changed

Config.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CONTENTSTACK_SDK_VERSION = 1.3.0
1+
CONTENTSTACK_SDK_VERSION = 1.3.1

Contentstack.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@
13951395
GCC_WARN_UNUSED_VARIABLE = YES;
13961396
INFOPLIST_FILE = "Supporting Files/Info.plist";
13971397
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
1398-
IPHONEOS_DEPLOYMENT_TARGET = 10.1;
1398+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
13991399
LD_RUNPATH_SEARCH_PATHS = (
14001400
"$(inherited)",
14011401
"@executable_path/Frameworks",
@@ -1471,7 +1471,7 @@
14711471
GCC_WARN_UNUSED_VARIABLE = YES;
14721472
INFOPLIST_FILE = "Supporting Files/Info.plist";
14731473
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
1474-
IPHONEOS_DEPLOYMENT_TARGET = 10.1;
1474+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
14751475
LD_RUNPATH_SEARCH_PATHS = (
14761476
"$(inherited)",
14771477
"@executable_path/Frameworks",
@@ -1689,7 +1689,7 @@
16891689
"@executable_path/../Frameworks",
16901690
"@loader_path/Frameworks",
16911691
);
1692-
MACOSX_DEPLOYMENT_TARGET = 10.12;
1692+
MACOSX_DEPLOYMENT_TARGET = 10.13;
16931693
MARKETING_VERSION = 1.2.5;
16941694
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
16951695
MTL_FAST_MATH = YES;
@@ -1765,7 +1765,7 @@
17651765
"@executable_path/../Frameworks",
17661766
"@loader_path/Frameworks",
17671767
);
1768-
MACOSX_DEPLOYMENT_TARGET = 10.12;
1768+
MACOSX_DEPLOYMENT_TARGET = 10.13;
17691769
MARKETING_VERSION = 1.2.5;
17701770
MTL_ENABLE_DEBUG_INFO = NO;
17711771
MTL_FAST_MATH = YES;
@@ -2364,7 +2364,7 @@
23642364
"SWIFT_PACKAGE=1",
23652365
"DEBUG=1",
23662366
);
2367-
MACOSX_DEPLOYMENT_TARGET = 10.10;
2367+
MACOSX_DEPLOYMENT_TARGET = 10.13;
23682368
ONLY_ACTIVE_ARCH = YES;
23692369
OTHER_SWIFT_FLAGS = "$(inherited) -DXcode";
23702370
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -2390,7 +2390,7 @@
23902390
"$(inherited)",
23912391
"SWIFT_PACKAGE=1",
23922392
);
2393-
MACOSX_DEPLOYMENT_TARGET = 10.10;
2393+
MACOSX_DEPLOYMENT_TARGET = 10.13;
23942394
OTHER_SWIFT_FLAGS = "$(inherited) -DXcode";
23952395
PRODUCT_NAME = "$(TARGET_NAME)";
23962396
SDKROOT = macosx;

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ We have introduced Image Delivery APIs that let you retrieve images and then man
117117

118118
For example, if you want to crop an image (with width as 300 and height as 400), you simply need to append query parameters at the end of the image URL, such as, https://images.contentstack.io/v3/assets/uid_136download?crop=300,400. There are several more parameters that you can use for your images.
119119

120-
[Read Image Delivery API documentation](https://www.contentstack.com/docs/apis/image-delivery-api/).
120+
[Read Image Delivery API documentation](https://www.contentstack.com/docs/developers/apis/image-delivery-api/).
121121

122122
You can use the Image Delivery API functions in this SDK as well. Here are a few examples of its usage in the SDK.
123123

Scripts/reference-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jazzy \
1010
--author_url https://www.contentstack.com \
1111
--github_url https://github.com/contentstack/contentstack-swift \
1212
--github-file-prefix https://github.com/contentstack/contentstack-swift/tree/$CONTENTSTACK_SDK_VERSION \
13-
--xcodebuild-arguments -workspace,Contentstack.xcworkspace,-scheme,"Contentstack macOS" \
13+
--xcodebuild-arguments -workspace,Contentstack.xcworkspace,-scheme,"Contentstack macOS",-destination,"platform=macOS,arch=x86_64" \
1414
--module Contentstack \
1515
--theme apple \
1616
--module-version "$CONTENSTACK_SDK_VERSION" \

Scripts/run-test-cases.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ xcodebuild \
3838
-scheme "Contentstack iOS" \
3939
-enableCodeCoverage YES \
4040
test \
41-
-destination "OS=15.5,name=iPhone 13" \
41+
-destination "OS=16.0,name=iPhone 14" \
4242
-resultBundlePath "$TEST_BUNDLE_PATH/$FILE_NAME-iOS.xcresult" \
4343
| xcpretty \
4444
--color \

Sources/Entry.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import Foundation
99
/// An `Entry` is the actual piece of content created using one of the defined content types.
10-
/// Read more about [Entries](https://www.contentstack.com/docs/content-managers/work-with-entries/).
1110

1211
public class Entry: EntryQueryable, CachePolicyAccessible {
1312
public typealias ResourceType = EntryModel

Sources/QueryOperation.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,25 +65,25 @@ extension Query {
6565
}
6666
/// When fetching entries, you can search on field key paths.
6767
public enum Operation {
68-
///Equals Operator: <https://www.contentstack.com/docs/apis/content-delivery-api/#equals-operator>
68+
///Equals Operator: <https://www.contentstack.com/docs/developers/apis/content-delivery-api/#equals-operator>
6969
case equals(QueryableRange)
70-
///Not-equals Operator: <https://www.contentstack.com/docs/apis/content-delivery-api/#not-equals-operator>
70+
///Not-equals Operator: <https://www.contentstack.com/docs/developers/apis/content-delivery-api/#not-equals-operator>
7171
case notEquals(QueryableRange)
72-
///Includes content in array: <https://www.contentstack.com/docs/apis/content-delivery-api/#array-equals-operator>
72+
///Includes content in array: <https://www.contentstack.com/docs/developers/apis/content-delivery-api/#array-equals-operator>
7373
case includes([QueryableRange])
74-
///Excludes content in array: <https://www.contentstack.com/docs/apis/content-delivery-api/#array-equals-operator>
74+
///Excludes content in array: <https://www.contentstack.com/docs/developers/apis/content-delivery-api/#array-equals-operator>
7575
case excludes([QueryableRange])
76-
///Less Than: <https://www.contentstack.com/docs/apis/content-delivery-api/#less-than>
76+
///Less Than: <https://www.contentstack.com/docs/developers/apis/content-delivery-api/#less-than>
7777
case isLessThan(QueryableRange)
78-
///Less than or equal: <https://www.contentstack.com/docs/apis/content-delivery-api/#less-than-or-equal-to>
78+
///Less than or equal: <https://www.contentstack.com/docs/developers/apis/content-delivery-api/#less-than-or-equal-to>
7979
case isLessThanOrEqual(QueryableRange)
80-
///Greater Than: <https://www.contentstack.com/docs/apis/content-delivery-api/#greater-than>
80+
///Greater Than: <https://www.contentstack.com/docs/developers/apis/content-delivery-api/#greater-than>
8181
case isGreaterThan(QueryableRange)
82-
///Greater than or equal: <https://www.contentstack.com/docs/apis/content-delivery-api/#greater-than-or-equal-to>
82+
///Greater than or equal: <https://www.contentstack.com/docs/developers/apis/content-delivery-api/#greater-than-or-equal-to>
8383
case isGreaterThanOrEqual(QueryableRange)
84-
/// The existence operator: <https://www.contentstack.com/docs/apis/content-delivery-api/#exists>
84+
/// The existence operator: <https://www.contentstack.com/docs/developers/apis/content-delivery-api/#exists>
8585
case exists(Bool)
86-
/// Search on a field by Regex. <https://www.contentstack.com/docs/apis/content-delivery-api/#search-by-regex>
86+
/// Search on a field by Regex. <https://www.contentstack.com/docs/developers/apis/content-delivery-api/#search-by-regex>
8787
case matches(String)
8888

8989
internal var string: String {

Sources/Stack.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public class Stack: CachePolicyAccessible {
8080
self.config.sessionConfiguration.httpAdditionalHeaders = contentstackHTTPHeaders
8181
self.urlSession = URLSession(configuration: config.sessionConfiguration)
8282

83-
URLCache.shared = CSURLCache.default
83+
self.config.sessionConfiguration.urlCache = CSURLCache.default
8484
}
8585

8686
/// Get instance of `ContentType` to fetch content-types and schema or fetch entries of specific content-type.

Tests/config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
3+
}

0 commit comments

Comments
 (0)