Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
9965acc
Merge pull request #390 from CleverTap/develop
akashvercetti Nov 29, 2024
6d98aaf
Merge pull request #399 from CleverTap/develop
nishant-clevertap Jan 23, 2025
a831e8a
1. Added podspec changes to support swift.
akashvercetti Mar 2, 2025
3ff171a
Added a temporary swift file to fully test compatibility with hybrid …
akashvercetti Mar 5, 2025
1b0576a
added a temporary import for swift files for debugging. TODO: remove …
akashvercetti Mar 6, 2025
9141d80
Added temporary imports and comments for testing. TODO: Remove this l…
akashvercetti Mar 7, 2025
c39d10c
added a test github workflow to build and upload xcframework to a dra…
akashvercetti Mar 18, 2025
ac0f168
added SDWebImage xcframework to build CleverTapSDK for both device an…
akashvercetti Mar 18, 2025
96163af
fixed location of version.txt in the workflow
akashvercetti Mar 18, 2025
10ad1cf
stored the sdk version in an environment variable for the xcframework…
akashvercetti Mar 18, 2025
3037b7e
Update Package.swift with new release URL and checksum
invalid-email-address Mar 18, 2025
f887012
fixed wrong urls being updated by the github action
akashvercetti Mar 18, 2025
ca65c00
Update Package.swift with new release URL and checksum
invalid-email-address Mar 18, 2025
c827dd8
updated workflow to not depend on placeholders for packge.swift
akashvercetti Mar 18, 2025
a625850
updated regex for replacing xcframework URL
akashvercetti Mar 19, 2025
78e0ddc
Update Package.swift with new release URL and checksum
invalid-email-address Mar 19, 2025
1c9b68a
updated workflow for creating or editing draft releases
akashvercetti Mar 19, 2025
a798565
updated workflow logic for creating/updating draft release
akashvercetti Mar 19, 2025
20bc2a6
updated workflow to use tagName instead of id for creating/updating d…
akashvercetti Mar 19, 2025
c5d61fb
used gh_token instead of github_token for github cli commands in the …
akashvercetti Mar 19, 2025
5fdd8c5
added release name to env for workflow
akashvercetti Mar 19, 2025
b1704a1
fixed gh release view command to us tag instead of name
akashvercetti Mar 19, 2025
0ec6de3
Update Package.swift with uploaded asset URL and checksum
invalid-email-address Mar 19, 2025
8e86c90
updated checksum logic for workflow
akashvercetti Mar 19, 2025
0d9d102
Update Package.swift with uploaded asset URL and checksum
invalid-email-address Mar 19, 2025
c9e6561
updated awk command to update checksum in workflow
akashvercetti Mar 19, 2025
52660ec
updated awk command for workflow
akashvercetti Mar 19, 2025
4b45924
Update Package.swift with uploaded asset URL and checksum
invalid-email-address Mar 19, 2025
50372bd
added pull before commiting package.swift in workflow
akashvercetti Mar 19, 2025
8a23c53
Merge branch 'SDK-4101-swift-support' of https://github.com/CleverTap…
akashvercetti Mar 19, 2025
052e713
Update Package.swift with new release URL and checksum
invalid-email-address Mar 19, 2025
5befbe9
added tag to the draft release to test xcframeworks for SPM
akashvercetti Mar 19, 2025
39fa96d
added version/tag inn env variables for workflow
akashvercetti Mar 19, 2025
a2455d4
added release name and to draft release
akashvercetti Mar 19, 2025
5131541
Update Package.swift with new release URL and checksum
invalid-email-address Mar 19, 2025
4cf45ef
added a tag before checking for draft releases in workflow
akashvercetti Mar 19, 2025
0026885
Merge branch 'SDK-4101-swift-support' of https://github.com/CleverTap…
akashvercetti Mar 19, 2025
061fad5
Update Package.swift with new release URL and checksum
invalid-email-address Mar 19, 2025
65f2f05
added a new workflow for testing:
akashvercetti Mar 20, 2025
ec6c5c0
Update Package.swift with new release URL and checksum
invalid-email-address Mar 20, 2025
c672c52
fixed version check in workflow
akashvercetti Mar 20, 2025
f4d9c08
Update Package.swift with new release URL and checksum
invalid-email-address Mar 20, 2025
cca6a0b
fixed git diff error for workflow
akashvercetti Mar 20, 2025
e08cea7
sdk version changes to test workflow
akashvercetti Mar 20, 2025
44c5ca9
Update Package.swift with new release URL and checksum
invalid-email-address Mar 20, 2025
aaebf36
added new workflow to create draft release and upload xcframework to it.
akashvercetti Mar 21, 2025
3f738b1
updated workflow to use a local simulator architecture for sdwebimage…
akashvercetti Mar 24, 2025
31b59fa
version change to force workflow trigger
akashvercetti Mar 24, 2025
4050fa2
fixed workflow errors
akashvercetti Mar 24, 2025
ec4cc52
Update Package.swift with new release URL and checksum
invalid-email-address Mar 24, 2025
84fae04
removed sdwebimage xcframework
akashvercetti Mar 24, 2025
995db99
updated package.swift with s3 url of xcframework
akashvercetti Mar 26, 2025
cd81d61
updated workflow to only update checksum since s3 url will be the same
akashvercetti Mar 26, 2025
38d7413
updated version txt to force workflow trigger
akashvercetti Mar 26, 2025
534204d
Update Package.swift with new S3 URL and checksum
invalid-email-address Mar 26, 2025
1d731a0
updated version txt to force workflow trigger
akashvercetti Mar 26, 2025
7d25548
Update Package.swift with new S3 URL and checksum
invalid-email-address Mar 26, 2025
21a154c
updated version txt to force workflow trigger
akashvercetti Mar 26, 2025
4f6284d
Update Package.swift with new S3 URL and checksum
invalid-email-address Mar 26, 2025
6999cea
updated workflow to upload xcframework using versioned s3 urls
akashvercetti Mar 27, 2025
79c95c4
Update Package.swift with new S3 URL and checksum
invalid-email-address Mar 27, 2025
0fa0c84
updated version to force worflow trigger
akashvercetti Mar 27, 2025
f9ff490
Update Package.swift with new S3 URL and checksum
invalid-email-address Mar 27, 2025
c17b027
removed the logic to upload xcframework to github assets since its up…
akashvercetti Mar 28, 2025
d1bedbd
added a workflow to test running unit tests and code coverage
akashvercetti Apr 2, 2025
14ade25
fixed tests target in the unit tests workflow
akashvercetti Apr 2, 2025
87c432f
added a post install script to remove libarcite errors after pod install
akashvercetti Apr 2, 2025
3f7a534
added location for simulator architecture sdwebimage to run unit test…
akashvercetti Apr 2, 2025
eb880e3
removed placeholder.h from wrapper target and added -destination to t…
akashvercetti Apr 9, 2025
785929f
Update Package.swift with new S3 URL and checksum
invalid-email-address Apr 9, 2025
dcee9cf
removed methods from dummy.swift
akashvercetti Apr 9, 2025
0bd39df
Update Package.swift with new S3 URL and checksum
invalid-email-address Apr 9, 2025
2bcbba8
updated version to trigger workflow
akashvercetti Apr 24, 2025
1034bad
trigger workflow
akashvercetti Apr 24, 2025
5d789d9
trigger workflow
akashvercetti Apr 24, 2025
e096ef0
Update Package.swift with new S3 URL and checksum
invalid-email-address Apr 24, 2025
829f0c0
trigger workflow
akashvercetti Apr 24, 2025
97cebf1
Update Package.swift with new S3 URL and checksum
invalid-email-address Apr 24, 2025
63369f8
trigger worfkflow
akashvercetti Apr 24, 2025
5c1e0d4
Update Package.swift with new S3 URL and checksum
invalid-email-address Apr 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 0 additions & 6 deletions .github/mini_flows/build_project/action.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .github/mini_flows/install_dependencies/action.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/mini_flows/mandatory_filechanges/action.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .github/mini_flows/pod_lib_lint/action.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/mini_flows/pod_release/action.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/mini_flows/run_tests/action.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/mini_flows/setup_xcode/action.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/mini_flows/validate_pr_description/action.yml

This file was deleted.

69 changes: 69 additions & 0 deletions .github/workflows/create_draft_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Create draft release

on:
push:
branches:
- master
workflow_dispatch:
inputs:
force_build:
description: "Force build even if sdk-version.txt has not changed"
required: false
default: "false"

permissions:
contents: write

jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Check for sdk-version.txt Change
id: check_version
run: |
git fetch origin
if [ "${{ github.event.inputs.force_build }}" == 'true' ]; then
echo "🟠 Force build triggered. Continuing..."
elif git diff --quiet HEAD^ HEAD -- sdk-version.txt; then
echo "❌ No changes in sdk-version.txt. Exiting..."
exit 1
fi
echo "✅ sdk-version.txt has changed. Continuing..."

- name: Install dependencies
run: |
sudo xcode-select -s /Applications/Xcode_15.0.app
swift --version
echo "✅ Dependencies installed successfully"

- name: Create or Update Draft Release
run: |
VERSION=$(cat sdk-version.txt) # Read the version from sdk-version.txt
TAG="$VERSION"
RELEASE_NAME="CleverTap iOS SDK $VERSION"
RELEASE_NOTES="CleverTap iOS SDK $VERSION Release Notes"

# Check if the tag exists
if ! git rev-parse "$TAG" >/dev/null 2>&1; then
git tag "$TAG"
git push origin "$TAG"
fi

# Check if a draft release already exists
EXISTING_RELEASE=$(gh release list --json name,tagName --jq ".[] | select(.tagName == \"$TAG\") | .tagName")

if [ -n "$EXISTING_RELEASE" ]; then
echo "🟠 Draft release found. Skipping asset upload as S3 is used."
else
echo "🟢 No existing draft found. Creating new one..."
gh release create "$TAG" \
--title "$RELEASE_NAME" \
--notes "$RELEASE_NOTES" \
--draft
echo "✅ New draft release created."
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57 changes: 0 additions & 57 deletions .github/workflows/on_pr_from_develop_to_master.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/on_pr_from_task_to_develop.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/run_unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Run Unit Tests with Coverage

on:
push:
branches:
- SDK-4101-swift-support

jobs:
test:
runs-on: macos-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Xcode
run: sudo xcode-select -s /Applications/Xcode_15.0.app

- name: Install CocoaPods dependencies
run: pod install --repo-update

- name: Install Slather
run: gem install slather

- name: Run Unit Tests with Coverage
run: |
xcodebuild test \
-workspace CleverTapSDK.xcworkspace \
-scheme CleverTapSDKTests \
-destination 'platform=iOS Simulator,name=iPhone 15' \
-enableCodeCoverage YES \
-resultBundlePath TestResults.xcresult \
FRAMEWORK_SEARCH_PATHS="./Vendors/simulator" \
| xcpretty --color && exit ${PIPESTATUS[0]}

- name: Generate Code Coverage Report with Slather
run: |
slather coverage --html --output-directory slather-report --scheme CleverTapSDK CleverTapSDK.xcodeproj
echo "✅ Code coverage report generated."

- name: Upload HTML Coverage Report as Artifact
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: slather-report
Loading