fix: clear violations of FullyQualifiedResource

This commit is contained in:
Harsh Shandilya 2023-06-01 19:34:26 +05:30
parent 5538306927
commit 496f421f17
No known key found for this signature in database
2 changed files with 2 additions and 14 deletions

View file

@ -12,17 +12,6 @@
column="19"/> column="19"/>
</issue> </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 <issue
id="InvalidPackage" 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`."> message="Invalid package reference in org.bouncycastle:bcpkix-jdk15to18; not included in Android: `javax.naming.directory`. Referenced from `org.bouncycastle.cert.dane.fetcher.JndiDANEFetcherFactory`.">

View file

@ -8,6 +8,7 @@ package app.passwordstore.injection.pwgen
import android.content.Context import android.content.Context
import app.passwordstore.passgen.diceware.DicewarePassphraseGenerator import app.passwordstore.passgen.diceware.DicewarePassphraseGenerator
import app.passwordstore.passgen.diceware.Die import app.passwordstore.passgen.diceware.Die
import app.passwordstore.passgen.diceware.R as dicewareR
import app.passwordstore.passgen.diceware.RandomIntGenerator import app.passwordstore.passgen.diceware.RandomIntGenerator
import dagger.Module import dagger.Module
import dagger.Provides import dagger.Provides
@ -46,9 +47,7 @@ object DicewareModule {
@[Provides WordlistQualifier] @[Provides WordlistQualifier]
fun provideDefaultWordList(@ApplicationContext context: Context): InputStream { fun provideDefaultWordList(@ApplicationContext context: Context): InputStream {
return context.resources.openRawResource( return context.resources.openRawResource(dicewareR.raw.diceware_wordlist)
app.passwordstore.passgen.diceware.R.raw.diceware_wordlist
)
} }
} }