-
Notifications
You must be signed in to change notification settings - Fork 1.9k
ci: bring :app and :e2eTest under the Android Lint gate #2500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,19 @@ | ||
| <resources> | ||
| <resources xmlns:tools="http://schemas.android.com/tools"> | ||
| <string name="app_name">FirebaseUI Demo</string> | ||
|
|
||
| <string name="firebase_web_host" translatable="false">CHANGE-HERE</string> | ||
|
|
||
| <!-- Facebook SDK Configuration --> | ||
| <string name="facebook_application_id" translatable="false">APP-ID</string> | ||
| <string name="facebook_login_protocol_scheme" translatable="false">fbAPP-ID</string> | ||
| <string name="facebook_client_token" translatable="false">CHANGE-HERE</string> | ||
| </resources> | ||
| <!-- One row of the paging demos: %1$s is the player name, %2$d their score. --> | ||
| <string name="demo_score_row">%1$s — score: %2$d</string> | ||
|
|
||
| <!-- | ||
| The Facebook SDK reads these through the auth module's manifest and provider | ||
| validation, so lint cannot see them being used from this module. | ||
| --> | ||
| <string name="facebook_application_id" translatable="false" | ||
| tools:ignore="UnusedResources">APP-ID</string> | ||
| <string name="facebook_login_protocol_scheme" translatable="false" | ||
| tools:ignore="UnusedResources">fbAPP-ID</string> | ||
| <string name="facebook_client_token" translatable="false" | ||
| tools:ignore="UnusedResources">CHANGE-HERE</string> | ||
| </resources> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,20 @@ android { | |
| minSdk = Config.SdkVersions.min | ||
| } | ||
|
|
||
| lint { | ||
| // Common lint options across all modules | ||
| disable += mutableSetOf( | ||
| "IconExpectedSize", | ||
| "InvalidPackage", // Firestore uses GRPC which makes lint mad | ||
| "NewerVersionAvailable", "GradleDependency", // For reproducible builds | ||
| "SelectableText", "SyntheticAccessor" // We almost never care about this | ||
| ) | ||
|
Comment on lines
+17
to
+24
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The common lint options are duplicated across multiple modules (e.g., |
||
|
|
||
| checkAllWarnings = true | ||
| warningsAsErrors = true | ||
| abortOnError = true | ||
| } | ||
|
|
||
| compileOptions { | ||
| sourceCompatibility = JavaVersion.VERSION_17 | ||
| targetCompatibility = JavaVersion.VERSION_17 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The common lint options are duplicated across multiple modules (e.g.,
:appand:e2eTest). This violates the DRY (Don't Repeat Yourself) principle and increases maintenance overhead when adding or removing global lint rules. Consider centralizing these common lint options in the rootbuild.gradle.ktsfile usingsubprojectsor by creating a custom Gradle convention plugin.