Skip to content

Commit bbd8aeb

Browse files
committed
chore: drop CocoaPods support
SDK ships via Swift Package Manager only starting from 4.0.0. Remove all podspecs and the trunk-publish script, and strip CocoaPods references from README, AGENTS, and scripts docs.
1 parent 2243a4a commit bbd8aeb

9 files changed

Lines changed: 4 additions & 501 deletions

AGENTS.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,9 @@ swift test
2525
## SDK Version Management
2626
For update version read scripts/README.md
2727

28-
## Publishing to CocoaPods
28+
## Distribution
2929

30-
```bash
31-
./scripts/publish_podspecs.sh [--skip-lint] [--skip-tests] [--max-retries N]
32-
```
33-
Publishes in dependency order: Adapty → AdaptyUI → AdaptyPlugin.
30+
Distributed via Swift Package Manager only. CocoaPods support was dropped in 4.0.0.
3431

3532
## Sources Structure
3633
| Module | Path | Purpose |

Adapty.podspec

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

AdaptyLogger.podspec

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

AdaptyPlugin.podspec

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

AdaptyUI.podspec

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

AdaptyUIBuilder.podspec

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

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
<p align="center">
1212
<a href="https://go.adapty.io/subhub-community-ios-rep"><img src="https://img.shields.io/badge/Adapty-discord-purple"></a>
13-
<a href="http://bit.ly/3qXy7cf"><img src="https://img.shields.io/cocoapods/v/Adapty.svg?style=flat"></a>
14-
<a href="https://github.com/adaptyteam/AdaptySDK-iOS/blob/master/LICENSE"><img src="https://img.shields.io/cocoapods/l/Adapty.svg?style=flat"></a>
15-
<a href="http://bit.ly/3qXy7cf2"><img src="https://img.shields.io/cocoapods/p/Adapty.svg?style=flat"></a>
1613
<a href="https://adapty.io/docs/sdk-installation-ios#install-adapty-sdk?utm_source=github&utm_medium=referral&utm_campaign=AdaptySDK-iOS"><img src="https://img.shields.io/badge/SwiftPM-compatible-orange.svg"></a>
1714
</p>
1815

scripts/README.md

Lines changed: 2 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -21,62 +21,12 @@ This directory contains utility scripts for the Adapty iOS SDK project.
2121
**What it does**:
2222
- Updates version in `Sources/Versions.swift` (main SDK version constant)
2323
- Updates version in `Sources.AdaptyPlugin/cross_platform.yaml` (cross-platform schema version)
24-
- Updates version in all podspec files (CocoaPods specification)
2524
- Validates version format
2625
- Verifies all changes were applied correctly
27-
- Updates CocoaPods dependencies in example projects (runs `pod update` for all projects in `examples/` that have a `Podfile.lock`)
28-
- Shows summary of all updated files and example projects
26+
- Shows summary of all updated files
2927

3028
**Version format**: `x.y.z` or `x.y.z-SUFFIX` (e.g., `3.12.0`, `3.12.0-SNAPSHOT`)
3129

3230
**Note**: This script should be used whenever you need to change the SDK version. Do not manually edit version numbers in individual files.
3331

34-
**Example projects update**: The script automatically finds all example projects in the `examples/` directory that have a `Podfile.lock` file and runs `pod update` to ensure they use the latest SDK version. If any project fails to update, a warning is shown but the script continues.
35-
36-
## Publishing to CocoaPods
37-
38-
### `publish_podspecs.sh`
39-
40-
**Purpose**: Publishes all Adapty iOS SDK podspecs to CocoaPods trunk in the correct dependency order, with automatic retry logic and availability checking.
41-
42-
**Usage**:
43-
```bash
44-
# From project root directory
45-
./scripts/publish_podspecs.sh [OPTIONS]
46-
47-
# Examples
48-
./scripts/publish_podspecs.sh
49-
./scripts/publish_podspecs.sh --skip-lint
50-
./scripts/publish_podspecs.sh --skip-tests
51-
./scripts/publish_podspecs.sh --skip-lint --skip-tests
52-
./scripts/publish_podspecs.sh --max-retries 10
53-
```
54-
55-
**Options**:
56-
- `--skip-lint`: Skip `pod lib lint` before publishing (faster, but less safe)
57-
- `--skip-tests`: Skip building and running tests during validation for all podspecs (faster, but less thorough)
58-
- `--max-retries N`: Maximum number of retries for each podspec (default: 5)
59-
- `--help`: Show help message
60-
61-
**Note**: Tests are automatically skipped for podspecs that have dependencies (AdaptyUI and AdaptyPlugin), since dependencies might not be fully available yet during linting. The `--skip-tests` flag can be used to skip tests for all podspecs, including Adapty.
62-
63-
**What it does**:
64-
1. Publishes podspecs in dependency order:
65-
- `Adapty.podspec` (no dependencies)
66-
- `AdaptyUI.podspec` (depends on Adapty)
67-
- `AdaptyPlugin.podspec` (depends on Adapty and AdaptyUI)
68-
2. For each podspec:
69-
- Updates pod repo to get latest dependencies from previous publishes
70-
- Runs `pod lib lint` (unless `--skip-lint` is used)
71-
- Automatically skips tests for podspecs with dependencies (to avoid dependency availability issues)
72-
- Publishes to CocoaPods trunk with `pod trunk push --synchronous` (waits for dependencies to be available)
73-
- Automatically skips tests for podspecs with dependencies
74-
- Updates pod repo with `pod repo update`
75-
- Retries on failure with configurable retry count
76-
3. Stops if any podspec fails to publish
77-
78-
**Prerequisites**:
79-
- CocoaPods must be installed (`gem install cocoapods`)
80-
- You must be logged into CocoaPods trunk (`pod trunk register` and `pod trunk me`)
81-
82-
**Note**: The script uses the `--synchronous` flag when publishing, which makes CocoaPods wait for recently pushed dependencies to become available before proceeding. This eliminates the need for manual waiting and polling.
32+
> **Distribution note**: As of 4.0.0 the SDK ships via Swift Package Manager only; CocoaPods support (podspecs and the trunk-publish flow) was removed.

0 commit comments

Comments
 (0)