Codestyle churn (#1283)
* editorconfig: delete Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * idea: adjust codestyle Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * all: reformat with simplified import ordering rules Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
3a2cfd22e6
commit
33d3683ae2
53 changed files with 155 additions and 186 deletions
|
@ -1,23 +0,0 @@
|
||||||
# https://editorconfig.org
|
|
||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 4
|
|
||||||
|
|
||||||
end_of_line = lf
|
|
||||||
charset = utf-8
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
insert_final_newline = true
|
|
||||||
|
|
||||||
[*.{java,kt,kts,xml}]
|
|
||||||
indent_size = 4
|
|
||||||
ij_continuation_indent_size = 4
|
|
||||||
|
|
||||||
[*.{kt,kts}]
|
|
||||||
kotlin_imports_layout=ascii
|
|
||||||
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
|
|
||||||
ij_kotlin_field_annotation_wrap = normal
|
|
||||||
|
|
||||||
[*.md]
|
|
||||||
trim_trailing_whitespace = false
|
|
|
@ -20,17 +20,6 @@
|
||||||
<option name="PACKAGES_IMPORT_LAYOUT">
|
<option name="PACKAGES_IMPORT_LAYOUT">
|
||||||
<value>
|
<value>
|
||||||
<package name="" alias="false" withSubpackages="true" />
|
<package name="" alias="false" withSubpackages="true" />
|
||||||
<package name="android" alias="false" withSubpackages="true" />
|
|
||||||
<package name="androidx" alias="false" withSubpackages="true" />
|
|
||||||
<package name="com" alias="false" withSubpackages="true" />
|
|
||||||
<package name="java" alias="false" withSubpackages="true" />
|
|
||||||
<package name="javax" alias="false" withSubpackages="true" />
|
|
||||||
<package name="kotlin" alias="false" withSubpackages="true" />
|
|
||||||
<package name="kotlinx" alias="false" withSubpackages="true" />
|
|
||||||
<package name="me" alias="false" withSubpackages="true" />
|
|
||||||
<package name="mozilla" alias="false" withSubpackages="true" />
|
|
||||||
<package name="net" alias="false" withSubpackages="true" />
|
|
||||||
<package name="org" alias="false" withSubpackages="true" />
|
|
||||||
<package name="" alias="true" withSubpackages="true" />
|
<package name="" alias="true" withSubpackages="true" />
|
||||||
</value>
|
</value>
|
||||||
</option>
|
</option>
|
||||||
|
@ -170,6 +159,9 @@
|
||||||
<codeStyleSettings language="kotlin">
|
<codeStyleSettings language="kotlin">
|
||||||
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
|
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
|
||||||
<option name="RIGHT_MARGIN" value="100" />
|
<option name="RIGHT_MARGIN" value="100" />
|
||||||
|
<option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="0" />
|
||||||
|
<option name="KEEP_BLANK_LINES_IN_CODE" value="0" />
|
||||||
|
<option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="0" />
|
||||||
<option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1" />
|
<option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1" />
|
||||||
<option name="CALL_PARAMETERS_WRAP" value="0" />
|
<option name="CALL_PARAMETERS_WRAP" value="0" />
|
||||||
<option name="CALL_PARAMETERS_LPAREN_ON_NEXT_LINE" value="false" />
|
<option name="CALL_PARAMETERS_LPAREN_ON_NEXT_LINE" value="false" />
|
||||||
|
|
|
@ -12,11 +12,11 @@ import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_NO
|
||||||
import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_YES
|
import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_YES
|
||||||
import com.github.ajalt.timberkt.Timber.DebugTree
|
import com.github.ajalt.timberkt.Timber.DebugTree
|
||||||
import com.github.ajalt.timberkt.Timber.plant
|
import com.github.ajalt.timberkt.Timber.plant
|
||||||
import dev.msfjarvis.aps.util.git.sshj.setUpBouncyCastleForSshj
|
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import dev.msfjarvis.aps.util.proxy.ProxyUtils
|
|
||||||
import dev.msfjarvis.aps.util.extensions.getString
|
import dev.msfjarvis.aps.util.extensions.getString
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
|
import dev.msfjarvis.aps.util.git.sshj.setUpBouncyCastleForSshj
|
||||||
|
import dev.msfjarvis.aps.util.proxy.ProxyUtils
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import dev.msfjarvis.aps.util.settings.runMigrations
|
import dev.msfjarvis.aps.util.settings.runMigrations
|
||||||
|
|
||||||
@Suppress("Unused")
|
@Suppress("Unused")
|
||||||
|
|
|
@ -12,10 +12,10 @@ import com.github.michaelbull.result.onFailure
|
||||||
import com.github.michaelbull.result.runCatching
|
import com.github.michaelbull.result.runCatching
|
||||||
import dev.msfjarvis.aps.Application
|
import dev.msfjarvis.aps.Application
|
||||||
import dev.msfjarvis.aps.data.password.PasswordItem
|
import dev.msfjarvis.aps.data.password.PasswordItem
|
||||||
import dev.msfjarvis.aps.util.settings.PasswordSortOrder
|
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import dev.msfjarvis.aps.util.extensions.getString
|
import dev.msfjarvis.aps.util.extensions.getString
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
|
import dev.msfjarvis.aps.util.settings.PasswordSortOrder
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.io.FileFilter
|
import java.io.FileFilter
|
||||||
import java.nio.file.Files
|
import java.nio.file.Files
|
||||||
|
|
|
@ -18,16 +18,16 @@ import androidx.annotation.RequiresApi
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import com.github.ajalt.timberkt.d
|
import com.github.ajalt.timberkt.d
|
||||||
import com.github.ajalt.timberkt.e
|
import com.github.ajalt.timberkt.e
|
||||||
|
import com.github.androidpasswordstore.autofillparser.AutofillAction
|
||||||
|
import com.github.androidpasswordstore.autofillparser.Credentials
|
||||||
import com.github.michaelbull.result.getOrElse
|
import com.github.michaelbull.result.getOrElse
|
||||||
import com.github.michaelbull.result.onFailure
|
import com.github.michaelbull.result.onFailure
|
||||||
import com.github.michaelbull.result.onSuccess
|
import com.github.michaelbull.result.onSuccess
|
||||||
import com.github.michaelbull.result.runCatching
|
import com.github.michaelbull.result.runCatching
|
||||||
import com.github.androidpasswordstore.autofillparser.AutofillAction
|
import dev.msfjarvis.aps.data.password.PasswordEntry
|
||||||
import com.github.androidpasswordstore.autofillparser.Credentials
|
|
||||||
import dev.msfjarvis.aps.util.autofill.AutofillPreferences
|
import dev.msfjarvis.aps.util.autofill.AutofillPreferences
|
||||||
import dev.msfjarvis.aps.util.autofill.AutofillResponseBuilder
|
import dev.msfjarvis.aps.util.autofill.AutofillResponseBuilder
|
||||||
import dev.msfjarvis.aps.util.autofill.DirectoryStructure
|
import dev.msfjarvis.aps.util.autofill.DirectoryStructure
|
||||||
import dev.msfjarvis.aps.data.password.PasswordEntry
|
|
||||||
import dev.msfjarvis.aps.util.extensions.OPENPGP_PROVIDER
|
import dev.msfjarvis.aps.util.extensions.OPENPGP_PROVIDER
|
||||||
import java.io.ByteArrayOutputStream
|
import java.io.ByteArrayOutputStream
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
|
@ -26,11 +26,11 @@ import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import com.github.ajalt.timberkt.e
|
import com.github.ajalt.timberkt.e
|
||||||
import com.github.androidpasswordstore.autofillparser.FormOrigin
|
import com.github.androidpasswordstore.autofillparser.FormOrigin
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
|
import dev.msfjarvis.aps.data.password.PasswordItem
|
||||||
|
import dev.msfjarvis.aps.databinding.ActivityOreoAutofillFilterBinding
|
||||||
import dev.msfjarvis.aps.util.autofill.AutofillMatcher
|
import dev.msfjarvis.aps.util.autofill.AutofillMatcher
|
||||||
import dev.msfjarvis.aps.util.autofill.AutofillPreferences
|
import dev.msfjarvis.aps.util.autofill.AutofillPreferences
|
||||||
import dev.msfjarvis.aps.util.autofill.DirectoryStructure
|
import dev.msfjarvis.aps.util.autofill.DirectoryStructure
|
||||||
import dev.msfjarvis.aps.databinding.ActivityOreoAutofillFilterBinding
|
|
||||||
import dev.msfjarvis.aps.data.password.PasswordItem
|
|
||||||
import dev.msfjarvis.aps.util.extensions.viewBinding
|
import dev.msfjarvis.aps.util.extensions.viewBinding
|
||||||
import dev.msfjarvis.aps.util.viewmodel.FilterMode
|
import dev.msfjarvis.aps.util.viewmodel.FilterMode
|
||||||
import dev.msfjarvis.aps.util.viewmodel.ListMode
|
import dev.msfjarvis.aps.util.viewmodel.ListMode
|
||||||
|
|
|
@ -23,9 +23,9 @@ import com.github.androidpasswordstore.autofillparser.computeCertificatesHash
|
||||||
import com.github.michaelbull.result.onFailure
|
import com.github.michaelbull.result.onFailure
|
||||||
import com.github.michaelbull.result.runCatching
|
import com.github.michaelbull.result.runCatching
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
|
import dev.msfjarvis.aps.databinding.ActivityOreoAutofillPublisherChangedBinding
|
||||||
import dev.msfjarvis.aps.util.autofill.AutofillMatcher
|
import dev.msfjarvis.aps.util.autofill.AutofillMatcher
|
||||||
import dev.msfjarvis.aps.util.autofill.AutofillPublisherChangedException
|
import dev.msfjarvis.aps.util.autofill.AutofillPublisherChangedException
|
||||||
import dev.msfjarvis.aps.databinding.ActivityOreoAutofillPublisherChangedBinding
|
|
||||||
import dev.msfjarvis.aps.util.extensions.viewBinding
|
import dev.msfjarvis.aps.util.extensions.viewBinding
|
||||||
|
|
||||||
@TargetApi(Build.VERSION_CODES.O)
|
@TargetApi(Build.VERSION_CODES.O)
|
||||||
|
|
|
@ -19,11 +19,11 @@ import com.github.ajalt.timberkt.e
|
||||||
import com.github.androidpasswordstore.autofillparser.AutofillAction
|
import com.github.androidpasswordstore.autofillparser.AutofillAction
|
||||||
import com.github.androidpasswordstore.autofillparser.Credentials
|
import com.github.androidpasswordstore.autofillparser.Credentials
|
||||||
import com.github.androidpasswordstore.autofillparser.FormOrigin
|
import com.github.androidpasswordstore.autofillparser.FormOrigin
|
||||||
|
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
||||||
|
import dev.msfjarvis.aps.ui.crypto.PasswordCreationActivity
|
||||||
import dev.msfjarvis.aps.util.autofill.AutofillMatcher
|
import dev.msfjarvis.aps.util.autofill.AutofillMatcher
|
||||||
import dev.msfjarvis.aps.util.autofill.AutofillPreferences
|
import dev.msfjarvis.aps.util.autofill.AutofillPreferences
|
||||||
import dev.msfjarvis.aps.util.autofill.AutofillResponseBuilder
|
import dev.msfjarvis.aps.util.autofill.AutofillResponseBuilder
|
||||||
import dev.msfjarvis.aps.ui.crypto.PasswordCreationActivity
|
|
||||||
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
@RequiresApi(Build.VERSION_CODES.O)
|
@RequiresApi(Build.VERSION_CODES.O)
|
||||||
|
|
|
@ -25,14 +25,14 @@ import com.github.michaelbull.result.getOr
|
||||||
import com.github.michaelbull.result.runCatching
|
import com.github.michaelbull.result.runCatching
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import com.google.android.material.snackbar.Snackbar
|
import com.google.android.material.snackbar.Snackbar
|
||||||
import dev.msfjarvis.aps.util.services.ClipboardService
|
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.util.extensions.OPENPGP_PROVIDER
|
import dev.msfjarvis.aps.util.extensions.OPENPGP_PROVIDER
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import dev.msfjarvis.aps.util.extensions.clipboard
|
import dev.msfjarvis.aps.util.extensions.clipboard
|
||||||
import dev.msfjarvis.aps.util.extensions.getString
|
import dev.msfjarvis.aps.util.extensions.getString
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
import dev.msfjarvis.aps.util.extensions.snackbar
|
import dev.msfjarvis.aps.util.extensions.snackbar
|
||||||
|
import dev.msfjarvis.aps.util.services.ClipboardService
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import me.msfjarvis.openpgpktx.util.OpenPgpApi
|
import me.msfjarvis.openpgpktx.util.OpenPgpApi
|
||||||
import me.msfjarvis.openpgpktx.util.OpenPgpServiceConnection
|
import me.msfjarvis.openpgpktx.util.OpenPgpServiceConnection
|
||||||
|
|
|
@ -19,10 +19,10 @@ import com.github.ajalt.timberkt.e
|
||||||
import com.github.michaelbull.result.onFailure
|
import com.github.michaelbull.result.onFailure
|
||||||
import com.github.michaelbull.result.runCatching
|
import com.github.michaelbull.result.runCatching
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.databinding.DecryptLayoutBinding
|
|
||||||
import dev.msfjarvis.aps.data.password.PasswordEntry
|
import dev.msfjarvis.aps.data.password.PasswordEntry
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
import dev.msfjarvis.aps.databinding.DecryptLayoutBinding
|
||||||
import dev.msfjarvis.aps.util.extensions.viewBinding
|
import dev.msfjarvis.aps.util.extensions.viewBinding
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import java.io.ByteArrayOutputStream
|
import java.io.ByteArrayOutputStream
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import kotlin.time.ExperimentalTime
|
import kotlin.time.ExperimentalTime
|
||||||
|
|
|
@ -28,19 +28,19 @@ import com.google.zxing.integration.android.IntentIntegrator
|
||||||
import com.google.zxing.integration.android.IntentIntegrator.QR_CODE
|
import com.google.zxing.integration.android.IntentIntegrator.QR_CODE
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.data.password.PasswordEntry
|
import dev.msfjarvis.aps.data.password.PasswordEntry
|
||||||
import dev.msfjarvis.aps.util.autofill.AutofillPreferences
|
|
||||||
import dev.msfjarvis.aps.util.autofill.DirectoryStructure
|
|
||||||
import dev.msfjarvis.aps.ui.dialogs.PasswordGeneratorDialogFragment
|
|
||||||
import dev.msfjarvis.aps.ui.dialogs.XkPasswordGeneratorDialogFragment
|
|
||||||
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
||||||
import dev.msfjarvis.aps.databinding.PasswordCreationActivityBinding
|
import dev.msfjarvis.aps.databinding.PasswordCreationActivityBinding
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
import dev.msfjarvis.aps.ui.dialogs.PasswordGeneratorDialogFragment
|
||||||
|
import dev.msfjarvis.aps.ui.dialogs.XkPasswordGeneratorDialogFragment
|
||||||
|
import dev.msfjarvis.aps.util.autofill.AutofillPreferences
|
||||||
|
import dev.msfjarvis.aps.util.autofill.DirectoryStructure
|
||||||
import dev.msfjarvis.aps.util.extensions.base64
|
import dev.msfjarvis.aps.util.extensions.base64
|
||||||
import dev.msfjarvis.aps.util.extensions.commitChange
|
import dev.msfjarvis.aps.util.extensions.commitChange
|
||||||
import dev.msfjarvis.aps.util.extensions.getString
|
import dev.msfjarvis.aps.util.extensions.getString
|
||||||
import dev.msfjarvis.aps.util.extensions.isInsideRepository
|
import dev.msfjarvis.aps.util.extensions.isInsideRepository
|
||||||
import dev.msfjarvis.aps.util.extensions.snackbar
|
import dev.msfjarvis.aps.util.extensions.snackbar
|
||||||
import dev.msfjarvis.aps.util.extensions.viewBinding
|
import dev.msfjarvis.aps.util.extensions.viewBinding
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import java.io.ByteArrayInputStream
|
import java.io.ByteArrayInputStream
|
||||||
import java.io.ByteArrayOutputStream
|
import java.io.ByteArrayOutputStream
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
|
@ -20,6 +20,7 @@ import com.google.android.material.bottomsheet.BottomSheetDialog
|
||||||
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
|
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.databinding.BasicBottomSheetBinding
|
import dev.msfjarvis.aps.databinding.BasicBottomSheetBinding
|
||||||
|
import dev.msfjarvis.aps.ui.dialogs.BasicBottomSheet.Builder
|
||||||
import dev.msfjarvis.aps.util.extensions.resolveAttribute
|
import dev.msfjarvis.aps.util.extensions.resolveAttribute
|
||||||
import dev.msfjarvis.aps.util.extensions.viewBinding
|
import dev.msfjarvis.aps.util.extensions.viewBinding
|
||||||
|
|
||||||
|
|
|
@ -17,11 +17,11 @@ import com.google.android.material.checkbox.MaterialCheckBox
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import com.google.android.material.textfield.TextInputEditText
|
import com.google.android.material.textfield.TextInputEditText
|
||||||
import com.google.android.material.textfield.TextInputLayout
|
import com.google.android.material.textfield.TextInputLayout
|
||||||
import dev.msfjarvis.aps.ui.passwords.PasswordStore
|
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
|
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
||||||
import dev.msfjarvis.aps.ui.crypto.BasePgpActivity
|
import dev.msfjarvis.aps.ui.crypto.BasePgpActivity
|
||||||
import dev.msfjarvis.aps.ui.crypto.GetKeyIdsActivity
|
import dev.msfjarvis.aps.ui.crypto.GetKeyIdsActivity
|
||||||
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
import dev.msfjarvis.aps.ui.passwords.PasswordStore
|
||||||
import dev.msfjarvis.aps.util.extensions.commitChange
|
import dev.msfjarvis.aps.util.extensions.commitChange
|
||||||
import dev.msfjarvis.aps.util.extensions.requestInputFocusOnView
|
import dev.msfjarvis.aps.util.extensions.requestInputFocusOnView
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
|
@ -16,11 +16,11 @@ import androidx.fragment.app.setFragmentResult
|
||||||
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
||||||
import com.google.android.material.bottomsheet.BottomSheetDialog
|
import com.google.android.material.bottomsheet.BottomSheetDialog
|
||||||
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
|
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
|
||||||
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.ui.passwords.PasswordFragment.Companion.ACTION_FOLDER
|
import dev.msfjarvis.aps.ui.passwords.PasswordFragment.Companion.ACTION_FOLDER
|
||||||
import dev.msfjarvis.aps.ui.passwords.PasswordFragment.Companion.ACTION_KEY
|
import dev.msfjarvis.aps.ui.passwords.PasswordFragment.Companion.ACTION_KEY
|
||||||
import dev.msfjarvis.aps.ui.passwords.PasswordFragment.Companion.ACTION_PASSWORD
|
import dev.msfjarvis.aps.ui.passwords.PasswordFragment.Companion.ACTION_PASSWORD
|
||||||
import dev.msfjarvis.aps.ui.passwords.PasswordFragment.Companion.ITEM_CREATION_REQUEST_KEY
|
import dev.msfjarvis.aps.ui.passwords.PasswordFragment.Companion.ITEM_CREATION_REQUEST_KEY
|
||||||
import dev.msfjarvis.aps.R
|
|
||||||
import dev.msfjarvis.aps.util.extensions.resolveAttribute
|
import dev.msfjarvis.aps.util.extensions.resolveAttribute
|
||||||
|
|
||||||
class ItemCreationBottomSheet : BottomSheetDialogFragment() {
|
class ItemCreationBottomSheet : BottomSheetDialogFragment() {
|
||||||
|
|
|
@ -22,9 +22,9 @@ import com.github.michaelbull.result.runCatching
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.databinding.FragmentXkpwgenBinding
|
import dev.msfjarvis.aps.databinding.FragmentXkpwgenBinding
|
||||||
|
import dev.msfjarvis.aps.util.extensions.getString
|
||||||
import dev.msfjarvis.aps.util.pwgenxkpwd.CapsType
|
import dev.msfjarvis.aps.util.pwgenxkpwd.CapsType
|
||||||
import dev.msfjarvis.aps.util.pwgenxkpwd.PasswordBuilder
|
import dev.msfjarvis.aps.util.pwgenxkpwd.PasswordBuilder
|
||||||
import dev.msfjarvis.aps.util.extensions.getString
|
|
||||||
|
|
||||||
/** A placeholder fragment containing a simple view. */
|
/** A placeholder fragment containing a simple view. */
|
||||||
class XkPasswordGeneratorDialogFragment : DialogFragment() {
|
class XkPasswordGeneratorDialogFragment : DialogFragment() {
|
||||||
|
|
|
@ -13,14 +13,14 @@ import androidx.fragment.app.activityViewModels
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import com.github.michaelbull.result.onFailure
|
import com.github.michaelbull.result.onFailure
|
||||||
import com.github.michaelbull.result.runCatching
|
import com.github.michaelbull.result.runCatching
|
||||||
import dev.msfjarvis.aps.util.viewmodel.ListMode
|
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.util.viewmodel.SearchableRepositoryViewModel
|
import dev.msfjarvis.aps.data.password.PasswordItem
|
||||||
import dev.msfjarvis.aps.databinding.PasswordRecyclerViewBinding
|
import dev.msfjarvis.aps.databinding.PasswordRecyclerViewBinding
|
||||||
import dev.msfjarvis.aps.ui.adapters.PasswordItemRecyclerAdapter
|
import dev.msfjarvis.aps.ui.adapters.PasswordItemRecyclerAdapter
|
||||||
import dev.msfjarvis.aps.data.password.PasswordItem
|
|
||||||
import dev.msfjarvis.aps.ui.passwords.PasswordStore
|
import dev.msfjarvis.aps.ui.passwords.PasswordStore
|
||||||
import dev.msfjarvis.aps.util.extensions.viewBinding
|
import dev.msfjarvis.aps.util.extensions.viewBinding
|
||||||
|
import dev.msfjarvis.aps.util.viewmodel.ListMode
|
||||||
|
import dev.msfjarvis.aps.util.viewmodel.SearchableRepositoryViewModel
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import me.zhanghai.android.fastscroll.FastScrollerBuilder
|
import me.zhanghai.android.fastscroll.FastScrollerBuilder
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,9 @@ import com.github.michaelbull.result.andThen
|
||||||
import com.github.michaelbull.result.mapError
|
import com.github.michaelbull.result.mapError
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.util.settings.GitSettings
|
import dev.msfjarvis.aps.util.extensions.getEncryptedGitPrefs
|
||||||
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
|
import dev.msfjarvis.aps.util.git.ErrorMessages
|
||||||
import dev.msfjarvis.aps.util.git.operation.BreakOutOfDetached
|
import dev.msfjarvis.aps.util.git.operation.BreakOutOfDetached
|
||||||
import dev.msfjarvis.aps.util.git.operation.CloneOperation
|
import dev.msfjarvis.aps.util.git.operation.CloneOperation
|
||||||
import dev.msfjarvis.aps.util.git.operation.PullOperation
|
import dev.msfjarvis.aps.util.git.operation.PullOperation
|
||||||
|
@ -21,10 +23,8 @@ import dev.msfjarvis.aps.util.git.operation.PushOperation
|
||||||
import dev.msfjarvis.aps.util.git.operation.ResetToRemoteOperation
|
import dev.msfjarvis.aps.util.git.operation.ResetToRemoteOperation
|
||||||
import dev.msfjarvis.aps.util.git.operation.SyncOperation
|
import dev.msfjarvis.aps.util.git.operation.SyncOperation
|
||||||
import dev.msfjarvis.aps.util.git.sshj.ContinuationContainerActivity
|
import dev.msfjarvis.aps.util.git.sshj.ContinuationContainerActivity
|
||||||
|
import dev.msfjarvis.aps.util.settings.GitSettings
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import dev.msfjarvis.aps.util.extensions.getEncryptedGitPrefs
|
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
|
||||||
import dev.msfjarvis.aps.util.git.ErrorMessages
|
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
||||||
import net.schmizz.sshj.common.DisconnectReason
|
import net.schmizz.sshj.common.DisconnectReason
|
||||||
|
|
|
@ -20,12 +20,12 @@ import com.github.michaelbull.result.runCatching
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import com.google.android.material.snackbar.Snackbar
|
import com.google.android.material.snackbar.Snackbar
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.databinding.ActivityGitConfigBinding
|
|
||||||
import dev.msfjarvis.aps.util.settings.GitSettings
|
|
||||||
import dev.msfjarvis.aps.ui.git.log.GitLogActivity
|
|
||||||
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
||||||
|
import dev.msfjarvis.aps.databinding.ActivityGitConfigBinding
|
||||||
import dev.msfjarvis.aps.ui.git.base.BaseGitActivity
|
import dev.msfjarvis.aps.ui.git.base.BaseGitActivity
|
||||||
|
import dev.msfjarvis.aps.ui.git.log.GitLogActivity
|
||||||
import dev.msfjarvis.aps.util.extensions.viewBinding
|
import dev.msfjarvis.aps.util.extensions.viewBinding
|
||||||
|
import dev.msfjarvis.aps.util.settings.GitSettings
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import org.eclipse.jgit.lib.Constants
|
import org.eclipse.jgit.lib.Constants
|
||||||
import org.eclipse.jgit.lib.Repository
|
import org.eclipse.jgit.lib.Repository
|
||||||
|
|
|
@ -22,15 +22,15 @@ import com.github.michaelbull.result.runCatching
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import com.google.android.material.snackbar.Snackbar
|
import com.google.android.material.snackbar.Snackbar
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.databinding.ActivityGitCloneBinding
|
|
||||||
import dev.msfjarvis.aps.util.settings.AuthMode
|
|
||||||
import dev.msfjarvis.aps.util.settings.GitSettings
|
|
||||||
import dev.msfjarvis.aps.util.settings.Protocol
|
|
||||||
import dev.msfjarvis.aps.ui.dialogs.BasicBottomSheet
|
|
||||||
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
||||||
|
import dev.msfjarvis.aps.databinding.ActivityGitCloneBinding
|
||||||
|
import dev.msfjarvis.aps.ui.dialogs.BasicBottomSheet
|
||||||
import dev.msfjarvis.aps.ui.git.base.BaseGitActivity
|
import dev.msfjarvis.aps.ui.git.base.BaseGitActivity
|
||||||
import dev.msfjarvis.aps.util.extensions.snackbar
|
import dev.msfjarvis.aps.util.extensions.snackbar
|
||||||
import dev.msfjarvis.aps.util.extensions.viewBinding
|
import dev.msfjarvis.aps.util.extensions.viewBinding
|
||||||
|
import dev.msfjarvis.aps.util.settings.AuthMode
|
||||||
|
import dev.msfjarvis.aps.util.settings.GitSettings
|
||||||
|
import dev.msfjarvis.aps.util.settings.Protocol
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
||||||
|
|
|
@ -13,8 +13,8 @@ import androidx.core.content.edit
|
||||||
import dev.msfjarvis.aps.ui.crypto.DecryptActivity
|
import dev.msfjarvis.aps.ui.crypto.DecryptActivity
|
||||||
import dev.msfjarvis.aps.ui.passwords.PasswordStore
|
import dev.msfjarvis.aps.ui.passwords.PasswordStore
|
||||||
import dev.msfjarvis.aps.util.auth.BiometricAuthenticator
|
import dev.msfjarvis.aps.util.auth.BiometricAuthenticator
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
|
|
||||||
class LaunchActivity : AppCompatActivity() {
|
class LaunchActivity : AppCompatActivity() {
|
||||||
|
|
||||||
|
|
|
@ -15,11 +15,11 @@ import androidx.fragment.app.Fragment
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.databinding.FragmentCloneBinding
|
import dev.msfjarvis.aps.databinding.FragmentCloneBinding
|
||||||
import dev.msfjarvis.aps.ui.git.config.GitServerConfigActivity
|
import dev.msfjarvis.aps.ui.git.config.GitServerConfigActivity
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import dev.msfjarvis.aps.util.extensions.finish
|
import dev.msfjarvis.aps.util.extensions.finish
|
||||||
import dev.msfjarvis.aps.util.extensions.performTransactionWithBackStack
|
import dev.msfjarvis.aps.util.extensions.performTransactionWithBackStack
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
import dev.msfjarvis.aps.util.extensions.viewBinding
|
import dev.msfjarvis.aps.util.extensions.viewBinding
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
|
|
||||||
class CloneFragment : Fragment(R.layout.fragment_clone) {
|
class CloneFragment : Fragment(R.layout.fragment_clone) {
|
||||||
|
|
||||||
|
|
|
@ -14,14 +14,14 @@ import androidx.core.content.edit
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.ui.crypto.GetKeyIdsActivity
|
|
||||||
import dev.msfjarvis.aps.databinding.FragmentKeySelectionBinding
|
|
||||||
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
import dev.msfjarvis.aps.databinding.FragmentKeySelectionBinding
|
||||||
|
import dev.msfjarvis.aps.ui.crypto.GetKeyIdsActivity
|
||||||
import dev.msfjarvis.aps.util.extensions.commitChange
|
import dev.msfjarvis.aps.util.extensions.commitChange
|
||||||
import dev.msfjarvis.aps.util.extensions.finish
|
import dev.msfjarvis.aps.util.extensions.finish
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
import dev.msfjarvis.aps.util.extensions.viewBinding
|
import dev.msfjarvis.aps.util.extensions.viewBinding
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
package dev.msfjarvis.aps.ui.onboarding.fragments
|
package dev.msfjarvis.aps.ui.onboarding.fragments
|
||||||
|
|
||||||
import android.Manifest
|
import android.Manifest
|
||||||
|
import android.content.Intent
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import androidx.activity.result.contract.ActivityResultContracts
|
import androidx.activity.result.contract.ActivityResultContracts
|
||||||
|
@ -19,11 +20,9 @@ import com.github.michaelbull.result.onFailure
|
||||||
import com.github.michaelbull.result.runCatching
|
import com.github.michaelbull.result.runCatching
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.databinding.FragmentRepoLocationBinding
|
|
||||||
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
||||||
|
import dev.msfjarvis.aps.databinding.FragmentRepoLocationBinding
|
||||||
import dev.msfjarvis.aps.ui.settings.DirectorySelectionActivity
|
import dev.msfjarvis.aps.ui.settings.DirectorySelectionActivity
|
||||||
import dev.msfjarvis.aps.util.settings.PasswordSortOrder
|
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import dev.msfjarvis.aps.util.extensions.finish
|
import dev.msfjarvis.aps.util.extensions.finish
|
||||||
import dev.msfjarvis.aps.util.extensions.getString
|
import dev.msfjarvis.aps.util.extensions.getString
|
||||||
import dev.msfjarvis.aps.util.extensions.isPermissionGranted
|
import dev.msfjarvis.aps.util.extensions.isPermissionGranted
|
||||||
|
@ -31,7 +30,8 @@ import dev.msfjarvis.aps.util.extensions.listFilesRecursively
|
||||||
import dev.msfjarvis.aps.util.extensions.performTransactionWithBackStack
|
import dev.msfjarvis.aps.util.extensions.performTransactionWithBackStack
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
import dev.msfjarvis.aps.util.extensions.viewBinding
|
import dev.msfjarvis.aps.util.extensions.viewBinding
|
||||||
import android.content.Intent
|
import dev.msfjarvis.aps.util.settings.PasswordSortOrder
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
class RepoLocationFragment : Fragment(R.layout.fragment_repo_location) {
|
class RepoLocationFragment : Fragment(R.layout.fragment_repo_location) {
|
||||||
|
|
|
@ -22,27 +22,27 @@ import androidx.lifecycle.lifecycleScope
|
||||||
import androidx.recyclerview.widget.DividerItemDecoration
|
import androidx.recyclerview.widget.DividerItemDecoration
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import com.github.michaelbull.result.fold
|
import com.github.michaelbull.result.fold
|
||||||
import com.github.michaelbull.result.runCatching
|
|
||||||
import com.github.michaelbull.result.onFailure
|
import com.github.michaelbull.result.onFailure
|
||||||
|
import com.github.michaelbull.result.runCatching
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.util.viewmodel.SearchableRepositoryViewModel
|
import dev.msfjarvis.aps.data.password.PasswordItem
|
||||||
|
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
||||||
import dev.msfjarvis.aps.databinding.PasswordRecyclerViewBinding
|
import dev.msfjarvis.aps.databinding.PasswordRecyclerViewBinding
|
||||||
import dev.msfjarvis.aps.ui.git.base.BaseGitActivity
|
|
||||||
import dev.msfjarvis.aps.ui.git.config.GitServerConfigActivity
|
|
||||||
import dev.msfjarvis.aps.util.settings.AuthMode
|
|
||||||
import dev.msfjarvis.aps.util.settings.GitSettings
|
|
||||||
import dev.msfjarvis.aps.ui.util.OnOffItemAnimator
|
|
||||||
import dev.msfjarvis.aps.ui.adapters.PasswordItemRecyclerAdapter
|
import dev.msfjarvis.aps.ui.adapters.PasswordItemRecyclerAdapter
|
||||||
import dev.msfjarvis.aps.ui.dialogs.BasicBottomSheet
|
import dev.msfjarvis.aps.ui.dialogs.BasicBottomSheet
|
||||||
import dev.msfjarvis.aps.ui.dialogs.ItemCreationBottomSheet
|
import dev.msfjarvis.aps.ui.dialogs.ItemCreationBottomSheet
|
||||||
import dev.msfjarvis.aps.data.password.PasswordItem
|
import dev.msfjarvis.aps.ui.git.base.BaseGitActivity
|
||||||
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
import dev.msfjarvis.aps.ui.git.config.GitServerConfigActivity
|
||||||
import dev.msfjarvis.aps.util.settings.PasswordSortOrder
|
import dev.msfjarvis.aps.ui.util.OnOffItemAnimator
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import dev.msfjarvis.aps.util.extensions.base64
|
import dev.msfjarvis.aps.util.extensions.base64
|
||||||
import dev.msfjarvis.aps.util.extensions.getString
|
import dev.msfjarvis.aps.util.extensions.getString
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
import dev.msfjarvis.aps.util.extensions.viewBinding
|
import dev.msfjarvis.aps.util.extensions.viewBinding
|
||||||
|
import dev.msfjarvis.aps.util.settings.AuthMode
|
||||||
|
import dev.msfjarvis.aps.util.settings.GitSettings
|
||||||
|
import dev.msfjarvis.aps.util.settings.PasswordSortOrder
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
|
import dev.msfjarvis.aps.util.viewmodel.SearchableRepositoryViewModel
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import me.zhanghai.android.fastscroll.FastScrollerBuilder
|
import me.zhanghai.android.fastscroll.FastScrollerBuilder
|
||||||
|
|
|
@ -38,25 +38,21 @@ import com.github.michaelbull.result.onFailure
|
||||||
import com.github.michaelbull.result.runCatching
|
import com.github.michaelbull.result.runCatching
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import com.google.android.material.textfield.TextInputEditText
|
import com.google.android.material.textfield.TextInputEditText
|
||||||
import dev.msfjarvis.aps.ui.main.LaunchActivity
|
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.util.viewmodel.SearchableRepositoryViewModel
|
import dev.msfjarvis.aps.data.password.PasswordItem
|
||||||
import dev.msfjarvis.aps.ui.folderselect.SelectFolderActivity
|
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
||||||
import dev.msfjarvis.aps.util.autofill.AutofillMatcher
|
|
||||||
import dev.msfjarvis.aps.ui.crypto.BasePgpActivity.Companion.getLongName
|
import dev.msfjarvis.aps.ui.crypto.BasePgpActivity.Companion.getLongName
|
||||||
import dev.msfjarvis.aps.ui.crypto.DecryptActivity
|
import dev.msfjarvis.aps.ui.crypto.DecryptActivity
|
||||||
import dev.msfjarvis.aps.ui.crypto.PasswordCreationActivity
|
import dev.msfjarvis.aps.ui.crypto.PasswordCreationActivity
|
||||||
import dev.msfjarvis.aps.ui.git.base.BaseGitActivity
|
|
||||||
import dev.msfjarvis.aps.util.settings.AuthMode
|
|
||||||
import dev.msfjarvis.aps.util.settings.GitSettings
|
|
||||||
import dev.msfjarvis.aps.ui.dialogs.BasicBottomSheet
|
import dev.msfjarvis.aps.ui.dialogs.BasicBottomSheet
|
||||||
import dev.msfjarvis.aps.ui.dialogs.FolderCreationDialogFragment
|
import dev.msfjarvis.aps.ui.dialogs.FolderCreationDialogFragment
|
||||||
|
import dev.msfjarvis.aps.ui.folderselect.SelectFolderActivity
|
||||||
|
import dev.msfjarvis.aps.ui.git.base.BaseGitActivity
|
||||||
|
import dev.msfjarvis.aps.ui.main.LaunchActivity
|
||||||
import dev.msfjarvis.aps.ui.onboarding.activity.OnboardingActivity
|
import dev.msfjarvis.aps.ui.onboarding.activity.OnboardingActivity
|
||||||
import dev.msfjarvis.aps.data.password.PasswordItem
|
|
||||||
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
|
||||||
import dev.msfjarvis.aps.ui.settings.DirectorySelectionActivity
|
import dev.msfjarvis.aps.ui.settings.DirectorySelectionActivity
|
||||||
import dev.msfjarvis.aps.ui.settings.SettingsActivity
|
import dev.msfjarvis.aps.ui.settings.SettingsActivity
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
import dev.msfjarvis.aps.util.autofill.AutofillMatcher
|
||||||
import dev.msfjarvis.aps.util.extensions.base64
|
import dev.msfjarvis.aps.util.extensions.base64
|
||||||
import dev.msfjarvis.aps.util.extensions.commitChange
|
import dev.msfjarvis.aps.util.extensions.commitChange
|
||||||
import dev.msfjarvis.aps.util.extensions.contains
|
import dev.msfjarvis.aps.util.extensions.contains
|
||||||
|
@ -66,6 +62,10 @@ import dev.msfjarvis.aps.util.extensions.isPermissionGranted
|
||||||
import dev.msfjarvis.aps.util.extensions.listFilesRecursively
|
import dev.msfjarvis.aps.util.extensions.listFilesRecursively
|
||||||
import dev.msfjarvis.aps.util.extensions.requestInputFocusOnView
|
import dev.msfjarvis.aps.util.extensions.requestInputFocusOnView
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
|
import dev.msfjarvis.aps.util.settings.AuthMode
|
||||||
|
import dev.msfjarvis.aps.util.settings.GitSettings
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
|
import dev.msfjarvis.aps.util.viewmodel.SearchableRepositoryViewModel
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.lang.Character.UnicodeBlock
|
import java.lang.Character.UnicodeBlock
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
|
|
|
@ -15,12 +15,12 @@ import androidx.core.os.postDelayed
|
||||||
import androidx.core.widget.doOnTextChanged
|
import androidx.core.widget.doOnTextChanged
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.databinding.ActivityProxySelectorBinding
|
import dev.msfjarvis.aps.databinding.ActivityProxySelectorBinding
|
||||||
import dev.msfjarvis.aps.util.settings.GitSettings
|
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import dev.msfjarvis.aps.util.proxy.ProxyUtils
|
|
||||||
import dev.msfjarvis.aps.util.extensions.getEncryptedProxyPrefs
|
import dev.msfjarvis.aps.util.extensions.getEncryptedProxyPrefs
|
||||||
import dev.msfjarvis.aps.util.extensions.getString
|
import dev.msfjarvis.aps.util.extensions.getString
|
||||||
import dev.msfjarvis.aps.util.extensions.viewBinding
|
import dev.msfjarvis.aps.util.extensions.viewBinding
|
||||||
|
import dev.msfjarvis.aps.util.proxy.ProxyUtils
|
||||||
|
import dev.msfjarvis.aps.util.settings.GitSettings
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
|
|
||||||
private val IP_ADDRESS_REGEX = Patterns.IP_ADDRESS.toRegex()
|
private val IP_ADDRESS_REGEX = Patterns.IP_ADDRESS.toRegex()
|
||||||
private val WEB_ADDRESS_REGEX = Patterns.WEB_URL.toRegex()
|
private val WEB_ADDRESS_REGEX = Patterns.WEB_URL.toRegex()
|
||||||
|
|
|
@ -5,18 +5,6 @@
|
||||||
|
|
||||||
package dev.msfjarvis.aps.ui.settings
|
package dev.msfjarvis.aps.ui.settings
|
||||||
|
|
||||||
import de.Maxr1998.modernpreferences.PreferenceScreen
|
|
||||||
import de.Maxr1998.modernpreferences.helpers.editText
|
|
||||||
import de.Maxr1998.modernpreferences.helpers.onClick
|
|
||||||
import de.Maxr1998.modernpreferences.helpers.singleChoice
|
|
||||||
import de.Maxr1998.modernpreferences.helpers.switch
|
|
||||||
import de.Maxr1998.modernpreferences.preferences.SwitchPreference
|
|
||||||
import de.Maxr1998.modernpreferences.preferences.choice.SelectionItem
|
|
||||||
import dev.msfjarvis.aps.BuildConfig
|
|
||||||
import dev.msfjarvis.aps.R
|
|
||||||
import dev.msfjarvis.aps.util.autofill.DirectoryStructure
|
|
||||||
import dev.msfjarvis.aps.util.extensions.autofillManager
|
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
|
@ -30,6 +18,18 @@ import androidx.lifecycle.LifecycleEventObserver
|
||||||
import com.github.androidpasswordstore.autofillparser.BrowserAutofillSupportLevel
|
import com.github.androidpasswordstore.autofillparser.BrowserAutofillSupportLevel
|
||||||
import com.github.androidpasswordstore.autofillparser.getInstalledBrowsersWithAutofillSupportLevel
|
import com.github.androidpasswordstore.autofillparser.getInstalledBrowsersWithAutofillSupportLevel
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
|
import de.Maxr1998.modernpreferences.PreferenceScreen
|
||||||
|
import de.Maxr1998.modernpreferences.helpers.editText
|
||||||
|
import de.Maxr1998.modernpreferences.helpers.onClick
|
||||||
|
import de.Maxr1998.modernpreferences.helpers.singleChoice
|
||||||
|
import de.Maxr1998.modernpreferences.helpers.switch
|
||||||
|
import de.Maxr1998.modernpreferences.preferences.SwitchPreference
|
||||||
|
import de.Maxr1998.modernpreferences.preferences.choice.SelectionItem
|
||||||
|
import dev.msfjarvis.aps.BuildConfig
|
||||||
|
import dev.msfjarvis.aps.R
|
||||||
|
import dev.msfjarvis.aps.util.autofill.DirectoryStructure
|
||||||
|
import dev.msfjarvis.aps.util.extensions.autofillManager
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
|
|
||||||
class AutofillSettings(private val activity: FragmentActivity) : SettingsProvider {
|
class AutofillSettings(private val activity: FragmentActivity) : SettingsProvider {
|
||||||
|
|
||||||
|
|
|
@ -5,18 +5,18 @@
|
||||||
|
|
||||||
package dev.msfjarvis.aps.ui.settings
|
package dev.msfjarvis.aps.ui.settings
|
||||||
|
|
||||||
import dev.msfjarvis.aps.R
|
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.os.Environment
|
import android.os.Environment
|
||||||
import android.provider.DocumentsContract
|
import android.provider.DocumentsContract
|
||||||
import androidx.activity.result.contract.ActivityResultContracts
|
import androidx.activity.result.contract.ActivityResultContracts
|
||||||
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import androidx.core.content.edit
|
import androidx.core.content.edit
|
||||||
import com.github.ajalt.timberkt.d
|
import com.github.ajalt.timberkt.d
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
|
import dev.msfjarvis.aps.R
|
||||||
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
|
|
||||||
class DirectorySelectionActivity : AppCompatActivity() {
|
class DirectorySelectionActivity : AppCompatActivity() {
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
|
|
||||||
package dev.msfjarvis.aps.ui.settings
|
package dev.msfjarvis.aps.ui.settings
|
||||||
|
|
||||||
|
import android.content.pm.ShortcutManager
|
||||||
|
import android.os.Build
|
||||||
|
import androidx.core.content.edit
|
||||||
|
import androidx.core.content.getSystemService
|
||||||
|
import androidx.fragment.app.FragmentActivity
|
||||||
import de.Maxr1998.modernpreferences.PreferenceScreen
|
import de.Maxr1998.modernpreferences.PreferenceScreen
|
||||||
import de.Maxr1998.modernpreferences.helpers.checkBox
|
import de.Maxr1998.modernpreferences.helpers.checkBox
|
||||||
import de.Maxr1998.modernpreferences.helpers.onClick
|
import de.Maxr1998.modernpreferences.helpers.onClick
|
||||||
|
@ -14,11 +19,6 @@ import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.util.auth.BiometricAuthenticator
|
import dev.msfjarvis.aps.util.auth.BiometricAuthenticator
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import android.content.pm.ShortcutManager
|
|
||||||
import android.os.Build
|
|
||||||
import androidx.core.content.edit
|
|
||||||
import androidx.core.content.getSystemService
|
|
||||||
import androidx.fragment.app.FragmentActivity
|
|
||||||
|
|
||||||
class GeneralSettings(private val activity: FragmentActivity) : SettingsProvider {
|
class GeneralSettings(private val activity: FragmentActivity) : SettingsProvider {
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,13 @@
|
||||||
|
|
||||||
package dev.msfjarvis.aps.ui.settings
|
package dev.msfjarvis.aps.ui.settings
|
||||||
|
|
||||||
|
import android.content.Context
|
||||||
|
import android.content.Intent
|
||||||
|
import android.net.Uri
|
||||||
|
import android.os.Build
|
||||||
|
import androidx.activity.result.contract.ActivityResultContracts
|
||||||
|
import androidx.documentfile.provider.DocumentFile
|
||||||
|
import androidx.fragment.app.FragmentActivity
|
||||||
import de.Maxr1998.modernpreferences.PreferenceScreen
|
import de.Maxr1998.modernpreferences.PreferenceScreen
|
||||||
import de.Maxr1998.modernpreferences.helpers.checkBox
|
import de.Maxr1998.modernpreferences.helpers.checkBox
|
||||||
import de.Maxr1998.modernpreferences.helpers.onClick
|
import de.Maxr1998.modernpreferences.helpers.onClick
|
||||||
|
@ -13,13 +20,6 @@ import dev.msfjarvis.aps.BuildConfig
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.util.services.PasswordExportService
|
import dev.msfjarvis.aps.util.services.PasswordExportService
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import android.content.Context
|
|
||||||
import android.content.Intent
|
|
||||||
import android.net.Uri
|
|
||||||
import android.os.Build
|
|
||||||
import androidx.activity.result.contract.ActivityResultContracts
|
|
||||||
import androidx.documentfile.provider.DocumentFile
|
|
||||||
import androidx.fragment.app.FragmentActivity
|
|
||||||
|
|
||||||
class MiscSettings(activity: FragmentActivity) : SettingsProvider {
|
class MiscSettings(activity: FragmentActivity) : SettingsProvider {
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,13 @@
|
||||||
|
|
||||||
package dev.msfjarvis.aps.ui.settings
|
package dev.msfjarvis.aps.ui.settings
|
||||||
|
|
||||||
|
import android.text.InputType
|
||||||
|
import android.widget.Toast
|
||||||
|
import androidx.activity.result.contract.ActivityResultContracts
|
||||||
|
import androidx.core.content.edit
|
||||||
|
import androidx.fragment.app.FragmentActivity
|
||||||
import de.Maxr1998.modernpreferences.Preference
|
import de.Maxr1998.modernpreferences.Preference
|
||||||
import de.Maxr1998.modernpreferences.PreferenceScreen
|
import de.Maxr1998.modernpreferences.PreferenceScreen
|
||||||
import de.Maxr1998.modernpreferences.helpers.categoryHeader
|
|
||||||
import de.Maxr1998.modernpreferences.helpers.checkBox
|
import de.Maxr1998.modernpreferences.helpers.checkBox
|
||||||
import de.Maxr1998.modernpreferences.helpers.editText
|
import de.Maxr1998.modernpreferences.helpers.editText
|
||||||
import de.Maxr1998.modernpreferences.helpers.onCheckedChange
|
import de.Maxr1998.modernpreferences.helpers.onCheckedChange
|
||||||
|
@ -21,11 +25,6 @@ import dev.msfjarvis.aps.util.extensions.getString
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
import dev.msfjarvis.aps.util.pwgenxkpwd.XkpwdDictionary
|
import dev.msfjarvis.aps.util.pwgenxkpwd.XkpwdDictionary
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import android.text.InputType
|
|
||||||
import android.widget.Toast
|
|
||||||
import androidx.activity.result.contract.ActivityResultContracts
|
|
||||||
import androidx.core.content.edit
|
|
||||||
import androidx.fragment.app.FragmentActivity
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
class PasswordSettings(private val activity: FragmentActivity) : SettingsProvider {
|
class PasswordSettings(private val activity: FragmentActivity) : SettingsProvider {
|
||||||
|
|
|
@ -5,6 +5,15 @@
|
||||||
|
|
||||||
package dev.msfjarvis.aps.ui.settings
|
package dev.msfjarvis.aps.ui.settings
|
||||||
|
|
||||||
|
import android.content.Intent
|
||||||
|
import android.content.pm.ShortcutManager
|
||||||
|
import android.os.Build
|
||||||
|
import androidx.core.content.edit
|
||||||
|
import androidx.core.content.getSystemService
|
||||||
|
import androidx.fragment.app.FragmentActivity
|
||||||
|
import com.github.michaelbull.result.onFailure
|
||||||
|
import com.github.michaelbull.result.runCatching
|
||||||
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import de.Maxr1998.modernpreferences.Preference
|
import de.Maxr1998.modernpreferences.Preference
|
||||||
import de.Maxr1998.modernpreferences.PreferenceScreen
|
import de.Maxr1998.modernpreferences.PreferenceScreen
|
||||||
import de.Maxr1998.modernpreferences.helpers.checkBox
|
import de.Maxr1998.modernpreferences.helpers.checkBox
|
||||||
|
@ -25,15 +34,6 @@ import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
import dev.msfjarvis.aps.util.extensions.snackbar
|
import dev.msfjarvis.aps.util.extensions.snackbar
|
||||||
import dev.msfjarvis.aps.util.settings.GitSettings
|
import dev.msfjarvis.aps.util.settings.GitSettings
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import android.content.Intent
|
|
||||||
import android.content.pm.ShortcutManager
|
|
||||||
import android.os.Build
|
|
||||||
import androidx.core.content.edit
|
|
||||||
import androidx.core.content.getSystemService
|
|
||||||
import androidx.fragment.app.FragmentActivity
|
|
||||||
import com.github.michaelbull.result.onFailure
|
|
||||||
import com.github.michaelbull.result.runCatching
|
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
|
||||||
|
|
||||||
class RepositorySettings(private val activity: FragmentActivity) : SettingsProvider {
|
class RepositorySettings(private val activity: FragmentActivity) : SettingsProvider {
|
||||||
|
|
||||||
|
|
|
@ -5,15 +5,15 @@
|
||||||
|
|
||||||
package dev.msfjarvis.aps.ui.settings
|
package dev.msfjarvis.aps.ui.settings
|
||||||
|
|
||||||
|
import android.os.Bundle
|
||||||
|
import android.view.MenuItem
|
||||||
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
import de.Maxr1998.modernpreferences.PreferencesAdapter
|
import de.Maxr1998.modernpreferences.PreferencesAdapter
|
||||||
import de.Maxr1998.modernpreferences.helpers.screen
|
import de.Maxr1998.modernpreferences.helpers.screen
|
||||||
import de.Maxr1998.modernpreferences.helpers.subScreen
|
import de.Maxr1998.modernpreferences.helpers.subScreen
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.databinding.ActivityPreferenceRecyclerviewBinding
|
import dev.msfjarvis.aps.databinding.ActivityPreferenceRecyclerviewBinding
|
||||||
import dev.msfjarvis.aps.util.extensions.viewBinding
|
import dev.msfjarvis.aps.util.extensions.viewBinding
|
||||||
import android.os.Bundle
|
|
||||||
import android.view.MenuItem
|
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
|
||||||
|
|
||||||
class SettingsActivity : AppCompatActivity() {
|
class SettingsActivity : AppCompatActivity() {
|
||||||
|
|
||||||
|
|
|
@ -18,11 +18,11 @@ import com.github.michaelbull.result.runCatching
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.databinding.ActivitySshKeygenBinding
|
import dev.msfjarvis.aps.databinding.ActivitySshKeygenBinding
|
||||||
import dev.msfjarvis.aps.util.git.sshj.SshKey
|
|
||||||
import dev.msfjarvis.aps.util.auth.BiometricAuthenticator
|
import dev.msfjarvis.aps.util.auth.BiometricAuthenticator
|
||||||
import dev.msfjarvis.aps.util.extensions.getEncryptedGitPrefs
|
import dev.msfjarvis.aps.util.extensions.getEncryptedGitPrefs
|
||||||
import dev.msfjarvis.aps.util.extensions.keyguardManager
|
import dev.msfjarvis.aps.util.extensions.keyguardManager
|
||||||
import dev.msfjarvis.aps.util.extensions.viewBinding
|
import dev.msfjarvis.aps.util.extensions.viewBinding
|
||||||
|
import dev.msfjarvis.aps.util.git.sshj.SshKey
|
||||||
import kotlin.coroutines.resume
|
import kotlin.coroutines.resume
|
||||||
import kotlin.coroutines.suspendCoroutine
|
import kotlin.coroutines.suspendCoroutine
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
|
|
||||||
package dev.msfjarvis.aps.ui.sshkeygen
|
package dev.msfjarvis.aps.ui.sshkeygen
|
||||||
|
|
||||||
import dev.msfjarvis.aps.R
|
|
||||||
import dev.msfjarvis.aps.util.git.sshj.SshKey
|
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.widget.Toast
|
import android.widget.Toast
|
||||||
|
@ -15,6 +13,8 @@ import androidx.appcompat.app.AppCompatActivity
|
||||||
import com.github.michaelbull.result.onFailure
|
import com.github.michaelbull.result.onFailure
|
||||||
import com.github.michaelbull.result.runCatching
|
import com.github.michaelbull.result.runCatching
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
|
import dev.msfjarvis.aps.R
|
||||||
|
import dev.msfjarvis.aps.util.git.sshj.SshKey
|
||||||
|
|
||||||
class SshKeyImportActivity : AppCompatActivity() {
|
class SshKeyImportActivity : AppCompatActivity() {
|
||||||
|
|
||||||
|
|
|
@ -20,11 +20,11 @@ import com.github.androidpasswordstore.autofillparser.AutofillAction
|
||||||
import com.github.androidpasswordstore.autofillparser.FillableForm
|
import com.github.androidpasswordstore.autofillparser.FillableForm
|
||||||
import com.github.androidpasswordstore.autofillparser.fillWith
|
import com.github.androidpasswordstore.autofillparser.fillWith
|
||||||
import com.github.michaelbull.result.fold
|
import com.github.michaelbull.result.fold
|
||||||
|
import dev.msfjarvis.aps.autofill.oreo.ui.AutofillSmsActivity
|
||||||
import dev.msfjarvis.aps.ui.autofill.AutofillDecryptActivity
|
import dev.msfjarvis.aps.ui.autofill.AutofillDecryptActivity
|
||||||
import dev.msfjarvis.aps.ui.autofill.AutofillFilterView
|
import dev.msfjarvis.aps.ui.autofill.AutofillFilterView
|
||||||
import dev.msfjarvis.aps.ui.autofill.AutofillPublisherChangedActivity
|
import dev.msfjarvis.aps.ui.autofill.AutofillPublisherChangedActivity
|
||||||
import dev.msfjarvis.aps.ui.autofill.AutofillSaveActivity
|
import dev.msfjarvis.aps.ui.autofill.AutofillSaveActivity
|
||||||
import dev.msfjarvis.aps.autofill.oreo.ui.AutofillSmsActivity
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -11,11 +11,11 @@ import androidx.core.content.edit
|
||||||
import com.github.ajalt.timberkt.Timber.e
|
import com.github.ajalt.timberkt.Timber.e
|
||||||
import com.github.ajalt.timberkt.d
|
import com.github.ajalt.timberkt.d
|
||||||
import com.github.ajalt.timberkt.w
|
import com.github.ajalt.timberkt.w
|
||||||
|
import com.github.androidpasswordstore.autofillparser.FormOrigin
|
||||||
|
import com.github.androidpasswordstore.autofillparser.computeCertificatesHash
|
||||||
import com.github.michaelbull.result.Err
|
import com.github.michaelbull.result.Err
|
||||||
import com.github.michaelbull.result.Ok
|
import com.github.michaelbull.result.Ok
|
||||||
import com.github.michaelbull.result.Result
|
import com.github.michaelbull.result.Result
|
||||||
import com.github.androidpasswordstore.autofillparser.FormOrigin
|
|
||||||
import com.github.androidpasswordstore.autofillparser.computeCertificatesHash
|
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
|
|
|
@ -20,11 +20,11 @@ import com.github.androidpasswordstore.autofillparser.Credentials
|
||||||
import com.github.androidpasswordstore.autofillparser.FillableForm
|
import com.github.androidpasswordstore.autofillparser.FillableForm
|
||||||
import com.github.androidpasswordstore.autofillparser.fillWith
|
import com.github.androidpasswordstore.autofillparser.fillWith
|
||||||
import com.github.michaelbull.result.fold
|
import com.github.michaelbull.result.fold
|
||||||
|
import dev.msfjarvis.aps.autofill.oreo.ui.AutofillSmsActivity
|
||||||
import dev.msfjarvis.aps.ui.autofill.AutofillDecryptActivity
|
import dev.msfjarvis.aps.ui.autofill.AutofillDecryptActivity
|
||||||
import dev.msfjarvis.aps.ui.autofill.AutofillFilterView
|
import dev.msfjarvis.aps.ui.autofill.AutofillFilterView
|
||||||
import dev.msfjarvis.aps.ui.autofill.AutofillPublisherChangedActivity
|
import dev.msfjarvis.aps.ui.autofill.AutofillPublisherChangedActivity
|
||||||
import dev.msfjarvis.aps.ui.autofill.AutofillSaveActivity
|
import dev.msfjarvis.aps.ui.autofill.AutofillSaveActivity
|
||||||
import dev.msfjarvis.aps.autofill.oreo.ui.AutofillSmsActivity
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
@RequiresApi(Build.VERSION_CODES.O)
|
@RequiresApi(Build.VERSION_CODES.O)
|
||||||
|
|
|
@ -18,9 +18,9 @@ import android.widget.inline.InlinePresentationSpec
|
||||||
import androidx.annotation.DrawableRes
|
import androidx.annotation.DrawableRes
|
||||||
import androidx.autofill.inline.UiVersions
|
import androidx.autofill.inline.UiVersions
|
||||||
import androidx.autofill.inline.v1.InlineSuggestionUi
|
import androidx.autofill.inline.v1.InlineSuggestionUi
|
||||||
import dev.msfjarvis.aps.ui.passwords.PasswordStore
|
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
||||||
|
import dev.msfjarvis.aps.ui.passwords.PasswordStore
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
data class DatasetMetadata(val title: String, val subtitle: String?, @DrawableRes val iconRes: Int)
|
data class DatasetMetadata(val title: String, val subtitle: String?, @DrawableRes val iconRes: Int)
|
||||||
|
|
|
@ -11,11 +11,11 @@ import com.github.michaelbull.result.Result
|
||||||
import com.github.michaelbull.result.runCatching
|
import com.github.michaelbull.result.runCatching
|
||||||
import com.google.android.material.snackbar.Snackbar
|
import com.google.android.material.snackbar.Snackbar
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
|
import dev.msfjarvis.aps.util.extensions.snackbar
|
||||||
import dev.msfjarvis.aps.util.git.GitException.PullException
|
import dev.msfjarvis.aps.util.git.GitException.PullException
|
||||||
import dev.msfjarvis.aps.util.git.GitException.PushException
|
import dev.msfjarvis.aps.util.git.GitException.PushException
|
||||||
import dev.msfjarvis.aps.util.settings.GitSettings
|
|
||||||
import dev.msfjarvis.aps.util.git.operation.GitOperation
|
import dev.msfjarvis.aps.util.git.operation.GitOperation
|
||||||
import dev.msfjarvis.aps.util.extensions.snackbar
|
import dev.msfjarvis.aps.util.settings.GitSettings
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
||||||
import org.eclipse.jgit.api.CommitCommand
|
import org.eclipse.jgit.api.CommitCommand
|
||||||
|
|
|
@ -11,11 +11,11 @@ import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import com.google.android.material.textfield.TextInputEditText
|
import com.google.android.material.textfield.TextInputEditText
|
||||||
import com.google.android.material.textfield.TextInputLayout
|
import com.google.android.material.textfield.TextInputLayout
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.util.settings.AuthMode
|
|
||||||
import dev.msfjarvis.aps.util.git.sshj.InteractivePasswordFinder
|
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import dev.msfjarvis.aps.util.extensions.getEncryptedGitPrefs
|
import dev.msfjarvis.aps.util.extensions.getEncryptedGitPrefs
|
||||||
import dev.msfjarvis.aps.util.extensions.requestInputFocusOnView
|
import dev.msfjarvis.aps.util.extensions.requestInputFocusOnView
|
||||||
|
import dev.msfjarvis.aps.util.git.sshj.InteractivePasswordFinder
|
||||||
|
import dev.msfjarvis.aps.util.settings.AuthMode
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import kotlin.coroutines.Continuation
|
import kotlin.coroutines.Continuation
|
||||||
import kotlin.coroutines.resume
|
import kotlin.coroutines.resume
|
||||||
|
|
||||||
|
|
|
@ -15,17 +15,17 @@ import com.github.michaelbull.result.onFailure
|
||||||
import com.github.michaelbull.result.runCatching
|
import com.github.michaelbull.result.runCatching
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
|
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
||||||
|
import dev.msfjarvis.aps.ui.sshkeygen.SshKeyGenActivity
|
||||||
|
import dev.msfjarvis.aps.ui.sshkeygen.SshKeyImportActivity
|
||||||
|
import dev.msfjarvis.aps.util.auth.BiometricAuthenticator
|
||||||
import dev.msfjarvis.aps.util.git.GitCommandExecutor
|
import dev.msfjarvis.aps.util.git.GitCommandExecutor
|
||||||
import dev.msfjarvis.aps.util.settings.AuthMode
|
|
||||||
import dev.msfjarvis.aps.util.settings.GitSettings
|
|
||||||
import dev.msfjarvis.aps.util.git.sshj.ContinuationContainerActivity
|
import dev.msfjarvis.aps.util.git.sshj.ContinuationContainerActivity
|
||||||
import dev.msfjarvis.aps.util.git.sshj.SshAuthMethod
|
import dev.msfjarvis.aps.util.git.sshj.SshAuthMethod
|
||||||
import dev.msfjarvis.aps.util.git.sshj.SshKey
|
import dev.msfjarvis.aps.util.git.sshj.SshKey
|
||||||
import dev.msfjarvis.aps.util.git.sshj.SshjSessionFactory
|
import dev.msfjarvis.aps.util.git.sshj.SshjSessionFactory
|
||||||
import dev.msfjarvis.aps.util.auth.BiometricAuthenticator
|
import dev.msfjarvis.aps.util.settings.AuthMode
|
||||||
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
import dev.msfjarvis.aps.util.settings.GitSettings
|
||||||
import dev.msfjarvis.aps.ui.sshkeygen.SshKeyGenActivity
|
|
||||||
import dev.msfjarvis.aps.ui.sshkeygen.SshKeyImportActivity
|
|
||||||
import kotlin.coroutines.resume
|
import kotlin.coroutines.resume
|
||||||
import kotlin.coroutines.suspendCoroutine
|
import kotlin.coroutines.suspendCoroutine
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
|
|
|
@ -10,8 +10,8 @@ import androidx.activity.result.IntentSenderRequest
|
||||||
import androidx.core.content.edit
|
import androidx.core.content.edit
|
||||||
import com.github.ajalt.timberkt.d
|
import com.github.ajalt.timberkt.d
|
||||||
import dev.msfjarvis.aps.util.extensions.OPENPGP_PROVIDER
|
import dev.msfjarvis.aps.util.extensions.OPENPGP_PROVIDER
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import java.io.Closeable
|
import java.io.Closeable
|
||||||
import java.security.PublicKey
|
import java.security.PublicKey
|
||||||
import kotlin.coroutines.resume
|
import kotlin.coroutines.resume
|
||||||
|
|
|
@ -22,10 +22,10 @@ import com.github.michaelbull.result.getOrElse
|
||||||
import com.github.michaelbull.result.runCatching
|
import com.github.michaelbull.result.runCatching
|
||||||
import dev.msfjarvis.aps.Application
|
import dev.msfjarvis.aps.Application
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import dev.msfjarvis.aps.util.extensions.getEncryptedGitPrefs
|
import dev.msfjarvis.aps.util.extensions.getEncryptedGitPrefs
|
||||||
import dev.msfjarvis.aps.util.extensions.getString
|
import dev.msfjarvis.aps.util.extensions.getString
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import java.security.KeyFactory
|
import java.security.KeyFactory
|
||||||
|
|
|
@ -9,8 +9,8 @@ import com.github.ajalt.timberkt.d
|
||||||
import com.github.ajalt.timberkt.w
|
import com.github.ajalt.timberkt.w
|
||||||
import com.github.michaelbull.result.getOrElse
|
import com.github.michaelbull.result.getOrElse
|
||||||
import com.github.michaelbull.result.runCatching
|
import com.github.michaelbull.result.runCatching
|
||||||
import dev.msfjarvis.aps.util.settings.AuthMode
|
|
||||||
import dev.msfjarvis.aps.util.git.operation.CredentialFinder
|
import dev.msfjarvis.aps.util.git.operation.CredentialFinder
|
||||||
|
import dev.msfjarvis.aps.util.settings.AuthMode
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import java.io.InputStream
|
import java.io.InputStream
|
||||||
|
|
|
@ -7,9 +7,9 @@ package dev.msfjarvis.aps.util.pwgen
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import androidx.core.content.edit
|
import androidx.core.content.edit
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import dev.msfjarvis.aps.util.extensions.clearFlag
|
import dev.msfjarvis.aps.util.extensions.clearFlag
|
||||||
import dev.msfjarvis.aps.util.extensions.hasFlag
|
import dev.msfjarvis.aps.util.extensions.hasFlag
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
|
|
||||||
enum class PasswordOption(val key: String) {
|
enum class PasswordOption(val key: String) {
|
||||||
NoDigits("0"),
|
NoDigits("0"),
|
||||||
|
|
|
@ -6,9 +6,9 @@ package dev.msfjarvis.aps.util.pwgenxkpwd
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import dev.msfjarvis.aps.util.extensions.getString
|
import dev.msfjarvis.aps.util.extensions.getString
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
class XkpwdDictionary(context: Context) {
|
class XkpwdDictionary(context: Context) {
|
||||||
|
|
|
@ -18,9 +18,9 @@ import androidx.core.app.NotificationCompat
|
||||||
import androidx.core.content.getSystemService
|
import androidx.core.content.getSystemService
|
||||||
import com.github.ajalt.timberkt.d
|
import com.github.ajalt.timberkt.d
|
||||||
import dev.msfjarvis.aps.R
|
import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import dev.msfjarvis.aps.util.extensions.clipboard
|
import dev.msfjarvis.aps.util.extensions.clipboard
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.Job
|
import kotlinx.coroutines.Job
|
||||||
|
|
|
@ -30,10 +30,10 @@ import dev.msfjarvis.aps.R
|
||||||
import dev.msfjarvis.aps.ui.autofill.AutofillSaveActivity
|
import dev.msfjarvis.aps.ui.autofill.AutofillSaveActivity
|
||||||
import dev.msfjarvis.aps.util.autofill.Api30AutofillResponseBuilder
|
import dev.msfjarvis.aps.util.autofill.Api30AutofillResponseBuilder
|
||||||
import dev.msfjarvis.aps.util.autofill.AutofillResponseBuilder
|
import dev.msfjarvis.aps.util.autofill.AutofillResponseBuilder
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
|
||||||
import dev.msfjarvis.aps.util.extensions.getString
|
import dev.msfjarvis.aps.util.extensions.getString
|
||||||
import dev.msfjarvis.aps.util.extensions.hasFlag
|
import dev.msfjarvis.aps.util.extensions.hasFlag
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
|
|
||||||
@RequiresApi(Build.VERSION_CODES.O)
|
@RequiresApi(Build.VERSION_CODES.O)
|
||||||
class OreoAutofillService : AutofillService() {
|
class OreoAutofillService : AutofillService() {
|
||||||
|
|
|
@ -13,9 +13,9 @@ import com.github.ajalt.timberkt.e
|
||||||
import com.github.ajalt.timberkt.i
|
import com.github.ajalt.timberkt.i
|
||||||
import com.github.michaelbull.result.get
|
import com.github.michaelbull.result.get
|
||||||
import com.github.michaelbull.result.runCatching
|
import com.github.michaelbull.result.runCatching
|
||||||
import dev.msfjarvis.aps.util.git.sshj.SshKey
|
|
||||||
import dev.msfjarvis.aps.util.extensions.getString
|
import dev.msfjarvis.aps.util.extensions.getString
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
|
import dev.msfjarvis.aps.util.git.sshj.SshKey
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.net.URI
|
import java.net.URI
|
||||||
|
|
||||||
|
|
|
@ -24,13 +24,13 @@ import androidx.recyclerview.selection.StorageStrategy
|
||||||
import androidx.recyclerview.widget.DiffUtil
|
import androidx.recyclerview.widget.DiffUtil
|
||||||
import androidx.recyclerview.widget.ListAdapter
|
import androidx.recyclerview.widget.ListAdapter
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import dev.msfjarvis.aps.util.autofill.AutofillPreferences
|
|
||||||
import dev.msfjarvis.aps.util.autofill.DirectoryStructure
|
|
||||||
import dev.msfjarvis.aps.data.password.PasswordItem
|
import dev.msfjarvis.aps.data.password.PasswordItem
|
||||||
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
import dev.msfjarvis.aps.data.repo.PasswordRepository
|
||||||
|
import dev.msfjarvis.aps.util.autofill.AutofillPreferences
|
||||||
|
import dev.msfjarvis.aps.util.autofill.DirectoryStructure
|
||||||
|
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
||||||
import dev.msfjarvis.aps.util.settings.PasswordSortOrder
|
import dev.msfjarvis.aps.util.settings.PasswordSortOrder
|
||||||
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
import dev.msfjarvis.aps.util.settings.PreferenceKeys
|
||||||
import dev.msfjarvis.aps.util.extensions.sharedPrefs
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.text.Collator
|
import java.text.Collator
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
package mozilla.components.lib.publicsuffixlist
|
package mozilla.components.lib.publicsuffixlist
|
||||||
|
|
||||||
import mozilla.components.lib.publicsuffixlist.ext.binarySearch
|
|
||||||
import java.net.IDN
|
import java.net.IDN
|
||||||
|
import mozilla.components.lib.publicsuffixlist.ext.binarySearch
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class wrapping the public suffix list data and offering methods for accessing rules in it.
|
* Class wrapping the public suffix list data and offering methods for accessing rules in it.
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import com.android.build.gradle.TestedExtension
|
import com.android.build.gradle.TestedExtension
|
||||||
|
import com.android.build.gradle.internal.dsl.BaseAppModuleExtension
|
||||||
import org.gradle.api.JavaVersion
|
import org.gradle.api.JavaVersion
|
||||||
import org.gradle.api.Project
|
import org.gradle.api.Project
|
||||||
import org.gradle.api.tasks.Delete
|
import org.gradle.api.tasks.Delete
|
||||||
import org.gradle.api.tasks.testing.Test
|
import org.gradle.api.tasks.testing.Test
|
||||||
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||||
import com.android.build.gradle.internal.dsl.BaseAppModuleExtension
|
|
||||||
import org.gradle.api.tasks.wrapper.Wrapper
|
import org.gradle.api.tasks.wrapper.Wrapper
|
||||||
import org.gradle.kotlin.dsl.repositories
|
import org.gradle.kotlin.dsl.repositories
|
||||||
import org.gradle.kotlin.dsl.withType
|
import org.gradle.kotlin.dsl.withType
|
||||||
|
|
Loading…
Reference in a new issue