mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-08 17:29:02 +01:00
Ensure lint configuration is applied to all modules.
This commit is contained in:
committed by
Greyson Parrelli
parent
2c6524f6c0
commit
879e8f98bd
@@ -21,7 +21,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Lookup"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="HardcodedText" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/list"
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
tools:context=".MainActivity"
|
||||
tools:ignore="HardcodedText" >
|
||||
|
||||
<Button
|
||||
android:id="@+id/contact_list_button"
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
app:cardCornerRadius="5dp"
|
||||
app:cardElevation="5dp">
|
||||
app:cardElevation="5dp"
|
||||
tools:ignore="HardcodedText">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
tools:ignore="HardcodedText" >
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/buttonRow"
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
tools:context=".MainActivity"
|
||||
tools:ignore="HardcodedText" >
|
||||
|
||||
|
||||
<Button
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
tools:context=".MainActivity"
|
||||
tools:ignore="HardcodedText" >
|
||||
|
||||
<HorizontalScrollView
|
||||
android:id="@+id/buttons"
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
android:orientation="vertical"
|
||||
tools:ignore="HardcodedText" >
|
||||
|
||||
<Button
|
||||
android:id="@+id/camera_switch"
|
||||
|
||||
+21
-21
@@ -30,11 +30,11 @@ private class PreviewNewtorkController : NetworkController {
|
||||
mcc: String?,
|
||||
mnc: String?
|
||||
): NetworkController.RegistrationNetworkResult<NetworkController.SessionMetadata, NetworkController.CreateSessionError> {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun getSession(sessionId: String): NetworkController.RegistrationNetworkResult<NetworkController.SessionMetadata, NetworkController.GetSessionStatusError> {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun updateSession(
|
||||
@@ -42,7 +42,7 @@ private class PreviewNewtorkController : NetworkController {
|
||||
pushChallengeToken: String?,
|
||||
captchaToken: String?
|
||||
): NetworkController.RegistrationNetworkResult<NetworkController.SessionMetadata, NetworkController.UpdateSessionError> {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun requestVerificationCode(
|
||||
@@ -51,14 +51,14 @@ private class PreviewNewtorkController : NetworkController {
|
||||
androidSmsRetrieverSupported: Boolean,
|
||||
transport: NetworkController.VerificationCodeTransport
|
||||
): NetworkController.RegistrationNetworkResult<NetworkController.SessionMetadata, NetworkController.RequestVerificationCodeError> {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun submitVerificationCode(
|
||||
sessionId: String,
|
||||
verificationCode: String
|
||||
): NetworkController.RegistrationNetworkResult<NetworkController.SessionMetadata, NetworkController.SubmitVerificationCodeError> {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun registerAccount(
|
||||
@@ -72,74 +72,74 @@ private class PreviewNewtorkController : NetworkController {
|
||||
fcmToken: String?,
|
||||
skipDeviceTransfer: Boolean
|
||||
): NetworkController.RegistrationNetworkResult<NetworkController.RegisterAccountResponse, NetworkController.RegisterAccountError> {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun getFcmToken(): String? {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun awaitPushChallengeToken(): String? {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override fun getCaptchaUrl(): String {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun restoreMasterKeyFromSvr(
|
||||
svr2Credentials: NetworkController.SvrCredentials,
|
||||
pin: String
|
||||
): NetworkController.RegistrationNetworkResult<NetworkController.MasterKeyResponse, NetworkController.RestoreMasterKeyError> {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun setPinAndMasterKeyOnSvr(
|
||||
pin: String,
|
||||
masterKey: MasterKey
|
||||
): NetworkController.RegistrationNetworkResult<Unit, NetworkController.BackupMasterKeyError> {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun enableRegistrationLock(): NetworkController.RegistrationNetworkResult<Unit, NetworkController.SetRegistrationLockError> {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun disableRegistrationLock(): NetworkController.RegistrationNetworkResult<Unit, NetworkController.SetRegistrationLockError> {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun getSvrCredentials(): NetworkController.RegistrationNetworkResult<NetworkController.SvrCredentials, NetworkController.GetSvrCredentialsError> {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun setAccountAttributes(attributes: NetworkController.AccountAttributes): NetworkController.RegistrationNetworkResult<Unit, NetworkController.SetAccountAttributesError> {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
}
|
||||
|
||||
private class PreviewStorageController : StorageController {
|
||||
override suspend fun generateAndStoreKeyMaterial(): KeyMaterial {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun saveNewRegistrationData(newRegistrationData: NewRegistrationData) {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun getPreExistingRegistrationData(): PreExistingRegistrationData? {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun saveValidatedPinAndTemporaryMasterKey(pin: String, isAlphanumeric: Boolean, masterKey: MasterKey, registrationLockEnabled: Boolean) {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun saveNewlyCreatedPin(pin: String, isAlphanumeric: Boolean) {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override suspend fun clearAllData() {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ class SpinnerTestSqliteOpenHelper(context: Context) : SQLiteOpenHelper(context,
|
||||
}
|
||||
|
||||
override fun compileStatement(sql: String): SupportSQLiteStatement {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override fun beginTransaction() {
|
||||
@@ -96,11 +96,11 @@ class SpinnerTestSqliteOpenHelper(context: Context) : SQLiteOpenHelper(context,
|
||||
}
|
||||
|
||||
override fun query(query: SupportSQLiteQuery): Cursor {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override fun query(query: SupportSQLiteQuery, cancellationSignal: CancellationSignal?): Cursor {
|
||||
TODO("Not yet implemented")
|
||||
throw NotImplementedError()
|
||||
}
|
||||
|
||||
override fun insert(table: String, conflictAlgorithm: Int, values: ContentValues): Long {
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="8dp"
|
||||
tools:context=".MainActivity">
|
||||
tools:context=".MainActivity"
|
||||
tools:ignore="HardcodedText">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
Reference in New Issue
Block a user