mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-27 14:40:22 +00:00
Upgrade ktlint and add twitter compose rules.
This commit is contained in:
committed by
Greyson Parrelli
parent
52e9b31554
commit
605289aca4
@@ -31,7 +31,7 @@ android {
|
||||
|
||||
ktlint {
|
||||
// Use a newer version to resolve https://github.com/JLLeitschuh/ktlint-gradle/issues/507
|
||||
version = "0.43.2"
|
||||
version = "0.47.1"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -31,7 +31,7 @@ android {
|
||||
|
||||
ktlint {
|
||||
// Use a newer version to resolve https://github.com/JLLeitschuh/ktlint-gradle/issues/507
|
||||
version = "0.43.2"
|
||||
version = "0.47.1"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -588,7 +588,7 @@ object SystemContactsRepository {
|
||||
ContactsContract.PhoneLookup.NUMBER,
|
||||
ContactsContract.PhoneLookup._ID,
|
||||
ContactsContract.PhoneLookup.DISPLAY_NAME,
|
||||
ContactsContract.PhoneLookup.TYPE,
|
||||
ContactsContract.PhoneLookup.TYPE
|
||||
)
|
||||
|
||||
context.contentResolver.query(uri, projection, null, null, null)?.use { contactCursor ->
|
||||
@@ -719,7 +719,7 @@ object SystemContactsRepository {
|
||||
photoUri = cursor.requireString(ContactsContract.CommonDataKinds.Phone.PHOTO_URI),
|
||||
number = e164Formatter(displayNumber),
|
||||
type = cursor.requireInt(ContactsContract.CommonDataKinds.Phone.TYPE),
|
||||
label = cursor.requireString(ContactsContract.CommonDataKinds.Phone.LABEL),
|
||||
label = cursor.requireString(ContactsContract.CommonDataKinds.Phone.LABEL)
|
||||
)
|
||||
} else {
|
||||
Log.w(TAG, "Skipping phone entry with invalid number!")
|
||||
|
||||
Reference in New Issue
Block a user