Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CONTENTSTACK_SDK_VERSION=1.5.1
CONTENTSTACK_SDK_VERSION=2.0.0
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: "Contentstack CI"

on:
push:
branches: [ master, next ]
branches: [ master, staging ]
pull_request:
branches: [ master, next ]
branches: [ master, staging ]

jobs:
macOS:
Expand Down Expand Up @@ -46,8 +46,8 @@ jobs:
- name: Build and run tests
run: |
xcodebuild test \
-workspace Contentstack.xcworkspace \
-scheme "Contentstack macOS Tests" \
-workspace ContentstackSwift.xcworkspace \
-scheme "ContentstackSwift macOS Tests" \
-destination 'platform=macOS,arch=arm64' \
ONLY_ACTIVE_ARCH=NO \
CODE_SIGNING_ALLOWED=NO
Expand Down Expand Up @@ -86,13 +86,13 @@ jobs:
"delivery_token": "${{ secrets.delivery_token }}",
"environment": "${{ secrets.environment }}"
}' > Tests/config.json

- name: Build and run tests
run: |
xcodebuild test \
-workspace Contentstack.xcworkspace \
-scheme "Contentstack iOS Tests" \
-destination 'platform=iOS Simulator,name=iPhone 15,OS=17.2' \
-sdk iphonesimulator \
ONLY_ACTIVE_ARCH=NO \
CODE_SIGNING_ALLOWED=NO
xcodebuild test \
-workspace ContentstackSwift.xcworkspace \
-scheme "ContentstackSwift iOS Tests" \
-destination 'platform=iOS Simulator,name=iPhone 15,OS=17.5' \
-sdk iphonesimulator \
ONLY_ACTIVE_ARCH=NO \
CODE_SIGNING_ALLOWED=NO
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "contentstack/contentstack-swift-dvr" "master"
github "contentstack/contentstack-swift-dvr"
github "contentstack/contentstack-utils-swift"
2 changes: 1 addition & 1 deletion Config.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CONTENTSTACK_SDK_VERSION = 1.5.1
CONTENTSTACK_SDK_VERSION = 2.0.0
2 changes: 1 addition & 1 deletion Contentstack.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 9 additions & 10 deletions ContentstackSwift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
#
#!/usr/bin/ruby

require 'dotenv/load'

Pod::Spec.new do |s|
s.name = 'ContentstackSwift'
s.version = ENV['CONTENTSTACK_SDK_VERSION']
s.version = '2.0.0'
s.summary = 'Contentstack is a headless CMS with an API-first approach that puts content at the centre.'

s.description = <<-DESC
Expand All @@ -29,14 +28,14 @@ Pod::Spec.new do |s|
'uttamukkoji' => 'uttamukkoji@gmail.com',
'Contentstack' => 'support@contentstack.io'
}
s.source = { :git => 'https://github.com/contentstack/contentstack-swift.git', :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/Contentstack'
s.swift_version = '5'

s.ios.deployment_target = '11.0'
s.osx.deployment_target = '10.13'
s.watchos.deployment_target = '4.0'
s.tvos.deployment_target = '11.0'
s.source = { :git => 'https://github.com/contentstack/contentstack-swift.git', :tag => s.version }
s.social_media_url = 'https://x.com/Contentstack'
s.swift_version = '5.6'

s.ios.deployment_target = '13.0'
s.osx.deployment_target = '10.15'
s.watchos.deployment_target = '6.0'
s.tvos.deployment_target = '13.0'


s.source_files = 'Sources/**/*'
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1620"
LastUpgradeVersion = "1630"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1630"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0F4A75CA241BAC4300E3A024"
BuildableName = "Contentstack.framework"
BlueprintName = "Contentstack iOS"
ReferencedContainer = "container:Contentstack.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0F4A75CA241BAC4300E3A024"
BuildableName = "Contentstack.framework"
BlueprintName = "Contentstack iOS"
ReferencedContainer = "container:Contentstack.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
13 changes: 13 additions & 0 deletions ContentstackSwift.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.1
// swift-tools-version:5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand All @@ -20,21 +20,24 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/contentstack/contentstack-utils-swift.git", .branch("master")),
.package(url: "https://github.com/contentstack/contentstack-utils-swift.git", exact:"1.3.4"),
// Dev dependencies
.package(url: "https://github.com/contentstack/contentstack-swift-dvr.git", .branch("master"))
.package(url: "https://github.com/contentstack/contentstack-swift-dvr.git", branch:"master")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package,
//and on products in packages which this package depends on.
.target(
name: "ContentstackSwift",
dependencies: ["ContentstackUtils"],
dependencies: [
.product(name: "ContentstackUtils", package: "contentstack-utils-swift"),
.product(name: "DVR", package: "contentstack-swift-dvr")],
path: "Sources"),
.testTarget(
name: "ContentstackTests",
dependencies: ["ContentstackSwift", "DVR"],
dependencies: ["ContentstackSwift",
.product(name: "DVR", package: "contentstack-swift-dvr")],
path: "Tests")
]
)
2 changes: 1 addition & 1 deletion Scripts/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CONTENTSTACK_SDK_VERSION=1.4.0
CONTENTSTACK_SDK_VERSION=2.0.0
2 changes: 1 addition & 1 deletion Tests/AssetQueryAPITest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import XCTest

@testable import Contentstack
@testable import ContentstackSwift
import DVR

class AssetQueryAPITest: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/AssetQueryTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift
class AssetQueryTest: XCTestCase {

let testStringValue = "TESTVALUE"
Expand Down
2 changes: 1 addition & 1 deletion Tests/AssetTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift
class AssetTest: XCTestCase {

func testEndPoint() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/ContentStackLogTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift

class CustomeLogMessage: CustomLogger {

Expand Down
2 changes: 1 addition & 1 deletion Tests/ContentTypeQueryAPITest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift
import DVR

class ContentTypeQueryAPITest: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/ContentTypeQueryTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift
class ContentTypeQueryTest: XCTestCase {
let testStringValue = "TESTVALUE"
let testIntValue = 100
Expand Down
2 changes: 1 addition & 1 deletion Tests/ContentTypeTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift

final class ContentTypeTests: XCTestCase {
let uid = "testUID"
Expand Down
2 changes: 1 addition & 1 deletion Tests/ContentstackConfigTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift
class ContentstackConfigTest: XCTestCase {

func testUserAgent() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/ContentstackTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift
import DVR
private var _stackSharedInstance: Stack?

Expand Down
2 changes: 1 addition & 1 deletion Tests/ContentstackTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import XCTest
@testable import Contentstack
@testable import ContentstackSwift

final class ContentstackTests: XCTestCase {

Expand Down
2 changes: 1 addition & 1 deletion Tests/DateTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift
class DateTest: XCTestCase {

func testDateFormatter_withMultipleDateFormat() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/EntryAPITest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift
import DVR

class EntryAPITest: XCTestCase {
Expand Down
2 changes: 1 addition & 1 deletion Tests/EntryQueriableTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift
class EntryQueriableTest: XCTestCase {

let refUID = "reference_uid"
Expand Down
2 changes: 1 addition & 1 deletion Tests/EntryTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift
class EntryTest: XCTestCase {

func testEntry_EndPoint() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/ImageTransformEquatableTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift
class ImageTransformEquatableTest: XCTestCase {
let urlString = "https://images.contentstack.io/v3/assets/uid_136download"

Expand Down
2 changes: 1 addition & 1 deletion Tests/ImageTransformTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift
#if os(iOS) || os(tvOS) || os(watchOS)
import UIKit
#endif
Expand Down
2 changes: 1 addition & 1 deletion Tests/ImageTransformTestAdditional.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift
#if os(iOS) || os(tvOS) || os(watchOS)
import UIKit
#endif
Expand Down
2 changes: 1 addition & 1 deletion Tests/Product.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import Foundation
import Contentstack
import ContentstackSwift

class Product: EntryDecodable {
public enum FieldKeys: String, CodingKey {
Expand Down
2 changes: 1 addition & 1 deletion Tests/QueryEntryType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import Contentstack
@testable import ContentstackSwift

class QueryEntryType: XCTestCase {

Expand Down
Loading
Loading