Skip to content

Commit

Permalink
Update ktlint-gradle.
Browse files Browse the repository at this point in the history
  • Loading branch information
rashad-signal authored and cody-signal committed Jan 12, 2022
1 parent 856bd54 commit 89b918f
Show file tree
Hide file tree
Showing 7 changed files with 158 additions and 61 deletions.
5 changes: 5 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ protobuf {
}
}

ktlint {
// Use a newer version to resolve https://github.com/JLLeitschuh/ktlint-gradle/issues/507
version = "0.43.2"
}

def canonicalVersionCode = 985
def canonicalVersionName = "5.29.1"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import java.util.concurrent.TimeUnit
class LocalMetricsDatabase private constructor(
application: Application,
databaseSecret: DatabaseSecret
) : SQLiteOpenHelper(
) :
SQLiteOpenHelper(
application,
DATABASE_NAME,
databaseSecret.asString(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ import java.util.concurrent.TimeUnit
class LogDatabase private constructor(
application: Application,
databaseSecret: DatabaseSecret
) : SQLiteOpenHelper(
) :
SQLiteOpenHelper(
application,
DATABASE_NAME,
databaseSecret.asString(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import com.google.android.exoplayer2.audio.AudioAttributes
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Mockito
import org.mockito.Mockito.`when`
import org.mockito.Mockito.any
import org.mockito.Mockito.anyBoolean
import org.mockito.Mockito.mock
import org.mockito.Mockito.verify
import org.mockito.Mockito.`when`
import org.robolectric.RobolectricTestRunner
import org.robolectric.annotation.Config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import android.content.Context
import junit.framework.Assert.assertEquals
import org.junit.Before
import org.junit.Test
import org.mockito.Mockito.`when`
import org.mockito.Mockito.mock
import org.mockito.Mockito.times
import org.mockito.Mockito.verify
import org.mockito.Mockito.`when`
import org.thoughtcrime.securesms.database.IdentityDatabase
import org.thoughtcrime.securesms.database.model.IdentityStoreRecord
import org.whispersystems.libsignal.IdentityKey
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ buildscript {
classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.17'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.0.0"
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.2.1"
classpath 'app.cash.exhaustive:exhaustive-gradle:0.1.1'
}
}
Expand Down
202 changes: 146 additions & 56 deletions gradle/verification-metadata.xml

Large diffs are not rendered by default.

0 comments on commit 89b918f

Please sign in to comment.