Skip to content
Merged
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 FormbricksSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "FormbricksSDK"
s.version = "1.2.0"
s.version = "2.0.0"
s.summary = "iOS SDK for Formbricks"
s.homepage = "https://github.com/formbricks/ios"
s.license = { :type => "MIT", :file => "LICENSE" }
Expand Down
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The iOS SDK for Formbricks

1. In Xcode choose **File → Add Packages…**
2. Enter your repo URL (e.g. `https://github.com/formbricks/ios.git`)
3. Choose version rule (e.g. "Up to Next Major" starting at `1.0.0`).
3. Choose version rule (e.g. "Up to Next Major" starting at `2.0.0`).
4. Import in your code:
```swift
import FormbricksSDK
Expand All @@ -23,7 +23,7 @@ The iOS SDK for Formbricks
use_frameworks! :linkage => :static

target 'YourTargetName' do
pod 'FormbricksSDK', '1.0.0 (or the latest version)'
pod 'FormbricksSDK', '2.0.0 (or the latest version)'
end
```

Expand All @@ -41,11 +41,20 @@ import FormbricksSDK
// 1. Build your config (you can also inject userId + attributes here)
let config = FormbricksConfig.Builder(
appUrl: "https://your‑app.bricks.com",
environmentId: "YOUR_ENV_ID"
workspaceId: "YOUR_WORKSPACE_ID"
)
.setLogLevel(.debug)
.build()

// Note: `environmentId` is still supported as a deprecated alias for
// `workspaceId` and will be removed in a future release.
// Existing integrations using `environmentId` continue to work:
//
// FormbricksConfig.Builder(
// appUrl: "https://your‑app.bricks.com",
// environmentId: "YOUR_ENV_ID" // deprecated, use workspaceId
// )

// 2. Initialize the SDK (once per launch)
Formbricks.setup(with: config)

Expand Down Expand Up @@ -73,7 +82,3 @@ Formbricks.cleanup(waitForOperations: true) {
print("SDK torn down")
}
```

```

```
Loading