Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/outsystems/oscore-ios
Library for iOS
https://github.com/outsystems/oscore-ios
engineering odc snyk-mobile ssdlc-rules
Last synced: 4 days ago
JSON representation
Library for iOS
- Host: GitHub
- URL: https://github.com/outsystems/oscore-ios
- Owner: OutSystems
- License: mit
- Created: 2021-08-27T10:29:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-18T10:46:31.000Z (9 months ago)
- Last Synced: 2024-12-08T01:32:50.680Z (27 days ago)
- Topics: engineering, odc, snyk-mobile, ssdlc-rules
- Language: Ruby
- Homepage:
- Size: 133 KB
- Stars: 0
- Watchers: 19
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swift protocol for stack agnostic plugin implementation
## Index
- [Motivation](#motivation)
- [Supported Platforms](#supported-platforms)
- [Usage](#usage)
- [Methods](#methods)## Motivation
This repository contains a protocol that interfaces business logic with iOS platform.
Developers are able to create their own integrations of `PlatformProtocol` for their target mobile framework.
This structure allows us to develop native plugins, portable between techonological stacks (ie: Cordova, React-native, Flutter...)
## Supported Platforms
- iOS
## Usage1. Include the `POD_NAME` pod in your project.
2. Create an extension that implements `PlatformProtocol`.
```swift
extension CordovaInterface: PlatformProtocol {
func sendResult(result: String?, error: NSError?, callBackID: String) {
// ... processes and sends a response back to Cordova
}
func trigger(event: String, data: String) {
// ... triggers an event on the Cordova webview
}
}
```## Methods
- `sendResult(result: String?, error: NSError?, callBackID: String)` will send messages back to the mobile framework.
- `trigger(event: String, data: String)` will trigger an event on the mobile framework's webview.