-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
plugins { | ||
kotlin("jvm") | ||
kotlin("plugin.serialization") | ||
} | ||
|
||
kotlin { | ||
|
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package kotlinx.uuid.internal | ||
Check warning Code scanning / detekt Checks if top level class matches the filename Warning
File 'Parcelabler.kt' contains a single top level declaration and should be named 'UuidParceler.kt'
|
||
|
||
import android.os.Parcel | ||
import kotlinx.parcelize.Parceler | ||
|
||
public object UuidParceler : Parceler<kotlin.uuid.Uuid> { | ||
Check warning Code scanning / detekt If a source file contains only a single non-private top-level class or object, the file name should reflect the case-sensitive name plus the .kt extension. Warning
The file name 'Parcelabler' does not match the name of the single top-level declaration 'UuidParceler'.
|
||
override fun create(parcel: Parcel): kotlin.uuid.Uuid = kotlin.uuid.Uuid.fromLongs( | ||
parcel.readLong(), | ||
parcel.readLong(), | ||
) | ||
|
||
override fun kotlin.uuid.Uuid.write(parcel: Parcel, flags: Int) { | ||
toLongs { mostSignificantBits, leastSignificantBits -> | ||
parcel.writeLong(mostSignificantBits) | ||
parcel.writeLong(leastSignificantBits) | ||
} | ||
} | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.