Skip to content

Commit

Permalink
release of v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
juliansteenbakker committed Feb 13, 2023
1 parent 0159e2b commit f7865cd
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 40 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## 5.3.0
[Android] Add dataDelay and numberOfRetries parameters to androidSpecialParameter.
## 6.0.0
macOS is now supported! The configuration is the same as for iOS.

Other changes:
* [Android] Add dataDelay and numberOfRetries parameters to androidSpecialParameter.
* [iOS] packetReceiptNotificationParameter parameter is added. Set this to 1 if you get error 308.

## 5.2.1
[Android] revert kotlin 1.8.0 to 1.7.10 due to compatibility issues.
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dev.steenbakker.nordicdfuexample">
package="dev.steenbakker.nordic_dfu_example">

<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
Expand Down
4 changes: 2 additions & 2 deletions example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Sep 22 15:20:20 CEST 2022
#Mon Feb 13 14:58:26 CET 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
28 changes: 19 additions & 9 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -169,7 +169,6 @@
TargetAttributes = {
97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1;
DevelopmentTeam = RCH2VG82SH;
LastSwiftMigration = 0910;
};
};
Expand Down Expand Up @@ -211,6 +210,7 @@
/* Begin PBXShellScriptBuildPhase section */
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
Expand All @@ -230,17 +230,17 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/Protobuf/Protobuf.framework",
"${BUILT_PRODUCTS_DIR}/Protobuf/protobuf.framework",
"${BUILT_PRODUCTS_DIR}/ZIPFoundation/ZIPFoundation.framework",
"${BUILT_PRODUCTS_DIR}/flutter_blue_plus/flutter_blue_plus.framework",
"${BUILT_PRODUCTS_DIR}/flutter_blue/flutter_blue.framework",
"${BUILT_PRODUCTS_DIR}/iOSDFULibrary/iOSDFULibrary.framework",
"${BUILT_PRODUCTS_DIR}/nordic_dfu/nordic_dfu.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Protobuf.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/protobuf.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ZIPFoundation.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_blue_plus.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_blue.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/iOSDFULibrary.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nordic_dfu.framework",
);
Expand All @@ -251,6 +251,7 @@
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
Expand Down Expand Up @@ -380,7 +381,10 @@
);
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
Expand Down Expand Up @@ -508,7 +512,10 @@
);
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
Expand Down Expand Up @@ -538,7 +545,10 @@
);
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
Expand Down
2 changes: 2 additions & 0 deletions example/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,7 @@
<string>Play with BLE Compatible devices</string>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
</plist>
6 changes: 3 additions & 3 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Demonstrates how to use the nordic_dfu plugin.
publish_to: 'none'

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.12.0 <4.0.0'

dependencies:
collection: ^1.16.0
Expand All @@ -12,12 +12,12 @@ dependencies:
flutter_blue: ^0.8.0
nordic_dfu:
path: ../
permission_handler: ^10.0.1
permission_handler: ^10.2.0

dev_dependencies:
flutter_test:
sdk: flutter
lint: ^1.10.0
lint: ^2.0.1

flutter:
uses-material-design: true
Expand Down
14 changes: 0 additions & 14 deletions ios/Classes/NordicDfuPlugin.swift

This file was deleted.

17 changes: 9 additions & 8 deletions lib/src/ios_special_parameter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,15 @@ class IosSpecialParameter {
/// notification will be disabled by the DFU target. Default value is 12.
final int? packetReceiptNotificationParameter;

const IosSpecialParameter(
{this.alternativeAdvertisingNameEnabled,
this.forceScanningForNewAddressInLegacyDfu,
this.connectionTimeout,
this.dataObjectPreparationDelay,
this.alternativeAdvertisingName,
this.disableResume,
this.packetReceiptNotificationParameter,});
const IosSpecialParameter({
this.alternativeAdvertisingNameEnabled,
this.forceScanningForNewAddressInLegacyDfu,
this.connectionTimeout,
this.dataObjectPreparationDelay,
this.alternativeAdvertisingName,
this.disableResume,
this.packetReceiptNotificationParameter,
});

Map<String, dynamic> toJson() => {
'alternativeAdvertisingNameEnabled': alternativeAdvertisingNameEnabled,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 6.0.0
homepage: https://github.com/juliansteenbakker/nordic_dfu

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.12.0 <4.0.0'
flutter: '>=1.10.0'

dependencies:
Expand Down

0 comments on commit f7865cd

Please sign in to comment.