diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml new file mode 100644 index 0000000..a6deba0 --- /dev/null +++ b/.github/workflows/release-package.yml @@ -0,0 +1,44 @@ +name: Contentstack iOS Delivery SDK Release + +on: + push: + branches: + - main + +jobs: + release: + name: Release Contentstack iOS Delivery SDK Release + runs-on: macos-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Select Xcode + run: sudo xcode-select -switch /Applications/Xcode.app && /usr/bin/xcodebuild -version + + - name: Install dependencies + run: | + pod install --repo-update + + - name: Build + run: | + # Add commands to build and test your package + xcodebuild -workspace Contentstack.xcworkspace -scheme 'Contentstack' -destination 'platform=iOS Simulator,name=iPhone 13 Pro' + + - name: Tag release + id: tag + run: | + git tag v3.12.2 # Replace with your desired version number + echo "::set-output name=tag::v3.12.2" # Replace with the same version number as above + + - name: Push tag + uses: ad-m/github-push-action@v0.6.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ steps.tag.outputs.tag }} + + - name: CocoaPods trunk push + run: pod trunk push + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/sca-scan.yml b/.github/workflows/sca-scan.yml deleted file mode 100644 index f1d6cf0..0000000 --- a/.github/workflows/sca-scan.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Source Composition Analysis Scan -on: - pull_request: - types: [opened, synchronize, reopened] -jobs: - security: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Run Snyk to check for vulnerabilities - uses: snyk/actions/cocoapods@master - env: - SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} diff --git a/Contentstack.podspec b/Contentstack.podspec index 823553b..f00ebdf 100644 --- a/Contentstack.podspec +++ b/Contentstack.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Contentstack' -s.version = '3.12.1' +s.version = '3.12.2' s.summary = 'Contentstack is a headless CMS with an API-first approach that puts content at the centre.' s.description = <<-DESC @@ -12,7 +12,7 @@ s.homepage = 'https://www.contentstack.com/' s.license = { :type => 'Commercial',:text => 'See https://www.contentstack.com/'} s.author = { 'Contentstack' => 'support@contentstack.io' } -s.source = { :git => 'https://github.com/contentstack/contentstack-ios.git', :tag => 'v3.12.1' } +s.source = { :git => 'https://github.com/contentstack/contentstack-ios.git', :tag => 'v3.12.2' } s.social_media_url = 'https://twitter.com/Contentstack' s.ios.deployment_target = '11.0' diff --git a/Contentstack/Asset.m b/Contentstack/Asset.m index 1a25612..37cf93e 100644 --- a/Contentstack/Asset.m +++ b/Contentstack/Asset.m @@ -7,7 +7,7 @@ // #import "Asset.h" -#import "Stack.h" +#import #import "CSIOInternalHeaders.h" #import "CSIOConstants.h" #import "CSIOAPIURLs.h" diff --git a/Contentstack/Config.m b/Contentstack/Config.m index 6680b04..2a42703 100755 --- a/Contentstack/Config.m +++ b/Contentstack/Config.m @@ -6,7 +6,7 @@ // Copyright © 2016 Contentstack. All rights reserved. // -#import "Config.h" +#import #import "CSIOConstants.h" #import "NSObject+Extensions.h" @implementation Config diff --git a/Contentstack/ContentType.m b/Contentstack/ContentType.m index d539a4a..b01033a 100644 --- a/Contentstack/ContentType.m +++ b/Contentstack/ContentType.m @@ -12,7 +12,7 @@ #import "CSIOCoreHTTPNetworking.h" #import "CSIOAPIURLs.h" #import "NSObject+Extensions.h" -#import "Stack.h" +#import #import "Query.h" #import "Entry.h" #import "Asset.h" diff --git a/Contentstack/Contentstack.m b/Contentstack/Contentstack.m index 46b41c4..503b23e 100755 --- a/Contentstack/Contentstack.m +++ b/Contentstack/Contentstack.m @@ -8,7 +8,7 @@ #import "Contentstack.h" #import "CSIOInternalHeaders.h" -#import "Stack.h" +#import @interface Contentstack () @end diff --git a/Contentstack/Stack.m b/Contentstack/Stack.m index 569dae4..5e2b449 100644 --- a/Contentstack/Stack.m +++ b/Contentstack/Stack.m @@ -6,7 +6,7 @@ // Copyright (c) 2015 Contentstack. All rights reserved. // -#import "Stack.h" +#import #import "CSIOInternalHeaders.h" #import "CSIOConstants.h" #import "CSIOCoreHTTPNetworking.h" diff --git a/ContentstackInternal/CSIOCoreHTTPNetworking.m b/ContentstackInternal/CSIOCoreHTTPNetworking.m index 6b2650c..72a070c 100644 --- a/ContentstackInternal/CSIOCoreHTTPNetworking.m +++ b/ContentstackInternal/CSIOCoreHTTPNetworking.m @@ -10,7 +10,7 @@ #import "CSIOInternalHeaders.h" #import "CSIOConstants.h" #import "CSIOAPIURLs.h" -#import "Stack.h" +#import #import "CSIOURLCache.h" #import "NSObject+Extensions.h" #import "CSURLSessionManager.h" diff --git a/ContentstackInternal/CSIOInternalHeaders.h b/ContentstackInternal/CSIOInternalHeaders.h index 95f1125..ca1c39f 100644 --- a/ContentstackInternal/CSIOInternalHeaders.h +++ b/ContentstackInternal/CSIOInternalHeaders.h @@ -9,7 +9,7 @@ #import "CSIOCoreNetworkingProtocol.h" #import "Contentstack.h" #import "SyncStack.h" -#import "Stack.h" +#import #import "Query.h" #import "ContentType.h" #import "Entry.h" @@ -18,7 +18,7 @@ #import "ISO8601DateFormatter.h" #import "Common.h" #import "CSIOConstants.h" -#import "Config.h" +#import #import "AssetLibrary.h" #import "Group.h" #import "CSError.h" diff --git a/LICENSE b/LICENSE index af16eb4..e17cc92 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2012-2023 Contentstack +Copyright (c) 2012-2024 Contentstack Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Podfile.lock b/Podfile.lock index 8035a50..fc2a5f5 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -1,3 +1,3 @@ PODFILE CHECKSUM: e70b33906e829ccd2b052bc0e0cff91ee8ee49e6 -COCOAPODS: 1.13.0 +COCOAPODS: 1.15.0