diceware: convert to an Android library
This commit is contained in:
parent
c5436b543d
commit
0f837b0033
4 changed files with 12 additions and 4 deletions
|
@ -4,10 +4,13 @@
|
|||
*/
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
id("com.github.android-password-store.android-library")
|
||||
id("com.github.android-password-store.kotlin-android")
|
||||
id("com.github.android-password-store.kotlin-library")
|
||||
}
|
||||
|
||||
android { sourceSets { getByName("test") { resources.srcDir("src/main/res/raw") } } }
|
||||
|
||||
dependencies {
|
||||
implementation(libs.dagger.hilt.core)
|
||||
testImplementation(libs.bundles.testDependencies)
|
||||
|
|
6
passgen/diceware/src/main/AndroidManifest.xml
Normal file
6
passgen/diceware/src/main/AndroidManifest.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
|
||||
~ SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
|
||||
-->
|
||||
|
||||
<manifest package="dev.msfjarvis.aps.passgen.diceware" />
|
|
@ -30,9 +30,8 @@ class WordListParserTest {
|
|||
|
||||
companion object {
|
||||
fun getDefaultWordList(): InputStream {
|
||||
return requireNotNull(
|
||||
this::class.java.classLoader.getResourceAsStream("diceware_wordlist.txt")
|
||||
)
|
||||
return requireNotNull(this::class.java.classLoader)
|
||||
.getResourceAsStream("diceware_wordlist.txt")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue