Skip to content

Commit e3c016d

Browse files
chore: remove unnecessary dependency to OSCommonPluginLib on iOS (#71)
* chore: remove unnecessary dependency to OSCommonPluginLib on iOS References: https://outsystemsrd.atlassian.net/browse/RMET-4899 * chore: update changelog
1 parent 17cc718 commit e3c016d

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
The changes documented here do not include those from the original repository.
88

9+
## 1.2.13
10+
11+
### Chores
12+
13+
- (ios) remove unecessary dependency to OSCommonPluginLib on iOS (https://outsystemsrd.atlassian.net/browse/RMET-4899)
14+
915
## 1.2.12
1016

1117
### Fixes

plugin.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,6 @@
100100
<!-- iOS Source Files -->
101101
<source-file src="src/ios/OSPayments.swift"/>
102102
<framework src="src/ios/frameworks/OSPaymentsLib.xcframework" embed="true" custom="true" />
103-
104-
<podspec>
105-
<config>
106-
<source url="https://cdn.cocoapods.org/"/>
107-
</config>
108-
<pods use-frameworks="true">
109-
<pod name="OSCommonPluginLib" spec="1.0.0" />
110-
</pods>
111-
</podspec>
112-
113103
</platform>
114104

115105
</plugin>

src/ios/OSPayments.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import OSCommonPluginLib
21
import OSPaymentsLib
32

43
@objc(OSPayments)
@@ -32,11 +31,8 @@ class OSPayments: CDVPlugin {
3231
let accessToken = command.argument(at: 1) as? String
3332
self.plugin?.set(detailsText, and: accessToken)
3433
}
35-
}
36-
37-
// MARK: - OSCore's PlatformProtocol Methods
38-
extension OSPayments: PlatformProtocol {
39-
func sendResult(result: String? = nil, error: NSError? = nil, callBackID: String) {
34+
35+
private func sendResult(result: String? = nil, error: NSError? = nil, callBackID: String) {
4036
var pluginResult = CDVPluginResult(status: CDVCommandStatus_ERROR)
4137

4238
if let error = error {

0 commit comments

Comments
 (0)