Skip to content

Commit e548cc3

Browse files
committed
chore: revert changes
1 parent 329505b commit e548cc3

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

packages/firebase_database/firebase_database/android/src/main/kotlin/io/flutter/plugins/firebase/database/TransactionHandler.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ class TransactionHandler @JvmOverloads constructor(
2525

2626
@NonNull
2727
override fun doTransaction(@NonNull currentData: MutableData): Transaction.Result {
28-
val snapshotMap = HashMap<String, Any?>().apply {
29-
put(Constants.KEY, currentData.key ?: "")
30-
put(Constants.VALUE, currentData.value)
31-
}
28+
val snapshotMap = mapOf(
29+
Constants.KEY to (currentData.key ?: ""),
30+
Constants.VALUE to currentData.value
31+
)
3232

33-
val transactionArgs = HashMap<String, Any?>().apply {
34-
put(Constants.SNAPSHOT, snapshotMap)
35-
put(Constants.TRANSACTION_KEY, transactionKey)
36-
}
33+
val transactionArgs = mapOf(
34+
Constants.SNAPSHOT to snapshotMap,
35+
Constants.TRANSACTION_KEY to transactionKey
36+
)
3737

3838
return try {
3939
val executor = TransactionExecutor(channel)

packages/firebase_database/firebase_database/example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ android {
4545
applicationId = "io.flutter.plugins.firebase.database.example"
4646
// You can update the following values to match your application needs.
4747
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
48-
minSdk = 23
48+
minSdkVersion flutter.minSdkVersion
4949
targetSdk = flutter.targetSdkVersion
5050
versionCode = flutterVersionCode.toInteger()
5151
versionName = flutterVersionName

0 commit comments

Comments
 (0)