From 5e66d99c852ea67a88b650c03b0e8d55e83eccde Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 5 Dec 2020 06:07:18 +0530 Subject: [PATCH] Refactor package structure (#1233) * idea: default test runner to Gradle * Kick off package structure revamp * Reparent all classes under dev.msfjarvis.aps Signed-off-by: Harsh Shandilya --- .idea/gradle.xml | 2 +- .../password}/PasswordEntryAndroidTest.kt | 6 +- .../aps/util/settings}/MigrationsTest.kt | 10 ++- .../aps/util/totp}/UriTotpFinderTest.kt | 2 +- .../util/viewmodel}/StrictDomainRegexTest.kt | 2 +- .../autofill/oreo/ui/AutofillSmsActivity.kt | 2 +- app/src/main/AndroidManifest.xml | 46 +++++++------- .../msfjarvis/aps}/Application.kt | 13 ++-- .../aps/data/password}/PasswordEntry.kt | 8 +-- .../aps/data/password}/PasswordItem.kt | 4 +- .../aps/data/repo}/PasswordRepository.kt | 9 ++- .../adapters/PasswordItemRecyclerAdapter.kt | 13 ++-- .../ui/autofill}/AutofillDecryptActivity.kt | 18 +++--- .../ui/autofill}/AutofillFilterActivity.kt | 30 ++++----- .../AutofillPublisherChangedActivity.kt | 16 ++--- .../aps/ui/autofill}/AutofillSaveActivity.kt | 24 +++---- .../aps/ui/autofill}/PasswordViewHolder.kt | 4 +- .../aps/ui}/crypto/BasePgpActivity.kt | 18 +++--- .../aps/ui}/crypto/DecryptActivity.kt | 12 ++-- .../aps/ui}/crypto/GetKeyIdsActivity.kt | 2 +- .../ui}/crypto/PasswordCreationActivity.kt | 32 +++++----- .../aps}/ui/dialogs/BasicBottomSheet.kt | 10 +-- .../dialogs/FolderCreationDialogFragment.kt | 16 ++--- .../ui/dialogs/ItemCreationBottomSheet.kt | 14 ++--- .../PasswordGeneratorDialogFragment.kt | 14 ++--- .../XkPasswordGeneratorDialogFragment.kt | 12 ++-- .../ui/folderselect}/SelectFolderActivity.kt | 7 ++- .../ui/folderselect}/SelectFolderFragment.kt | 14 +++-- .../aps/ui/git/base}/BaseGitActivity.kt | 28 +++++---- .../aps/ui/git/config}/GitConfigActivity.kt | 63 ++++++++++--------- .../ui/git/config}/GitServerConfigActivity.kt | 22 ++++--- .../aps/ui}/git/log/GitLogActivity.kt | 8 +-- .../aps/ui}/git/log/GitLogAdapter.kt | 6 +- .../msfjarvis/aps/ui/main}/LaunchActivity.kt | 11 ++-- .../onboarding/activity/OnboardingActivity.kt | 4 +- .../ui/onboarding/fragments/CloneFragment.kt | 18 +++--- .../fragments/KeySelectionFragment.kt | 20 +++--- .../fragments/RepoLocationFragment.kt | 28 ++++----- .../onboarding/fragments/WelcomeFragment.kt | 12 ++-- .../aps/ui/passwords}/PasswordFragment.kt | 38 +++++------ .../aps/ui/passwords}/PasswordStore.kt | 51 ++++++++------- .../aps}/ui/proxy/ProxySelectorActivity.kt | 18 +++--- .../aps/ui/settings}/UserPreference.kt | 35 ++++++----- .../aps/ui}/sshkeygen/ShowSshKeyFragment.kt | 6 +- .../aps/ui}/sshkeygen/SshKeyGenActivity.kt | 16 ++--- .../aps/ui/util}/OnOffItemAnimator.kt | 2 +- .../aps/util/auth}/BiometricAuthenticator.kt | 4 +- .../autofill}/Api30AutofillResponseBuilder.kt | 12 ++-- .../aps/util/autofill}/AutofillMatcher.kt | 4 +- .../aps/util/autofill}/AutofillPreferences.kt | 7 ++- .../util/autofill}/AutofillResponseBuilder.kt | 14 +++-- .../aps/util/autofill}/AutofillViewUtils.kt | 8 +-- .../aps/util/extensions}/AndroidExtensions.kt | 7 ++- .../aps/util/extensions}/Extensions.kt | 3 +- .../util/extensions}/FragmentExtensions.kt | 4 +- .../FragmentViewBindingDelegate.kt | 2 +- .../msfjarvis/aps/util}/git/ErrorMessages.kt | 6 +- .../aps/util}/git/GitCommandExecutor.kt | 14 ++--- .../msfjarvis/aps/util/git}/GitCommit.kt | 2 +- .../msfjarvis/aps/util/git}/GitLogModel.kt | 8 +-- .../util}/git/operation/BreakOutOfDetached.kt | 6 +- .../aps/util}/git/operation/CloneOperation.kt | 4 +- .../util}/git/operation/CredentialFinder.kt | 14 ++--- .../aps/util}/git/operation/GitOperation.kt | 24 +++---- .../aps/util}/git/operation/PullOperation.kt | 4 +- .../aps/util}/git/operation/PushOperation.kt | 4 +- .../git/operation/ResetToRemoteOperation.kt | 4 +- .../aps/util}/git/operation/SyncOperation.kt | 4 +- .../git/sshj/ContinuationContainerActivity.kt | 2 +- .../util}/git/sshj/OpenKeychainKeyProvider.kt | 8 +-- .../OpenKeychainWrappedKeyAlgorithmFactory.kt | 2 +- .../msfjarvis/aps/util}/git/sshj/SshKey.kt | 14 ++--- .../aps/util}/git/sshj/SshjConfig.kt | 3 +- .../aps/util}/git/sshj/SshjSessionFactory.kt | 15 ++--- .../msfjarvis/aps/util/proxy}/ProxyUtils.kt | 4 +- .../aps/util}/pwgen/PasswordGenerator.kt | 10 +-- .../aps/util}/pwgen/RandomNumberGenerator.kt | 2 +- .../util}/pwgen/RandomPasswordGenerator.kt | 4 +- .../util}/pwgen/RandomPhonemesGenerator.kt | 4 +- .../aps/util}/pwgenxkpwd/CapsType.kt | 2 +- .../aps/util}/pwgenxkpwd/PasswordBuilder.kt | 12 ++-- .../aps/util}/pwgenxkpwd/XkpwdDictionary.kt | 10 +-- .../aps/util/services}/ClipboardService.kt | 9 +-- .../aps/util/services}/OreoAutofillService.kt | 29 +++++---- .../util/services}/PasswordExportService.kt | 5 +- .../aps/util/settings}/GitSettings.kt | 15 +++-- .../aps/util/settings}/Migrations.kt | 11 ++-- .../aps/util/settings}/PasswordSortOrder.kt | 7 ++- .../aps/util/settings}/PreferenceKeys.kt | 2 +- .../msfjarvis/aps/util/totp}/Otp.kt | 2 +- .../msfjarvis/aps/util/totp}/TotpFinder.kt | 2 +- .../msfjarvis/aps/util/totp}/UriTotpFinder.kt | 2 +- .../SearchableRepositoryViewModel.kt | 16 ++--- .../main/res/layout/activity_git_clone.xml | 2 +- .../main/res/layout/activity_git_config.xml | 2 +- app/src/main/res/layout/activity_git_log.xml | 2 +- .../main/res/layout/activity_onboarding.xml | 2 +- .../layout/activity_oreo_autofill_filter.xml | 2 +- ...tivity_oreo_autofill_publisher_changed.xml | 2 +- app/src/main/res/layout/decrypt_layout.xml | 2 +- .../res/layout/password_creation_activity.xml | 2 +- .../res/layout/password_recycler_view.xml | 2 +- app/src/main/res/menu/pgp_handler.xml | 2 +- .../res/menu/pgp_handler_new_password.xml | 2 +- .../res/menu/pgp_handler_select_folder.xml | 2 +- .../autofill/oreo/ui/AutofillSmsActivity.kt | 8 +-- .../res/layout/activity_oreo_autofill_sms.xml | 2 +- .../aps/data/password}/PasswordEntryTest.kt | 6 +- .../msfjarvis/aps/util/totp}/OtpTest.kt | 2 +- 109 files changed, 589 insertions(+), 550 deletions(-) rename app/src/androidTest/java/{com/zeapo/pwdstore/model => dev/msfjarvis/aps/data/password}/PasswordEntryAndroidTest.kt (97%) rename app/src/androidTest/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util/settings}/MigrationsTest.kt (94%) rename app/src/androidTest/java/{com/zeapo/pwdstore/utils => dev/msfjarvis/aps/util/totp}/UriTotpFinderTest.kt (97%) rename app/src/androidTest/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util/viewmodel}/StrictDomainRegexTest.kt (98%) rename app/src/free/java/{com/zeapo/pwdstore => dev/msfjarvis/aps}/autofill/oreo/ui/AutofillSmsActivity.kt (94%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps}/Application.kt (84%) rename app/src/main/java/{com/zeapo/pwdstore/model => dev/msfjarvis/aps/data/password}/PasswordEntry.kt (96%) rename app/src/main/java/{com/zeapo/pwdstore/utils => dev/msfjarvis/aps/data/password}/PasswordItem.kt (95%) rename app/src/main/java/{com/zeapo/pwdstore/utils => dev/msfjarvis/aps/data/repo}/PasswordRepository.kt (95%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps}/ui/adapters/PasswordItemRecyclerAdapter.kt (91%) rename app/src/main/java/{com/zeapo/pwdstore/autofill/oreo/ui => dev/msfjarvis/aps/ui/autofill}/AutofillDecryptActivity.kt (94%) rename app/src/main/java/{com/zeapo/pwdstore/autofill/oreo/ui => dev/msfjarvis/aps/ui/autofill}/AutofillFilterActivity.kt (90%) rename app/src/main/java/{com/zeapo/pwdstore/autofill/oreo/ui => dev/msfjarvis/aps/ui/autofill}/AutofillPublisherChangedActivity.kt (90%) rename app/src/main/java/{com/zeapo/pwdstore/autofill/oreo/ui => dev/msfjarvis/aps/ui/autofill}/AutofillSaveActivity.kt (88%) rename app/src/main/java/{com/zeapo/pwdstore/autofill/oreo/ui => dev/msfjarvis/aps/ui/autofill}/PasswordViewHolder.kt (85%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/ui}/crypto/BasePgpActivity.kt (96%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/ui}/crypto/DecryptActivity.kt (97%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/ui}/crypto/GetKeyIdsActivity.kt (98%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/ui}/crypto/PasswordCreationActivity.kt (96%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps}/ui/dialogs/BasicBottomSheet.kt (96%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps}/ui/dialogs/FolderCreationDialogFragment.kt (91%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps}/ui/dialogs/ItemCreationBottomSheet.kt (86%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps}/ui/dialogs/PasswordGeneratorDialogFragment.kt (92%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps}/ui/dialogs/XkPasswordGeneratorDialogFragment.kt (95%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/ui/folderselect}/SelectFolderActivity.kt (88%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/ui/folderselect}/SelectFolderFragment.kt (85%) rename app/src/main/java/{com/zeapo/pwdstore/git => dev/msfjarvis/aps/ui/git/base}/BaseGitActivity.kt (87%) rename app/src/main/java/{com/zeapo/pwdstore/git => dev/msfjarvis/aps/ui/git/config}/GitConfigActivity.kt (74%) rename app/src/main/java/{com/zeapo/pwdstore/git => dev/msfjarvis/aps/ui/git/config}/GitServerConfigActivity.kt (95%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/ui}/git/log/GitLogActivity.kt (86%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/ui}/git/log/GitLogAdapter.kt (89%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/ui/main}/LaunchActivity.kt (87%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps}/ui/onboarding/activity/OnboardingActivity.kt (88%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps}/ui/onboarding/fragments/CloneFragment.kt (77%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps}/ui/onboarding/fragments/KeySelectionFragment.kt (81%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps}/ui/onboarding/fragments/RepoLocationFragment.kt (90%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps}/ui/onboarding/fragments/WelcomeFragment.kt (72%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/ui/passwords}/PasswordFragment.kt (92%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/ui/passwords}/PasswordStore.kt (94%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps}/ui/proxy/ProxySelectorActivity.kt (84%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/ui/settings}/UserPreference.kt (96%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/ui}/sshkeygen/ShowSshKeyFragment.kt (92%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/ui}/sshkeygen/SshKeyGenActivity.kt (94%) rename app/src/main/java/{com/zeapo/pwdstore/ui => dev/msfjarvis/aps/ui/util}/OnOffItemAnimator.kt (98%) rename app/src/main/java/{com/zeapo/pwdstore/utils => dev/msfjarvis/aps/util/auth}/BiometricAuthenticator.kt (98%) rename app/src/main/java/{com/zeapo/pwdstore/autofill/oreo => dev/msfjarvis/aps/util/autofill}/Api30AutofillResponseBuilder.kt (95%) rename app/src/main/java/{com/zeapo/pwdstore/autofill/oreo => dev/msfjarvis/aps/util/autofill}/AutofillMatcher.kt (99%) rename app/src/main/java/{com/zeapo/pwdstore/autofill/oreo => dev/msfjarvis/aps/util/autofill}/AutofillPreferences.kt (96%) rename app/src/main/java/{com/zeapo/pwdstore/autofill/oreo => dev/msfjarvis/aps/util/autofill}/AutofillResponseBuilder.kt (95%) rename app/src/main/java/{com/zeapo/pwdstore/autofill/oreo => dev/msfjarvis/aps/util/autofill}/AutofillViewUtils.kt (95%) rename app/src/main/java/{com/zeapo/pwdstore/utils => dev/msfjarvis/aps/util/extensions}/AndroidExtensions.kt (96%) rename app/src/main/java/{com/zeapo/pwdstore/utils => dev/msfjarvis/aps/util/extensions}/Extensions.kt (96%) rename app/src/main/java/{com/zeapo/pwdstore/utils => dev/msfjarvis/aps/util/extensions}/FragmentExtensions.kt (94%) rename app/src/main/java/{com/zeapo/pwdstore/utils => dev/msfjarvis/aps/util/extensions}/FragmentViewBindingDelegate.kt (98%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/ErrorMessages.kt (95%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/GitCommandExecutor.kt (93%) rename app/src/main/java/{com/zeapo/pwdstore/git/log => dev/msfjarvis/aps/util/git}/GitCommit.kt (94%) rename app/src/main/java/{com/zeapo/pwdstore/git/log => dev/msfjarvis/aps/util/git}/GitLogModel.kt (90%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/operation/BreakOutOfDetached.kt (90%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/operation/CloneOperation.kt (84%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/operation/CredentialFinder.kt (91%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/operation/GitOperation.kt (93%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/operation/PullOperation.kt (92%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/operation/PushOperation.kt (77%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/operation/ResetToRemoteOperation.kt (88%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/operation/SyncOperation.kt (86%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/sshj/ContinuationContainerActivity.kt (96%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/sshj/OpenKeychainKeyProvider.kt (97%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/sshj/OpenKeychainWrappedKeyAlgorithmFactory.kt (98%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/sshj/SshKey.kt (97%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/sshj/SshjConfig.kt (99%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/git/sshj/SshjSessionFactory.kt (95%) rename app/src/main/java/{com/zeapo/pwdstore/utils => dev/msfjarvis/aps/util/proxy}/ProxyUtils.kt (96%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/pwgen/PasswordGenerator.kt (96%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/pwgen/RandomNumberGenerator.kt (96%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/pwgen/RandomPasswordGenerator.kt (95%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/pwgen/RandomPhonemesGenerator.kt (98%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/pwgenxkpwd/CapsType.kt (83%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/pwgenxkpwd/PasswordBuilder.kt (93%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util}/pwgenxkpwd/XkpwdDictionary.kt (82%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util/services}/ClipboardService.kt (96%) rename app/src/main/java/{com/zeapo/pwdstore/autofill/oreo => dev/msfjarvis/aps/util/services}/OreoAutofillService.kt (87%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util/services}/PasswordExportService.kt (97%) rename app/src/main/java/{com/zeapo/pwdstore/git/config => dev/msfjarvis/aps/util/settings}/GitSettings.kt (94%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util/settings}/Migrations.kt (94%) rename app/src/main/java/{com/zeapo/pwdstore/utils => dev/msfjarvis/aps/util/settings}/PasswordSortOrder.kt (87%) rename app/src/main/java/{com/zeapo/pwdstore/utils => dev/msfjarvis/aps/util/settings}/PreferenceKeys.kt (98%) rename app/src/main/java/{com/zeapo/pwdstore/utils => dev/msfjarvis/aps/util/totp}/Otp.kt (98%) rename app/src/main/java/{com/zeapo/pwdstore/utils => dev/msfjarvis/aps/util/totp}/TotpFinder.kt (95%) rename app/src/main/java/{com/zeapo/pwdstore/utils => dev/msfjarvis/aps/util/totp}/UriTotpFinder.kt (98%) rename app/src/main/java/{com/zeapo/pwdstore => dev/msfjarvis/aps/util/viewmodel}/SearchableRepositoryViewModel.kt (97%) rename app/src/nonFree/java/{com/zeapo/pwdstore => dev/msfjarvis/aps}/autofill/oreo/ui/AutofillSmsActivity.kt (96%) rename app/src/test/java/{com/zeapo/pwdstore/model => dev/msfjarvis/aps/data/password}/PasswordEntryTest.kt (98%) rename app/src/test/java/{com/zeapo/pwdstore/utils => dev/msfjarvis/aps/util/totp}/OtpTest.kt (98%) diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 9f4d5198..12562841 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -4,7 +4,7 @@