Skip to content

Commit 56cc394

Browse files
Merge pull request #15 from OutSystems/development
RMET-3312 Barcode Plugin - Prepare release of version `1.1.0`
2 parents 3b43f17 + 67ff368 commit 56cc394

File tree

21 files changed

+694
-188
lines changed

21 files changed

+694
-188
lines changed

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,35 @@ 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.1.0]
10+
11+
### Android
12+
13+
#### Chores
14+
- Update library to include the zoom feature (https://outsystemsrd.atlassian.net/browse/RMET-2987).
15+
16+
### iOS
17+
18+
#### Chores
19+
- Update library to include the zoom feature (https://outsystemsrd.atlassian.net/browse/RMET-2986).
20+
21+
#### Refactors
22+
- Replace `OSBARCArgumentMappable` static method with an initialiser.
23+
924
## [1.0.0]
1025

1126
### iOS
1227

13-
- Fix error codes and messages (https://outsystemsrd.atlassian.net/browse/RMET-3038).
28+
#### Features
1429
- Add `scanOrientation` argument to `scanBarcode` (https://outsystemsrd.atlassian.net/browse/RMET-2753).
1530
- Add `cameraDirection` argument to `scanBarcode` (https://outsystemsrd.atlassian.net/browse/RMET-2754).
1631
- Add `scanButtonText` argument to `scanBarcode` (https://outsystemsrd.atlassian.net/browse/RMET-2752).
1732
- Add `scanInstructions` argument to `scanBarcode` (https://outsystemsrd.atlassian.net/browse/RMET-2751).
1833
- Implement `scanBarcode` (https://outsystemsrd.atlassian.net/browse/RMET-2748).
1934

35+
#### Fixes
36+
- Fix error codes and messages (https://outsystemsrd.atlassian.net/browse/RMET-3038).
37+
2038
### Android
2139

2240
#### 09-01-2024

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.outsystems.plugins.barcode",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "Cordova Bridge for the OutSystems Officially Supported Barcode Plugin.",
55
"keywords": [
66
"ecosystem:cordova",

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<plugin id="com.outsystems.plugins.barcode" version="1.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
2+
<plugin id="com.outsystems.plugins.barcode" version="1.1.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
33
<name>OSBarcode</name>
44
<description>Cordova Bridge for the OutSystems Officially Supported Barcode Plugin.</description>
55
<author>OutSystems Inc</author>

src/android/com/outsystems/plugins/barcode/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ apply plugin: 'kotlin-kapt'
2929
dependencies {
3030
implementation("com.github.outsystems:oscore-android:1.2.0@aar")
3131
implementation("com.github.outsystems:oscordova-android:2.0.0@aar")
32-
implementation("com.github.outsystems:osbarcode-android:1.0.0@aar")
32+
implementation("com.github.outsystems:osbarcode-android:1.1.0@aar")
3333

3434
implementation 'androidx.appcompat:appcompat:1.4.1'
3535
implementation "androidx.activity:activity-ktx:1.4.0"

src/ios/OSBarcodeScanArgumentsModel.swift

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

43
struct OSBarcodeScanArgumentsModel: Decodable {
@@ -27,10 +26,10 @@ struct OSBarcodeScanArgumentsModel: Decodable {
2726
}
2827

2928
let cameraDirectionInt = try container.decode(Int.self, forKey: .cameraDirection)
30-
let cameraDirection = OSBARCCameraModel.map(value: cameraDirectionInt)
29+
let cameraDirection = OSBARCCameraModel(value: cameraDirectionInt)
3130

3231
let scanOrientationInt = try container.decode(Int.self, forKey: .scanOrientation)
33-
let scanOrientation = OSBARCOrientationModel.map(value: scanOrientationInt)
32+
let scanOrientation = OSBARCOrientationModel(value: scanOrientationInt)
3433

3534
self.init(scanInstructions, scanButtonText, cameraDirection, scanOrientation)
3635
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import OSBarcodeLib
22

33
protocol OSBARCArgumentMappable {
4-
static func map(value: Int) -> Self
4+
init(value: Int)
55
}
66

77
extension OSBARCCameraModel: OSBARCArgumentMappable {
8-
static func map(value: Int) -> OSBARCCameraModel { value == 1 ? .back : .front }
8+
init(value: Int) { self = value == 2 ? .front : .back }
99
}
1010

1111
extension OSBARCOrientationModel: OSBARCArgumentMappable {
12-
static func map(value: Int) -> OSBARCOrientationModel {
12+
init(value: Int) {
1313
switch value {
14-
case 1: return .portrait
15-
case 2: return .landscape
16-
default: return .adaptive
14+
case 1: self = .portrait
15+
case 2: self = .landscape
16+
default: self = .adaptive
1717
}
1818
}
1919
}

src/ios/frameworks/OSBarcodeLib.xcframework/Info.plist

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@
66
<array>
77
<dict>
88
<key>LibraryIdentifier</key>
9-
<string>ios-arm64</string>
9+
<string>ios-arm64_x86_64-simulator</string>
1010
<key>LibraryPath</key>
1111
<string>OSBarcodeLib.framework</string>
1212
<key>SupportedArchitectures</key>
1313
<array>
1414
<string>arm64</string>
15+
<string>x86_64</string>
1516
</array>
1617
<key>SupportedPlatform</key>
1718
<string>ios</string>
19+
<key>SupportedPlatformVariant</key>
20+
<string>simulator</string>
1821
</dict>
1922
<dict>
2023
<key>LibraryIdentifier</key>
21-
<string>ios-arm64_x86_64-simulator</string>
24+
<string>ios-arm64</string>
2225
<key>LibraryPath</key>
2326
<string>OSBarcodeLib.framework</string>
2427
<key>SupportedArchitectures</key>
2528
<array>
2629
<string>arm64</string>
27-
<string>x86_64</string>
2830
</array>
2931
<key>SupportedPlatform</key>
3032
<string>ios</string>
31-
<key>SupportedPlatformVariant</key>
32-
<string>simulator</string>
3333
</dict>
3434
</array>
3535
<key>CFBundlePackageType</key>
Binary file not shown.

0 commit comments

Comments
 (0)