Merge pull request #1745 from vector-im/feature/bma/lint

Feature/bma/lint
This commit is contained in:
Benoit Marty 2023-11-06 18:50:22 +01:00 committed by GitHub
commit 23c3e30876
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View file

@ -15,6 +15,7 @@
*/
plugins {
id("java-library")
id("com.android.lint")
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.anvil)
alias(libs.plugins.ksp)

View file

@ -16,11 +16,13 @@
package io.element.android.features.location.api
import android.annotation.SuppressLint
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
private const val GEO_URI_REGEX = """geo:(?<latitude>-?\d+(?:\.\d+)?),(?<longitude>-?\d+(?:\.\d+)?)(?:;u=(?<uncertainty>\d+(?:\.\d+)?))?"""
@SuppressLint("NewApi")
@Parcelize
data class Location(
val lat: Double,

View file

@ -49,7 +49,7 @@ signing.element.nightly.keyPassword=Secret
# Customise the Lint version to use a more recent version than the one bundled with AGP
# https://googlesamples.github.io/android-custom-lint-rules/usage/newer-lint.md.html
android.experimental.lint.version=8.2.0-alpha02
android.experimental.lint.version=8.3.0-alpha11
# Enable test fixture for all modules by default
android.experimental.enableTestFixtures=true

View file

@ -61,7 +61,6 @@ junit = "4.13.2"
androidx-test-ext-junit = "1.1.5"
espresso-core = "3.5.1"
appcompat = "1.6.1"
material = "1.9.0"
[libraries]
# Project
@ -196,7 +195,6 @@ junit = { group = "junit", name = "junit", version.ref = "junit" }
androidx-test-ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "androidx-test-ext-junit" }
espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espresso-core" }
appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
[bundles]