Skip to content

Commit effaff0

Browse files
authored
Merge pull request #215 from DavidProdinger/master
fix: make compatible with Kotlin 2.1.0
2 parents 5563c9f + 762d4c6 commit effaff0

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 3.5.1
2+
3+
* Make compatible for Kotlin 2.1.0
4+
15
# 3.5.0
26

37
* Upgrade Flutter.

android/src/main/kotlin/io/flutter/plugins/nfcmanager/Translator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fun getTagMap(arg: Tag): Map<String, Any?> {
4040

4141
arg.techList.forEach { tech ->
4242
// normalize tech string (e.g. "android.nfc.tech.NfcA" => "nfca"
43-
data[tech.toLowerCase(Locale.ROOT).split(".").last()] = when (tech) {
43+
data[tech.lowercase(Locale.ROOT).split(".").last()] = when (tech) {
4444
NfcA::class.java.name -> NfcA.get(arg).let {
4545
mapOf(
4646
"identifier" to arg.id,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nfc_manager
22
description: Flutter plugin for accessing the NFC features on Android and iOS.
3-
version: 3.5.0
3+
version: 3.5.1
44
homepage: https://github.com/okadan/flutter-nfc-manager
55

66
environment:

0 commit comments

Comments
 (0)