You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: scripts/README.md
+2-52Lines changed: 2 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,62 +21,12 @@ This directory contains utility scripts for the Adapty iOS SDK project.
21
21
**What it does**:
22
22
- Updates version in `Sources/Versions.swift` (main SDK version constant)
23
23
- Updates version in `Sources.AdaptyPlugin/cross_platform.yaml` (cross-platform schema version)
24
-
- Updates version in all podspec files (CocoaPods specification)
25
24
- Validates version format
26
25
- 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
29
27
30
28
**Version format**: `x.y.z` or `x.y.z-SUFFIX` (e.g., `3.12.0`, `3.12.0-SNAPSHOT`)
31
29
32
30
**Note**: This script should be used whenever you need to change the SDK version. Do not manually edit version numbers in individual files.
33
31
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.
-`--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