add ktlint plugin to project and apply default code style (#2209)

* add ktlint plugin to project and apply default code style

* some manual adjustments, fix wildcard imports

* update CONTRIBUTING.md

* fix formatting
This commit is contained in:
Konrad Pozniak 2021-06-28 21:13:24 +02:00 committed by GitHub
commit 16ffcca748
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
227 changed files with 3933 additions and 3371 deletions

View file

@ -26,13 +26,13 @@ import kotlinx.parcelize.Parcelize
@Parcelize
data class Attachment(
val id: String,
val url: String,
@SerializedName("preview_url") val previewUrl: String?, // can be null for e.g. audio attachments
val meta: MetaData?,
val type: Type,
val description: String?,
val blurhash: String?
val id: String,
val url: String,
@SerializedName("preview_url") val previewUrl: String?, // can be null for e.g. audio attachments
val meta: MetaData?,
val type: Type,
val description: String?,
val blurhash: String?
) : Parcelable {
@JsonAdapter(MediaTypeDeserializer::class)
@ -66,9 +66,9 @@ data class Attachment(
* The meta data of an [Attachment].
*/
@Parcelize
data class MetaData (
val focus: Focus?,
val duration: Float?
data class MetaData(
val focus: Focus?,
val duration: Float?
) : Parcelable
/**
@ -78,8 +78,8 @@ data class Attachment(
* https://github.com/jonom/jquery-focuspoint#1-calculate-your-images-focus-point
*/
@Parcelize
data class Focus (
val x: Float,
val y: Float
data class Focus(
val x: Float,
val y: Float
) : Parcelable
}