summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-06-01 19:34:26 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-06-04 01:52:57 +0530
commit496f421f170f6d437cdef63dc4644bf6b423a547 (patch)
tree93e813c89b472c20a2959c80519a646817446816
parent5538306927861a711460a3b97ee0194be124c96d (diff)
fix: clear violations of `FullyQualifiedResource`
-rw-r--r--app/lint-baseline.xml11
-rw-r--r--app/src/main/java/app/passwordstore/injection/pwgen/DicewareModule.kt5
2 files changed, 2 insertions, 14 deletions
diff --git a/app/lint-baseline.xml b/app/lint-baseline.xml
index 36bccbca..c2f393ad 100644
--- a/app/lint-baseline.xml
+++ b/app/lint-baseline.xml
@@ -13,17 +13,6 @@
</issue>
<issue
- id="FullyQualifiedResource"
- message="Use an import alias instead"
- errorLine1=" app.passwordstore.passgen.diceware.R.raw.diceware_wordlist"
- errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
- <location
- file="src/main/java/app/passwordstore/injection/pwgen/DicewareModule.kt"
- line="50"
- column="7"/>
- </issue>
-
- <issue
id="InvalidPackage"
message="Invalid package reference in org.bouncycastle:bcpkix-jdk15to18; not included in Android: `javax.naming.directory`. Referenced from `org.bouncycastle.cert.dane.fetcher.JndiDANEFetcherFactory`.">
<location
diff --git a/app/src/main/java/app/passwordstore/injection/pwgen/DicewareModule.kt b/app/src/main/java/app/passwordstore/injection/pwgen/DicewareModule.kt
index 78bad768..d8057356 100644
--- a/app/src/main/java/app/passwordstore/injection/pwgen/DicewareModule.kt
+++ b/app/src/main/java/app/passwordstore/injection/pwgen/DicewareModule.kt
@@ -8,6 +8,7 @@ package app.passwordstore.injection.pwgen
import android.content.Context
import app.passwordstore.passgen.diceware.DicewarePassphraseGenerator
import app.passwordstore.passgen.diceware.Die
+import app.passwordstore.passgen.diceware.R as dicewareR
import app.passwordstore.passgen.diceware.RandomIntGenerator
import dagger.Module
import dagger.Provides
@@ -46,9 +47,7 @@ object DicewareModule {
@[Provides WordlistQualifier]
fun provideDefaultWordList(@ApplicationContext context: Context): InputStream {
- return context.resources.openRawResource(
- app.passwordstore.passgen.diceware.R.raw.diceware_wordlist
- )
+ return context.resources.openRawResource(dicewareR.raw.diceware_wordlist)
}
}