Skip to content

Commit 2e8159a

Browse files
author
Nick Kibysh
committed
Merge tag '0.4.1' into develop
Prevent request Bluetooth permission on iOS until it is required (#81)
2 parents 2b6a8a2 + d08c25e commit 2e8159a

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.4.1
2+
Prevent request Bluetooth permission on iOS until it is required (#81):
3+
14
## 0.4.0
25
Read image list (#66):
36
- Added method to read image list. Based on [Android](https://github.com/NordicSemiconductor/Android-nRF-Connect-Device-Manager/blob/cc947d4fe003b5facd8fd03cb005197774bb3e89/mcumgr-core/src/main/java/io/runtime/mcumgr/managers/ImageManager.java#L228) and [iOS](https://github.com/NordicSemiconductor/IOS-nRF-Connect-Device-Manager/blob/d46c9ff85c87e786e8550fc3f4d633b1bc5c67be/Source/Managers/ImageManager.swift#L81) implementations.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ To update the device, call `update` method on the `FirmwareUpdateManager` instan
2424

2525
```dart
2626
// `firmware` is a List of Image objects
27-
List<Image> firmwareScheme = [];
27+
List<Image> firmwareImages = [];
2828
for (final file in manifest.files) {
2929
final image = Image(
3030
image: file.image,
3131
data: firmwareFileData,
3232
);
33-
firmware.firmwareImages!.add(image);
33+
firmwareImages.add(image);
3434
}
3535
3636
final configuration = const FirmwareUpgradeConfiguration(
@@ -40,7 +40,7 @@ final configuration = const FirmwareUpgradeConfiguration(
4040
pipelineDepth: 1,
4141
);
4242
// `configuration` is an optional parameter. If not provided, default values will be used.
43-
updateManager.update(firmware.firmwareScheme, configuration: configuration);
43+
updateManager.update(firmwareImages, configuration: configuration);
4444
```
4545

4646
Alternatively, you can use `updateWithImageData` to update the device with a single image data:

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ packages:
382382
path: ".."
383383
relative: true
384384
source: path
385-
version: "0.4.0"
385+
version: "0.4.1"
386386
meta:
387387
dependency: transitive
388388
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: mcumgr_flutter
22
description: nRF Connect Device Manager library is a Flutter plugin based on
33
Android and iOS nRF Connect Device Manager libraries.
4-
version: 0.4.0
4+
version: 0.4.1
55
homepage: "https://github.com/NordicSemiconductor/Flutter-nRF-Connect-Device-Manager"
66

77
environment:

0 commit comments

Comments
 (0)