diceware: convert to an Android library

This commit is contained in:
Harsh Shandilya 2021-12-10 15:14:38 +05:30
parent c5436b543d
commit 0f837b0033
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
4 changed files with 12 additions and 4 deletions

View file

@ -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)

View 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" />

View file

@ -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")
}
}
}