mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-26 15:18:19 +08:00
Add comment to run sonar analysis and fix compilation issue
This commit is contained in:
parent
39070820be
commit
e9eada77f9
24
build.gradle
24
build.gradle
@ -42,6 +42,10 @@ task clean(type: Delete) {
|
|||||||
|
|
||||||
apply plugin: 'org.sonarqube'
|
apply plugin: 'org.sonarqube'
|
||||||
|
|
||||||
|
// To run a sonar analysis:
|
||||||
|
// Run './gradlew sonarqube -Dsonar.login=<REPLACE_WITH_SONAR_KEY>'
|
||||||
|
// The SONAR_KEY is stored in passbolt
|
||||||
|
|
||||||
sonarqube {
|
sonarqube {
|
||||||
properties {
|
properties {
|
||||||
property "sonar.projectName", "RiotX-Android"
|
property "sonar.projectName", "RiotX-Android"
|
||||||
@ -67,3 +71,23 @@ project(":vector") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//project(":matrix-sdk-android") {
|
||||||
|
// sonarqube {
|
||||||
|
// properties {
|
||||||
|
// property "sonar.sources", project(":matrix-sdk-android").android.sourceSets.main.java.srcDirs
|
||||||
|
// // exclude source code from analyses separated by a colon (:)
|
||||||
|
// // property "sonar.exclusions", "**/*.*"
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
//
|
||||||
|
//project(":matrix-sdk-android-rx") {
|
||||||
|
// sonarqube {
|
||||||
|
// properties {
|
||||||
|
// property "sonar.sources", project(":matrix-sdk-android-rx").android.sourceSets.main.java.srcDirs
|
||||||
|
// // exclude source code from analyses separated by a colon (:)
|
||||||
|
// // property "sonar.exclusions", "**/*.*"
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
@ -19,25 +19,18 @@ package im.vector.matrix.android.auth
|
|||||||
import androidx.test.annotation.UiThreadTest
|
import androidx.test.annotation.UiThreadTest
|
||||||
import androidx.test.rule.GrantPermissionRule
|
import androidx.test.rule.GrantPermissionRule
|
||||||
import androidx.test.runner.AndroidJUnit4
|
import androidx.test.runner.AndroidJUnit4
|
||||||
import com.zhuinden.monarchy.Monarchy
|
|
||||||
import im.vector.matrix.android.InstrumentedTest
|
import im.vector.matrix.android.InstrumentedTest
|
||||||
import im.vector.matrix.android.OkReplayRuleChainNoActivity
|
import im.vector.matrix.android.OkReplayRuleChainNoActivity
|
||||||
import im.vector.matrix.android.api.auth.Authenticator
|
import im.vector.matrix.android.api.auth.Authenticator
|
||||||
import im.vector.matrix.android.internal.auth.AuthModule
|
|
||||||
import im.vector.matrix.android.internal.di.MatrixModule
|
|
||||||
import im.vector.matrix.android.internal.di.NetworkModule
|
|
||||||
import okreplay.*
|
import okreplay.*
|
||||||
import org.junit.ClassRule
|
import org.junit.ClassRule
|
||||||
import org.junit.Rule
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.runner.RunWith
|
import org.junit.runner.RunWith
|
||||||
import org.koin.standalone.StandAloneContext.loadKoinModules
|
|
||||||
import org.koin.standalone.inject
|
|
||||||
import org.koin.test.KoinTest
|
|
||||||
|
|
||||||
|
|
||||||
@RunWith(AndroidJUnit4::class)
|
@RunWith(AndroidJUnit4::class)
|
||||||
internal class AuthenticatorTest : InstrumentedTest, KoinTest {
|
internal class AuthenticatorTest : InstrumentedTest {
|
||||||
|
|
||||||
lateinit var authenticator: Authenticator
|
lateinit var authenticator: Authenticator
|
||||||
lateinit var okReplayInterceptor: OkReplayInterceptor
|
lateinit var okReplayInterceptor: OkReplayInterceptor
|
||||||
|
Loading…
Reference in New Issue
Block a user