Skip to content

Commit 98802be

Browse files
committed
Fix Kotlin syntax in Android example
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
1 parent dbe64ab commit 98802be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
/build/
3232

3333
# Web related
34-
lib/generated_plugin_registrant.dart
3534

3635
# Exceptions to above rules.
3736
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

example/android/app/src/main/kotlin/im/nfc/flutter_nfc_kit/example/MainActivity.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class MainActivity : FlutterActivity() {
2525
}
2626

2727
override fun onNewIntent(intent: Intent) {
28-
intent.getParcelableExtra(NfcAdapter.EXTRA_TAG)?.apply(FlutterNfcKitPlugin::handleTag)
28+
val tag: Tag? = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG)
29+
tag?.apply(FlutterNfcKitPlugin::handleTag)
2930
}
3031
}

0 commit comments

Comments
 (0)