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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ This repository publishes two SDKs from a shared codebase. Pick the one that mat

| SDK | Vault type | Install (CocoaPods / SPM product) | Import | Documentation |
|-----|------------|-----------------------------------|--------|---------------|
| **Skyflow** | PDB vault (v1 API) | `pod 'Skyflow'` / `Skyflow` | `import Skyflow` | [Skyflow/README.md](Skyflow/README.md) |
| **SkyflowFlowVault** | Flow vault (v2 API, beta) | `pod 'SkyflowFlowVault'` / `SkyflowFlowVault` | `import SkyflowFlowVault` | [SkyflowFlowVault/README.md](SkyflowFlowVault/README.md) |
| **Skyflow** | PDB vault | `pod 'Skyflow'` / `Skyflow` | `import Skyflow` | [Skyflow/README.md](Skyflow/README.md) |
| **SkyflowFlowVault** | Flow vault | `pod 'SkyflowFlowVault'` / `SkyflowFlowVault` | `import SkyflowFlowVault` | [SkyflowFlowVault/README.md](SkyflowFlowVault/README.md) |

Not sure which one you need? If you are an existing Skyflow iOS customer, stay on **Skyflow** — it is fully backward compatible. **SkyflowFlowVault** is for Flow vaults; if you are moving from a PDB vault, follow its [Upgrading from PDB to FlowDB](SkyflowFlowVault/README.md#upgrading-from-pdb-to-flowdb) migration guide.

Expand Down
2 changes: 1 addition & 1 deletion Skyflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Skyflow's iOS SDK can be used to securely collect, tokenize, and display sensiti
#Otherwise you can add cocoapod trunk as the source
#source 'https://github.com/skyflowapi/skyflow-iOS-spec.git'

pod 'Skyflow'
pod 'Skyflow', '1.26.0'
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@
repositoryURL = "https://github.com/skyflowapi/skyflow-iOS.git";
requirement = {
kind = exactVersion;
version = 1.25.1;
version = 1.26.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
2 changes: 1 addition & 1 deletion Skyflow/Samples/CollectAndRevealSample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ target 'CollectAndRevealSample' do
pod 'AEXML', '4.6.1'

# Pods for skyflow-iOS-sample-app
pod 'Skyflow', '1.25.1'
pod 'Skyflow', '1.26.0'

end
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@
repositoryURL = "https://github.com/skyflowapi/skyflow-iOS.git";
requirement = {
kind = exactVersion;
version = 1.25.1;
version = 1.26.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ class ViewController: UIViewController {
revealButton.addTarget(self, action: #selector(revealForm), for: .touchUpInside)

do {
let composableView = try container?.getComposableView() else {
if let composableView = try container?.getComposableView() {
stackView.addArrangedSubview(composableView)
} else {
print("error")
}
stackView.addArrangedSubview(composableView)
} catch {
print(error)
}
Expand Down
2 changes: 1 addition & 1 deletion Skyflow/Samples/ComposableElements/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ target 'ComposableElements' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod 'AEXML', '4.6.1'
pod 'Skyflow', '1.25.1'
pod 'Skyflow', '1.26.0'
# Pods for ComposableElements

target 'ComposableElementsTests' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@
repositoryURL = "https://github.com/skyflowapi/skyflow-iOS.git";
requirement = {
kind = exactVersion;
version = 1.25.1;
version = 1.26.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
2 changes: 1 addition & 1 deletion Skyflow/Samples/GetSample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ target 'GetSample' do
#use_frameworks!
pod 'AEXML', '4.6.1'
# Pods for GetSample
pod 'Skyflow', '1.25.1'
pod 'Skyflow', '1.26.0'

end
2 changes: 1 addition & 1 deletion Skyflow/Samples/InputFormatting/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ target 'InputFormatting' do
use_frameworks!
pod 'AEXML', '4.6.1'

pod 'Skyflow', '1.25.1'
pod 'Skyflow', '1.26.0'

# Pods for InputFormatting

Expand Down
6 changes: 3 additions & 3 deletions Skyflow/Samples/UpdateDataUsingElements/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ target 'UpdateDataUsingElements' do

# Pods for UpdateDataUsingElements
pod 'AEXML', '4.6.1'
pod 'Skyflow', '1.25.1'
pod 'Skyflow', '1.26.0'

target 'UpdateDataUsingElementsTests' do
inherit! :search_paths
# Pods for testing
pod 'AEXML', '4.6.1'
pod 'Skyflow', '1.25.1'
pod 'Skyflow', '1.26.0'
end

target 'UpdateDataUsingElementsUITests' do
# Pods for testing
pod 'AEXML', '4.6.1'
pod 'Skyflow', '1.25.1'
pod 'Skyflow', '1.26.0'

end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@
repositoryURL = "https://github.com/skyflowapi/skyflow-iOS.git";
requirement = {
kind = exactVersion;
version = 1.25.1;
version = 1.26.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,11 @@ class ViewController: UIViewController {
collectButton.addTarget(self, action: #selector(submitForm), for: .touchUpInside)

do {
let composableView = try container?.getComposableView()
stackView.addArrangedSubview(composableView)
if let composableView = try container?.getComposableView() {
stackView.addArrangedSubview(composableView)
} else {
print("error")
}
} catch {
print(error)
}
Expand Down
2 changes: 1 addition & 1 deletion Skyflow/Samples/UpsertFeature/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://github.com/CocoaPods/Specs.git'
target 'UpsertFeature' do
pod 'Skyflow', '1.25.1'
pod 'Skyflow', '1.26.0'
end
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
repositoryURL = "https://github.com/skyflowapi/skyflow-iOS.git";
requirement = {
kind = exactVersion;
version = 1.25.1;
version = 1.26.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
2 changes: 1 addition & 1 deletion Skyflow/Samples/Validations/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ target 'Validations' do
#use_frameworks!
pod 'AEXML', '4.6.1'
# Pods for skyflow-iOS-sample-app
pod 'Skyflow', '1.25.1'
pod 'Skyflow', '1.26.0'

end
12 changes: 6 additions & 6 deletions SkyflowFlowVault/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Skyflow's iOS SDK can be used to securely collect, tokenize, and display sensiti
- [Error Handling Reference](#error-handling-reference)
- [Reporting a Vulnerability](#reporting-a-vulnerability)
# Upgrading from PDB to FlowDB
Starting in **v1.26.0-beta.1**, Collect and Reveal run on Skyflow's FlowDB backend. If you're upgrading from an earlier version, a few things changed:
Starting in **v1.26.0**, Collect and Reveal run on Skyflow's FlowDB backend. If you're upgrading from an earlier version, a few things changed:

- **`CollectElementInput.altText` is deprecated and now a no-op** - it's accepted but never read or stored. Use `placeholder` instead.
- **`CollectOptions.tokens` (`Bool`) was removed** - tokens are always returned now; there's no way to opt out.
Expand Down Expand Up @@ -115,9 +115,9 @@ That's the whole round trip both ways - no card data ever touches your app code
## Configuration
---
### SPM (Swift Package Manager)
- Go to File -> Swift Packages -> New Package Dependency (in Xcode IDE)
- Enter https://github.com/skyflowapi/skyflow-iOS.git and press ok.
- In the "Choose Package Products" dialog, check the **SkyflowFlowVault** product and add it to your app target.
- In Xcode: File → Add Package Dependencies → enter `https://github.com/skyflowapi/skyflow-iOS.git`.
- Set Dependency Rule to **Exact Version** and enter `1.26.0`.
- In the "Choose Package Products" dialog, check the **SkyflowFlowVault** product (not Skyflow) and add it to your app target.

### Cocoapods
- To integrate skyflow-iOS into your Xcode project using CocoaPods, specify it in your Podfile:
Expand All @@ -126,7 +126,7 @@ That's the whole round trip both ways - no card data ever touches your app code
#Otherwise you can add cocoapod trunk as the source
#source 'https://github.com/skyflowapi/skyflow-iOS-spec.git'

pod 'SkyflowFlowVault'
pod 'SkyflowFlowVault', '1.26.0'
```


Expand Down Expand Up @@ -2183,7 +2183,7 @@ onFailure: { (skyflowError: SkyflowFlowVault.SkyflowError) in
```
`grpcCode`, `httpStatus`, and `details` are only populated for this whole-request-failure shape - they're `nil` for client-side validation failures (empty `vaultID`, unmounted element, missing required field, etc.), which only populate `httpCode` and `message`:
- `httpCode` is a client-assigned code describing the kind of problem (typically `400`, sometimes `404` for a "not found"-shaped issue like an empty records array) - it was never returned by an actual HTTP response, so don't treat it as a real server status.
- `message` is a description prefixed with the SDK name and version, e.g. `"iOS SDK v1.26.0-beta.1 Validation error.'table' key not found in collect element. Specify a valid value for 'table' key."`
- `message` is a description prefixed with the SDK name and version, e.g. `"SkyflowFlowVault iOS SDK v1.26.0 Validation error.'table' key not found in collect element. Specify a valid value for 'table' key."`

In short: if `grpcCode`/`httpStatus`/`details` are all `nil`, you're looking at a client-side validation failure (bad input, caught before any network call) - use `message` to see which check failed. If they're populated, the vault itself rejected or couldn't process the request.

Expand Down
2 changes: 1 addition & 1 deletion SkyflowFlowVault/Samples/CollectAndRevealSample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ target 'CollectAndRevealSample' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

pod 'SkyflowFlowVault', :git => 'https://github.com/skyflowapi/skyflow-iOS.git', :branch => 'release/26.8.2'
pod 'SkyflowFlowVault', '1.26.0'

# Pods for CollectAndRevealSample

Expand Down
22 changes: 22 additions & 0 deletions SkyflowFlowVault/Samples/CollectAndRevealSample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
PODS:
- SkyflowFlowVault (1.26.0-beta.1-dev.6c9239a)

DEPENDENCIES:
- SkyflowFlowVault (from `https://github.com/skyflowapi/skyflow-iOS.git`, branch `release/26.8.2`)

EXTERNAL SOURCES:
SkyflowFlowVault:
:branch: release/26.8.2
:git: https://github.com/skyflowapi/skyflow-iOS.git

CHECKOUT OPTIONS:
SkyflowFlowVault:
:commit: 43898bdc465957743bd0a0228f7d256cd2a773f1
:git: https://github.com/skyflowapi/skyflow-iOS.git

SPEC CHECKSUMS:
SkyflowFlowVault: c26dd555a81453de5feabea0a1170c4cc4337a27

PODFILE CHECKSUM: f64eb7f85dd52ab54335e7833ca22738496cca33

COCOAPODS: 1.16.2
2 changes: 1 addition & 1 deletion SkyflowFlowVault/Samples/ComposableElements/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ target 'ComposableElements' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

pod 'SkyflowFlowVault', :git => 'https://github.com/skyflowapi/skyflow-iOS.git', :branch => 'release/26.8.2'
pod 'SkyflowFlowVault', '1.26.0'

# Pods for ComposableElements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,8 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/skyflowapi/skyflow-iOS.git";
requirement = {
branch = release/26.8.2;
kind = branch;
kind = exactVersion;
version = 1.26.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
2 changes: 1 addition & 1 deletion SkyflowFlowVault/Samples/InputFormatting/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ target 'InputFormatting' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

pod 'SkyflowFlowVault', :git => 'https://github.com/skyflowapi/skyflow-iOS.git', :branch => 'release/26.8.2'
pod 'SkyflowFlowVault', '1.26.0'

# Pods for InputFormatting

Expand Down
2 changes: 1 addition & 1 deletion SkyflowFlowVault/Samples/UpdateDataUsingElements/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ target 'UpdateDataUsingElements' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

pod 'SkyflowFlowVault', :git => 'https://github.com/skyflowapi/skyflow-iOS.git', :branch => 'release/26.8.2'
pod 'SkyflowFlowVault', '1.26.0'

# Pods for UpdateDataUsingElements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -755,8 +755,8 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/skyflowapi/skyflow-iOS.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 1.24.2;
kind = exactVersion;
version = 1.26.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
2 changes: 1 addition & 1 deletion SkyflowFlowVault/Samples/UpsertFeature/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ target 'UpsertFeature' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

pod 'SkyflowFlowVault', :git => 'https://github.com/skyflowapi/skyflow-iOS.git', :branch => 'release/26.8.2'
pod 'SkyflowFlowVault', '1.26.0'

# Pods for UpsertFeature

Expand Down
2 changes: 1 addition & 1 deletion SkyflowFlowVault/Samples/Validations/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ target 'Validations' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

pod 'SkyflowFlowVault', :git => 'https://github.com/skyflowapi/skyflow-iOS.git', :branch => 'release/26.8.2'
pod 'SkyflowFlowVault', '1.26.0'

# Pods for Validations

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/skyflowapi/skyflow-iOS.git";
requirement = {
branch = release/26.8.2;
kind = branch;
kind = exactVersion;
version = 1.26.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
Loading