From e2e7e349bbfbd5c5749ec8ba1558954212cfa90b Mon Sep 17 00:00:00 2001 From: MrLetsplay Date: Sun, 1 Oct 2023 19:40:17 +0200 Subject: [PATCH] Rename everything --- .idea/.name | 2 +- app/build.gradle | 4 +- .../ExampleInstrumentedTest.java | 2 +- .../BaseActivity.java | 8 ++-- .../IntroActivity.java | 8 ++-- .../MainActivity.java | 42 ++++++++--------- .../backup/BackupData.java | 12 ++--- .../backup/BackupGroup.java | 2 +- .../backup/BackupUtil.java | 14 +++--- .../crypto/BiometricKey.java | 2 +- .../crypto/Crypto.java | 4 +- .../crypto/CryptoException.java | 2 +- .../crypto/CryptoParameters.java | 2 +- .../crypto/CryptoResult.java | 2 +- .../fragment/AboutFragment.java | 6 +-- .../fragment/EditOTPFragment.java | 24 +++++----- .../fragment/GroupFragment.java | 24 +++++----- .../fragment/HomeFragment.java | 6 +-- .../fragment/MenuDrawerFragment.java | 22 ++++----- .../fragment/NamedFragment.java | 2 +- .../fragment/PickIconDrawerFragment.java | 10 ++-- .../fragment/SettingsFragment.java | 46 +++++++++---------- .../grouplist/GroupListAdapter.java | 6 +-- .../grouplist/GroupListItem.java | 6 +-- .../icon/Icon.java | 2 +- .../icon/IconListAdapter.java | 8 ++-- .../icon/IconMetadata.java | 2 +- .../icon/IconPack.java | 2 +- .../icon/IconPackException.java | 2 +- .../icon/IconPackItem.java | 4 +- .../icon/IconPackListAdapter.java | 8 ++-- .../icon/IconPackMetadata.java | 2 +- .../icon/IconUtil.java | 10 ++-- .../model/OTPData.java | 2 +- .../model/OTPMigrationPart.java | 2 +- .../otplist/OTPListAdapter.java | 16 +++---- .../otplist/OTPListItem.java | 10 ++-- .../scanner/DetectedCode.java | 6 +-- .../scanner/QRScanner.java | 6 +-- .../scanner/QRScannerActivity.java | 14 +++--- .../scanner/QRScannerContract.java | 4 +- .../scanner/ScannerResult.java | 4 +- .../unlock/UnlockActivity.java | 26 +++++------ .../unlock/UnlockContract.java | 2 +- .../urihandler/URIHandlerActivity.java | 22 ++++----- .../util/Appearance.java | 4 +- .../util/BackupException.java | 2 +- .../util/BiometricUtil.java | 4 +- .../util/DialogCallback.java | 2 +- .../util/DialogUtil.java | 20 ++++---- .../util/IOUtil.java | 2 +- .../util/NavigationUtil.java | 8 ++-- .../util/OTPDatabase.java | 12 ++--- .../util/OTPDatabaseException.java | 2 +- .../util/OTPParser.java | 8 ++-- .../util/SettingsUtil.java | 8 ++-- .../util/StyledDialogBuilder.java | 4 +- .../util/Theme.java | 4 +- .../util/ThemeUtil.java | 4 +- app/src/main/proto/OTPMigration.proto | 2 +- app/src/main/res/menu/menu_main.xml | 2 +- .../ExampleUnitTest.java | 2 +- settings.gradle | 2 +- 63 files changed, 252 insertions(+), 252 deletions(-) rename app/src/androidTest/java/com/cringe_studios/{cringe_authenticator => code_guard}/ExampleInstrumentedTest.java (93%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/BaseActivity.java (86%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/IntroActivity.java (90%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/MainActivity.java (90%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/backup/BackupData.java (76%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/backup/BackupGroup.java (87%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/backup/BackupUtil.java (88%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/crypto/BiometricKey.java (89%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/crypto/Crypto.java (98%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/crypto/CryptoException.java (85%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/crypto/CryptoParameters.java (97%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/crypto/CryptoResult.java (85%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/fragment/AboutFragment.java (78%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/fragment/EditOTPFragment.java (93%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/fragment/GroupFragment.java (88%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/fragment/HomeFragment.java (82%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/fragment/MenuDrawerFragment.java (85%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/fragment/NamedFragment.java (70%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/fragment/PickIconDrawerFragment.java (83%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/fragment/SettingsFragment.java (91%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/grouplist/GroupListAdapter.java (96%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/grouplist/GroupListItem.java (88%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/icon/Icon.java (86%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/icon/IconListAdapter.java (93%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/icon/IconMetadata.java (92%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/icon/IconPack.java (92%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/icon/IconPackException.java (86%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/icon/IconPackItem.java (80%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/icon/IconPackListAdapter.java (84%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/icon/IconPackMetadata.java (88%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/icon/IconUtil.java (97%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/model/OTPData.java (98%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/model/OTPMigrationPart.java (90%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/otplist/OTPListAdapter.java (93%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/otplist/OTPListItem.java (90%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/scanner/DetectedCode.java (76%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/scanner/QRScanner.java (92%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/scanner/QRScannerActivity.java (94%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/scanner/QRScannerContract.java (88%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/scanner/ScannerResult.java (82%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/unlock/UnlockActivity.java (78%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/unlock/UnlockContract.java (91%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/urihandler/URIHandlerActivity.java (76%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/util/Appearance.java (88%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/util/BackupException.java (86%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/util/BiometricUtil.java (94%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/util/DialogCallback.java (53%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/util/DialogUtil.java (96%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/util/IOUtil.java (95%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/util/NavigationUtil.java (93%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/util/OTPDatabase.java (94%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/util/OTPDatabaseException.java (87%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/util/OTPParser.java (96%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/util/SettingsUtil.java (97%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/util/StyledDialogBuilder.java (90%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/util/Theme.java (94%) rename app/src/main/java/com/cringe_studios/{cringe_authenticator => code_guard}/util/ThemeUtil.java (94%) rename app/src/test/java/com/cringe_studios/{cringe_authenticator => code_guard}/ExampleUnitTest.java (87%) diff --git a/.idea/.name b/.idea/.name index 4d544dc..555759a 100644 --- a/.idea/.name +++ b/.idea/.name @@ -1 +1 @@ -Cringe Authenticator \ No newline at end of file +Code Guard \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index d29e970..2917da1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -4,11 +4,11 @@ plugins { } android { - namespace 'com.cringe_studios.cringe_authenticator' + namespace 'com.cringe_studios.code_guard' compileSdk 34 defaultConfig { - applicationId "com.cringe_studios.cringe_authenticator" + applicationId "com.cringe_studios.code_guard" minSdk 21 targetSdk 34 versionCode 1 diff --git a/app/src/androidTest/java/com/cringe_studios/cringe_authenticator/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/cringe_studios/code_guard/ExampleInstrumentedTest.java similarity index 93% rename from app/src/androidTest/java/com/cringe_studios/cringe_authenticator/ExampleInstrumentedTest.java rename to app/src/androidTest/java/com/cringe_studios/code_guard/ExampleInstrumentedTest.java index 796c9eb..8a68aee 100644 --- a/app/src/androidTest/java/com/cringe_studios/cringe_authenticator/ExampleInstrumentedTest.java +++ b/app/src/androidTest/java/com/cringe_studios/code_guard/ExampleInstrumentedTest.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator; +package com.cringe_studios.code_guard; import android.content.Context; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/BaseActivity.java b/app/src/main/java/com/cringe_studios/code_guard/BaseActivity.java similarity index 86% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/BaseActivity.java rename to app/src/main/java/com/cringe_studios/code_guard/BaseActivity.java index 85b7b5c..4f9ff89 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/BaseActivity.java +++ b/app/src/main/java/com/cringe_studios/code_guard/BaseActivity.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator; +package com.cringe_studios.code_guard; import android.content.res.Configuration; import android.os.Bundle; @@ -8,9 +8,9 @@ import androidx.activity.result.ActivityResultLauncher; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; -import com.cringe_studios.cringe_authenticator.unlock.UnlockContract; -import com.cringe_studios.cringe_authenticator.util.SettingsUtil; -import com.cringe_studios.cringe_authenticator.util.ThemeUtil; +import com.cringe_studios.code_guard.unlock.UnlockContract; +import com.cringe_studios.code_guard.util.SettingsUtil; +import com.cringe_studios.code_guard.util.ThemeUtil; import java.util.Locale; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/IntroActivity.java b/app/src/main/java/com/cringe_studios/code_guard/IntroActivity.java similarity index 90% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/IntroActivity.java rename to app/src/main/java/com/cringe_studios/code_guard/IntroActivity.java index eb38b6f..f79470d 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/IntroActivity.java +++ b/app/src/main/java/com/cringe_studios/code_guard/IntroActivity.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator; +package com.cringe_studios.code_guard; import android.content.Intent; import android.media.MediaPlayer; @@ -7,9 +7,9 @@ import android.os.Bundle; import android.view.ViewGroup; import android.widget.Toast; -import com.cringe_studios.cringe_authenticator.databinding.ActivityIntroBinding; -import com.cringe_studios.cringe_authenticator.unlock.UnlockActivity; -import com.cringe_studios.cringe_authenticator.util.SettingsUtil; +import com.cringe_studios.code_guard.databinding.ActivityIntroBinding; +import com.cringe_studios.code_guard.unlock.UnlockActivity; +import com.cringe_studios.code_guard.util.SettingsUtil; public class IntroActivity extends BaseActivity { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/MainActivity.java b/app/src/main/java/com/cringe_studios/code_guard/MainActivity.java similarity index 90% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/MainActivity.java rename to app/src/main/java/com/cringe_studios/code_guard/MainActivity.java index a6cf6dd..e6860a5 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/MainActivity.java +++ b/app/src/main/java/com/cringe_studios/code_guard/MainActivity.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator; +package com.cringe_studios.code_guard; import android.net.Uri; import android.os.Bundle; @@ -18,26 +18,26 @@ import androidx.appcompat.app.AlertDialog; import androidx.core.util.Consumer; import androidx.fragment.app.Fragment; -import com.cringe_studios.cringe_authenticator.databinding.ActivityMainBinding; -import com.cringe_studios.cringe_authenticator.databinding.DialogInputCodeChoiceBinding; -import com.cringe_studios.cringe_authenticator.fragment.AboutFragment; -import com.cringe_studios.cringe_authenticator.fragment.EditOTPFragment; -import com.cringe_studios.cringe_authenticator.fragment.GroupFragment; -import com.cringe_studios.cringe_authenticator.fragment.HomeFragment; -import com.cringe_studios.cringe_authenticator.fragment.NamedFragment; -import com.cringe_studios.cringe_authenticator.fragment.SettingsFragment; -import com.cringe_studios.cringe_authenticator.icon.IconPackException; -import com.cringe_studios.cringe_authenticator.icon.IconPackMetadata; -import com.cringe_studios.cringe_authenticator.icon.IconUtil; -import com.cringe_studios.cringe_authenticator.model.OTPData; -import com.cringe_studios.cringe_authenticator.scanner.QRScanner; -import com.cringe_studios.cringe_authenticator.scanner.QRScannerContract; -import com.cringe_studios.cringe_authenticator.util.DialogUtil; -import com.cringe_studios.cringe_authenticator.util.NavigationUtil; -import com.cringe_studios.cringe_authenticator.util.OTPDatabase; -import com.cringe_studios.cringe_authenticator.util.SettingsUtil; -import com.cringe_studios.cringe_authenticator.util.StyledDialogBuilder; -import com.cringe_studios.cringe_authenticator.util.ThemeUtil; +import com.cringe_studios.code_guard.databinding.ActivityMainBinding; +import com.cringe_studios.code_guard.databinding.DialogInputCodeChoiceBinding; +import com.cringe_studios.code_guard.fragment.AboutFragment; +import com.cringe_studios.code_guard.fragment.EditOTPFragment; +import com.cringe_studios.code_guard.fragment.GroupFragment; +import com.cringe_studios.code_guard.fragment.HomeFragment; +import com.cringe_studios.code_guard.fragment.NamedFragment; +import com.cringe_studios.code_guard.fragment.SettingsFragment; +import com.cringe_studios.code_guard.icon.IconPackException; +import com.cringe_studios.code_guard.icon.IconPackMetadata; +import com.cringe_studios.code_guard.icon.IconUtil; +import com.cringe_studios.code_guard.model.OTPData; +import com.cringe_studios.code_guard.scanner.QRScanner; +import com.cringe_studios.code_guard.scanner.QRScannerContract; +import com.cringe_studios.code_guard.util.DialogUtil; +import com.cringe_studios.code_guard.util.NavigationUtil; +import com.cringe_studios.code_guard.util.OTPDatabase; +import com.cringe_studios.code_guard.util.SettingsUtil; +import com.cringe_studios.code_guard.util.StyledDialogBuilder; +import com.cringe_studios.code_guard.util.ThemeUtil; import com.cringe_studios.cringe_authenticator_library.OTPType; import com.google.mlkit.vision.common.InputImage; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/backup/BackupData.java b/app/src/main/java/com/cringe_studios/code_guard/backup/BackupData.java similarity index 76% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/backup/BackupData.java rename to app/src/main/java/com/cringe_studios/code_guard/backup/BackupData.java index dc973d3..67d3867 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/backup/BackupData.java +++ b/app/src/main/java/com/cringe_studios/code_guard/backup/BackupData.java @@ -1,12 +1,12 @@ -package com.cringe_studios.cringe_authenticator.backup; +package com.cringe_studios.code_guard.backup; import android.util.Base64; -import com.cringe_studios.cringe_authenticator.crypto.CryptoException; -import com.cringe_studios.cringe_authenticator.crypto.CryptoParameters; -import com.cringe_studios.cringe_authenticator.util.BackupException; -import com.cringe_studios.cringe_authenticator.util.OTPDatabase; -import com.cringe_studios.cringe_authenticator.util.OTPDatabaseException; +import com.cringe_studios.code_guard.crypto.CryptoException; +import com.cringe_studios.code_guard.crypto.CryptoParameters; +import com.cringe_studios.code_guard.util.BackupException; +import com.cringe_studios.code_guard.util.OTPDatabase; +import com.cringe_studios.code_guard.util.OTPDatabaseException; import javax.crypto.SecretKey; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/backup/BackupGroup.java b/app/src/main/java/com/cringe_studios/code_guard/backup/BackupGroup.java similarity index 87% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/backup/BackupGroup.java rename to app/src/main/java/com/cringe_studios/code_guard/backup/BackupGroup.java index 053690c..73ce964 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/backup/BackupGroup.java +++ b/app/src/main/java/com/cringe_studios/code_guard/backup/BackupGroup.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.backup; +package com.cringe_studios.code_guard.backup; public class BackupGroup { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/backup/BackupUtil.java b/app/src/main/java/com/cringe_studios/code_guard/backup/BackupUtil.java similarity index 88% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/backup/BackupUtil.java rename to app/src/main/java/com/cringe_studios/code_guard/backup/BackupUtil.java index 837d8ea..22916a2 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/backup/BackupUtil.java +++ b/app/src/main/java/com/cringe_studios/code_guard/backup/BackupUtil.java @@ -1,15 +1,15 @@ -package com.cringe_studios.cringe_authenticator.backup; +package com.cringe_studios.code_guard.backup; import android.content.Context; import android.net.Uri; import android.util.Base64; -import com.cringe_studios.cringe_authenticator.crypto.CryptoException; -import com.cringe_studios.cringe_authenticator.crypto.CryptoParameters; -import com.cringe_studios.cringe_authenticator.util.BackupException; -import com.cringe_studios.cringe_authenticator.util.IOUtil; -import com.cringe_studios.cringe_authenticator.util.OTPDatabase; -import com.cringe_studios.cringe_authenticator.util.SettingsUtil; +import com.cringe_studios.code_guard.crypto.CryptoException; +import com.cringe_studios.code_guard.crypto.CryptoParameters; +import com.cringe_studios.code_guard.util.BackupException; +import com.cringe_studios.code_guard.util.IOUtil; +import com.cringe_studios.code_guard.util.OTPDatabase; +import com.cringe_studios.code_guard.util.SettingsUtil; import com.google.gson.JsonSyntaxException; import java.io.IOException; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/BiometricKey.java b/app/src/main/java/com/cringe_studios/code_guard/crypto/BiometricKey.java similarity index 89% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/BiometricKey.java rename to app/src/main/java/com/cringe_studios/code_guard/crypto/BiometricKey.java index ea70900..28929b6 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/BiometricKey.java +++ b/app/src/main/java/com/cringe_studios/code_guard/crypto/BiometricKey.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.crypto; +package com.cringe_studios.code_guard.crypto; public class BiometricKey { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/Crypto.java b/app/src/main/java/com/cringe_studios/code_guard/crypto/Crypto.java similarity index 98% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/Crypto.java rename to app/src/main/java/com/cringe_studios/code_guard/crypto/Crypto.java index 1cc277e..35f5701 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/Crypto.java +++ b/app/src/main/java/com/cringe_studios/code_guard/crypto/Crypto.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.crypto; +package com.cringe_studios.code_guard.crypto; import android.os.Build; import android.security.keystore.KeyGenParameterSpec; @@ -6,7 +6,7 @@ import android.security.keystore.KeyProperties; import androidx.annotation.RequiresApi; -import com.cringe_studios.cringe_authenticator.util.OTPDatabase; +import com.cringe_studios.code_guard.util.OTPDatabase; import org.bouncycastle.crypto.generators.Argon2BytesGenerator; import org.bouncycastle.crypto.params.Argon2Parameters; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/CryptoException.java b/app/src/main/java/com/cringe_studios/code_guard/crypto/CryptoException.java similarity index 85% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/CryptoException.java rename to app/src/main/java/com/cringe_studios/code_guard/crypto/CryptoException.java index 2a0b41d..41760c6 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/CryptoException.java +++ b/app/src/main/java/com/cringe_studios/code_guard/crypto/CryptoException.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.crypto; +package com.cringe_studios.code_guard.crypto; public class CryptoException extends Exception { public CryptoException() { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/CryptoParameters.java b/app/src/main/java/com/cringe_studios/code_guard/crypto/CryptoParameters.java similarity index 97% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/CryptoParameters.java rename to app/src/main/java/com/cringe_studios/code_guard/crypto/CryptoParameters.java index 269207f..fa81a57 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/CryptoParameters.java +++ b/app/src/main/java/com/cringe_studios/code_guard/crypto/CryptoParameters.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.crypto; +package com.cringe_studios.code_guard.crypto; import org.bouncycastle.crypto.params.Argon2Parameters; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/CryptoResult.java b/app/src/main/java/com/cringe_studios/code_guard/crypto/CryptoResult.java similarity index 85% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/CryptoResult.java rename to app/src/main/java/com/cringe_studios/code_guard/crypto/CryptoResult.java index 7f60545..ad0dd8e 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/CryptoResult.java +++ b/app/src/main/java/com/cringe_studios/code_guard/crypto/CryptoResult.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.crypto; +package com.cringe_studios.code_guard.crypto; public class CryptoResult { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/AboutFragment.java b/app/src/main/java/com/cringe_studios/code_guard/fragment/AboutFragment.java similarity index 78% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/AboutFragment.java rename to app/src/main/java/com/cringe_studios/code_guard/fragment/AboutFragment.java index 5fee034..665fb2a 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/AboutFragment.java +++ b/app/src/main/java/com/cringe_studios/code_guard/fragment/AboutFragment.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.fragment; +package com.cringe_studios.code_guard.fragment; import android.os.Bundle; import android.view.LayoutInflater; @@ -8,8 +8,8 @@ import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import com.cringe_studios.cringe_authenticator.R; -import com.cringe_studios.cringe_authenticator.databinding.FragmentAboutBinding; +import com.cringe_studios.code_guard.R; +import com.cringe_studios.code_guard.databinding.FragmentAboutBinding; public class AboutFragment extends NamedFragment { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/EditOTPFragment.java b/app/src/main/java/com/cringe_studios/code_guard/fragment/EditOTPFragment.java similarity index 93% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/EditOTPFragment.java rename to app/src/main/java/com/cringe_studios/code_guard/fragment/EditOTPFragment.java index 5e45c44..0842cfd 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/EditOTPFragment.java +++ b/app/src/main/java/com/cringe_studios/code_guard/fragment/EditOTPFragment.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.fragment; +package com.cringe_studios.code_guard.fragment; import android.graphics.Bitmap; import android.graphics.BitmapFactory; @@ -19,17 +19,17 @@ import androidx.annotation.Nullable; import androidx.core.util.Consumer; import androidx.exifinterface.media.ExifInterface; -import com.cringe_studios.cringe_authenticator.MainActivity; -import com.cringe_studios.cringe_authenticator.R; -import com.cringe_studios.cringe_authenticator.databinding.FragmentEditOtpBinding; -import com.cringe_studios.cringe_authenticator.icon.IconPack; -import com.cringe_studios.cringe_authenticator.icon.IconUtil; -import com.cringe_studios.cringe_authenticator.model.OTPData; -import com.cringe_studios.cringe_authenticator.util.DialogUtil; -import com.cringe_studios.cringe_authenticator.util.IOUtil; -import com.cringe_studios.cringe_authenticator.util.NavigationUtil; -import com.cringe_studios.cringe_authenticator.util.SettingsUtil; -import com.cringe_studios.cringe_authenticator.util.StyledDialogBuilder; +import com.cringe_studios.code_guard.MainActivity; +import com.cringe_studios.code_guard.R; +import com.cringe_studios.code_guard.databinding.FragmentEditOtpBinding; +import com.cringe_studios.code_guard.icon.IconPack; +import com.cringe_studios.code_guard.icon.IconUtil; +import com.cringe_studios.code_guard.model.OTPData; +import com.cringe_studios.code_guard.util.DialogUtil; +import com.cringe_studios.code_guard.util.IOUtil; +import com.cringe_studios.code_guard.util.NavigationUtil; +import com.cringe_studios.code_guard.util.SettingsUtil; +import com.cringe_studios.code_guard.util.StyledDialogBuilder; import com.cringe_studios.cringe_authenticator_library.OTPAlgorithm; import com.cringe_studios.cringe_authenticator_library.OTPType; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/GroupFragment.java b/app/src/main/java/com/cringe_studios/code_guard/fragment/GroupFragment.java similarity index 88% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/GroupFragment.java rename to app/src/main/java/com/cringe_studios/code_guard/fragment/GroupFragment.java index 21f771a..43f9f77 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/GroupFragment.java +++ b/app/src/main/java/com/cringe_studios/code_guard/fragment/GroupFragment.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.fragment; +package com.cringe_studios.code_guard.fragment; import android.os.Bundle; import android.os.Handler; @@ -10,17 +10,17 @@ import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import com.cringe_studios.cringe_authenticator.R; -import com.cringe_studios.cringe_authenticator.crypto.CryptoException; -import com.cringe_studios.cringe_authenticator.databinding.FragmentGroupBinding; -import com.cringe_studios.cringe_authenticator.model.OTPData; -import com.cringe_studios.cringe_authenticator.otplist.OTPListAdapter; -import com.cringe_studios.cringe_authenticator.otplist.OTPListItem; -import com.cringe_studios.cringe_authenticator.util.DialogUtil; -import com.cringe_studios.cringe_authenticator.util.NavigationUtil; -import com.cringe_studios.cringe_authenticator.util.OTPDatabase; -import com.cringe_studios.cringe_authenticator.util.OTPDatabaseException; -import com.cringe_studios.cringe_authenticator.util.SettingsUtil; +import com.cringe_studios.code_guard.R; +import com.cringe_studios.code_guard.crypto.CryptoException; +import com.cringe_studios.code_guard.databinding.FragmentGroupBinding; +import com.cringe_studios.code_guard.model.OTPData; +import com.cringe_studios.code_guard.otplist.OTPListAdapter; +import com.cringe_studios.code_guard.otplist.OTPListItem; +import com.cringe_studios.code_guard.util.DialogUtil; +import com.cringe_studios.code_guard.util.NavigationUtil; +import com.cringe_studios.code_guard.util.OTPDatabase; +import com.cringe_studios.code_guard.util.OTPDatabaseException; +import com.cringe_studios.code_guard.util.SettingsUtil; import java.util.List; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/HomeFragment.java b/app/src/main/java/com/cringe_studios/code_guard/fragment/HomeFragment.java similarity index 82% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/HomeFragment.java rename to app/src/main/java/com/cringe_studios/code_guard/fragment/HomeFragment.java index 6e1eeaf..3705d29 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/HomeFragment.java +++ b/app/src/main/java/com/cringe_studios/code_guard/fragment/HomeFragment.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.fragment; +package com.cringe_studios.code_guard.fragment; import android.os.Bundle; import android.view.LayoutInflater; @@ -7,8 +7,8 @@ import android.view.ViewGroup; import androidx.annotation.NonNull; -import com.cringe_studios.cringe_authenticator.R; -import com.cringe_studios.cringe_authenticator.databinding.FragmentHomeBinding; +import com.cringe_studios.code_guard.R; +import com.cringe_studios.code_guard.databinding.FragmentHomeBinding; public class HomeFragment extends NamedFragment { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/MenuDrawerFragment.java b/app/src/main/java/com/cringe_studios/code_guard/fragment/MenuDrawerFragment.java similarity index 85% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/MenuDrawerFragment.java rename to app/src/main/java/com/cringe_studios/code_guard/fragment/MenuDrawerFragment.java index cecfc71..388973d 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/MenuDrawerFragment.java +++ b/app/src/main/java/com/cringe_studios/code_guard/fragment/MenuDrawerFragment.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.fragment; +package com.cringe_studios.code_guard.fragment; import android.os.Bundle; import android.view.LayoutInflater; @@ -8,16 +8,16 @@ import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import com.cringe_studios.cringe_authenticator.R; -import com.cringe_studios.cringe_authenticator.crypto.CryptoException; -import com.cringe_studios.cringe_authenticator.databinding.FragmentMenuDrawerBinding; -import com.cringe_studios.cringe_authenticator.grouplist.GroupListAdapter; -import com.cringe_studios.cringe_authenticator.grouplist.GroupListItem; -import com.cringe_studios.cringe_authenticator.util.DialogUtil; -import com.cringe_studios.cringe_authenticator.util.NavigationUtil; -import com.cringe_studios.cringe_authenticator.util.OTPDatabase; -import com.cringe_studios.cringe_authenticator.util.OTPDatabaseException; -import com.cringe_studios.cringe_authenticator.util.SettingsUtil; +import com.cringe_studios.code_guard.R; +import com.cringe_studios.code_guard.crypto.CryptoException; +import com.cringe_studios.code_guard.databinding.FragmentMenuDrawerBinding; +import com.cringe_studios.code_guard.grouplist.GroupListAdapter; +import com.cringe_studios.code_guard.grouplist.GroupListItem; +import com.cringe_studios.code_guard.util.DialogUtil; +import com.cringe_studios.code_guard.util.NavigationUtil; +import com.cringe_studios.code_guard.util.OTPDatabase; +import com.cringe_studios.code_guard.util.OTPDatabaseException; +import com.cringe_studios.code_guard.util.SettingsUtil; import com.google.android.material.bottomsheet.BottomSheetDialogFragment; import java.util.List; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/NamedFragment.java b/app/src/main/java/com/cringe_studios/code_guard/fragment/NamedFragment.java similarity index 70% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/NamedFragment.java rename to app/src/main/java/com/cringe_studios/code_guard/fragment/NamedFragment.java index 9dddbf0..70a4e56 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/NamedFragment.java +++ b/app/src/main/java/com/cringe_studios/code_guard/fragment/NamedFragment.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.fragment; +package com.cringe_studios.code_guard.fragment; import androidx.fragment.app.Fragment; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/PickIconDrawerFragment.java b/app/src/main/java/com/cringe_studios/code_guard/fragment/PickIconDrawerFragment.java similarity index 83% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/PickIconDrawerFragment.java rename to app/src/main/java/com/cringe_studios/code_guard/fragment/PickIconDrawerFragment.java index 863df90..8e9755a 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/PickIconDrawerFragment.java +++ b/app/src/main/java/com/cringe_studios/code_guard/fragment/PickIconDrawerFragment.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.fragment; +package com.cringe_studios.code_guard.fragment; import android.os.Bundle; import android.text.Editable; @@ -11,10 +11,10 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.core.util.Consumer; -import com.cringe_studios.cringe_authenticator.databinding.FragmentPickIconBinding; -import com.cringe_studios.cringe_authenticator.icon.Icon; -import com.cringe_studios.cringe_authenticator.icon.IconListAdapter; -import com.cringe_studios.cringe_authenticator.icon.IconUtil; +import com.cringe_studios.code_guard.databinding.FragmentPickIconBinding; +import com.cringe_studios.code_guard.icon.Icon; +import com.cringe_studios.code_guard.icon.IconListAdapter; +import com.cringe_studios.code_guard.icon.IconUtil; import com.google.android.material.bottomsheet.BottomSheetDialogFragment; public class PickIconDrawerFragment extends BottomSheetDialogFragment { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/SettingsFragment.java b/app/src/main/java/com/cringe_studios/code_guard/fragment/SettingsFragment.java similarity index 91% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/SettingsFragment.java rename to app/src/main/java/com/cringe_studios/code_guard/fragment/SettingsFragment.java index f6adec0..a8d3808 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/SettingsFragment.java +++ b/app/src/main/java/com/cringe_studios/code_guard/fragment/SettingsFragment.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.fragment; +package com.cringe_studios.code_guard.fragment; import android.net.Uri; import android.os.Bundle; @@ -14,28 +14,28 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.recyclerview.widget.LinearLayoutManager; -import com.cringe_studios.cringe_authenticator.MainActivity; -import com.cringe_studios.cringe_authenticator.R; -import com.cringe_studios.cringe_authenticator.backup.BackupData; -import com.cringe_studios.cringe_authenticator.backup.BackupUtil; -import com.cringe_studios.cringe_authenticator.crypto.BiometricKey; -import com.cringe_studios.cringe_authenticator.crypto.Crypto; -import com.cringe_studios.cringe_authenticator.crypto.CryptoException; -import com.cringe_studios.cringe_authenticator.crypto.CryptoParameters; -import com.cringe_studios.cringe_authenticator.databinding.DialogManageIconPacksBinding; -import com.cringe_studios.cringe_authenticator.databinding.FragmentSettingsBinding; -import com.cringe_studios.cringe_authenticator.icon.IconPack; -import com.cringe_studios.cringe_authenticator.icon.IconPackListAdapter; -import com.cringe_studios.cringe_authenticator.icon.IconUtil; -import com.cringe_studios.cringe_authenticator.util.Appearance; -import com.cringe_studios.cringe_authenticator.util.BackupException; -import com.cringe_studios.cringe_authenticator.util.BiometricUtil; -import com.cringe_studios.cringe_authenticator.util.DialogUtil; -import com.cringe_studios.cringe_authenticator.util.OTPDatabase; -import com.cringe_studios.cringe_authenticator.util.OTPDatabaseException; -import com.cringe_studios.cringe_authenticator.util.SettingsUtil; -import com.cringe_studios.cringe_authenticator.util.StyledDialogBuilder; -import com.cringe_studios.cringe_authenticator.util.Theme; +import com.cringe_studios.code_guard.MainActivity; +import com.cringe_studios.code_guard.R; +import com.cringe_studios.code_guard.backup.BackupData; +import com.cringe_studios.code_guard.backup.BackupUtil; +import com.cringe_studios.code_guard.crypto.BiometricKey; +import com.cringe_studios.code_guard.crypto.Crypto; +import com.cringe_studios.code_guard.crypto.CryptoException; +import com.cringe_studios.code_guard.crypto.CryptoParameters; +import com.cringe_studios.code_guard.databinding.DialogManageIconPacksBinding; +import com.cringe_studios.code_guard.databinding.FragmentSettingsBinding; +import com.cringe_studios.code_guard.icon.IconPack; +import com.cringe_studios.code_guard.icon.IconPackListAdapter; +import com.cringe_studios.code_guard.icon.IconUtil; +import com.cringe_studios.code_guard.util.Appearance; +import com.cringe_studios.code_guard.util.BackupException; +import com.cringe_studios.code_guard.util.BiometricUtil; +import com.cringe_studios.code_guard.util.DialogUtil; +import com.cringe_studios.code_guard.util.OTPDatabase; +import com.cringe_studios.code_guard.util.OTPDatabaseException; +import com.cringe_studios.code_guard.util.SettingsUtil; +import com.cringe_studios.code_guard.util.StyledDialogBuilder; +import com.cringe_studios.code_guard.util.Theme; import java.util.Arrays; import java.util.List; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/grouplist/GroupListAdapter.java b/app/src/main/java/com/cringe_studios/code_guard/grouplist/GroupListAdapter.java similarity index 96% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/grouplist/GroupListAdapter.java rename to app/src/main/java/com/cringe_studios/code_guard/grouplist/GroupListAdapter.java index 9798408..52aad3c 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/grouplist/GroupListAdapter.java +++ b/app/src/main/java/com/cringe_studios/code_guard/grouplist/GroupListAdapter.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.grouplist; +package com.cringe_studios.code_guard.grouplist; import android.content.Context; import android.os.Handler; @@ -11,8 +11,8 @@ import androidx.core.util.Consumer; import androidx.recyclerview.widget.ItemTouchHelper; import androidx.recyclerview.widget.RecyclerView; -import com.cringe_studios.cringe_authenticator.databinding.MenuItemBinding; -import com.cringe_studios.cringe_authenticator.util.SettingsUtil; +import com.cringe_studios.code_guard.databinding.MenuItemBinding; +import com.cringe_studios.code_guard.util.SettingsUtil; import java.util.ArrayList; import java.util.Collections; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/grouplist/GroupListItem.java b/app/src/main/java/com/cringe_studios/code_guard/grouplist/GroupListItem.java similarity index 88% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/grouplist/GroupListItem.java rename to app/src/main/java/com/cringe_studios/code_guard/grouplist/GroupListItem.java index 9d30b97..ee08545 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/grouplist/GroupListItem.java +++ b/app/src/main/java/com/cringe_studios/code_guard/grouplist/GroupListItem.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.grouplist; +package com.cringe_studios.code_guard.grouplist; import android.content.res.TypedArray; import android.graphics.Color; @@ -7,8 +7,8 @@ import android.graphics.drawable.ColorDrawable; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; -import com.cringe_studios.cringe_authenticator.R; -import com.cringe_studios.cringe_authenticator.databinding.MenuItemBinding; +import com.cringe_studios.code_guard.R; +import com.cringe_studios.code_guard.databinding.MenuItemBinding; public class GroupListItem extends RecyclerView.ViewHolder { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/Icon.java b/app/src/main/java/com/cringe_studios/code_guard/icon/Icon.java similarity index 86% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/icon/Icon.java rename to app/src/main/java/com/cringe_studios/code_guard/icon/Icon.java index 06f3181..9059706 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/Icon.java +++ b/app/src/main/java/com/cringe_studios/code_guard/icon/Icon.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.icon; +package com.cringe_studios.code_guard.icon; public class Icon { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconListAdapter.java b/app/src/main/java/com/cringe_studios/code_guard/icon/IconListAdapter.java similarity index 93% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconListAdapter.java rename to app/src/main/java/com/cringe_studios/code_guard/icon/IconListAdapter.java index 62d84e1..ec77f98 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconListAdapter.java +++ b/app/src/main/java/com/cringe_studios/code_guard/icon/IconListAdapter.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.icon; +package com.cringe_studios.code_guard.icon; import android.content.Context; import android.graphics.Color; @@ -11,9 +11,9 @@ import android.widget.ExpandableListView; import androidx.core.util.Consumer; -import com.cringe_studios.cringe_authenticator.R; -import com.cringe_studios.cringe_authenticator.databinding.IconListCategoryBinding; -import com.cringe_studios.cringe_authenticator.databinding.IconListIconBinding; +import com.cringe_studios.code_guard.R; +import com.cringe_studios.code_guard.databinding.IconListCategoryBinding; +import com.cringe_studios.code_guard.databinding.IconListIconBinding; import java.util.ArrayList; import java.util.List; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconMetadata.java b/app/src/main/java/com/cringe_studios/code_guard/icon/IconMetadata.java similarity index 92% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconMetadata.java rename to app/src/main/java/com/cringe_studios/code_guard/icon/IconMetadata.java index d28046e..faaaaa3 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconMetadata.java +++ b/app/src/main/java/com/cringe_studios/code_guard/icon/IconMetadata.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.icon; +package com.cringe_studios.code_guard.icon; import java.io.File; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPack.java b/app/src/main/java/com/cringe_studios/code_guard/icon/IconPack.java similarity index 92% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPack.java rename to app/src/main/java/com/cringe_studios/code_guard/icon/IconPack.java index 9cc509b..013561c 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPack.java +++ b/app/src/main/java/com/cringe_studios/code_guard/icon/IconPack.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.icon; +package com.cringe_studios.code_guard.icon; public class IconPack { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPackException.java b/app/src/main/java/com/cringe_studios/code_guard/icon/IconPackException.java similarity index 86% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPackException.java rename to app/src/main/java/com/cringe_studios/code_guard/icon/IconPackException.java index 57c3738..09015fc 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPackException.java +++ b/app/src/main/java/com/cringe_studios/code_guard/icon/IconPackException.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.icon; +package com.cringe_studios.code_guard.icon; public class IconPackException extends Exception { public IconPackException() { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPackItem.java b/app/src/main/java/com/cringe_studios/code_guard/icon/IconPackItem.java similarity index 80% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPackItem.java rename to app/src/main/java/com/cringe_studios/code_guard/icon/IconPackItem.java index feaad07..d4771ec 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPackItem.java +++ b/app/src/main/java/com/cringe_studios/code_guard/icon/IconPackItem.java @@ -1,9 +1,9 @@ -package com.cringe_studios.cringe_authenticator.icon; +package com.cringe_studios.code_guard.icon; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; -import com.cringe_studios.cringe_authenticator.databinding.DialogManageIconPacksItemBinding; +import com.cringe_studios.code_guard.databinding.DialogManageIconPacksItemBinding; public class IconPackItem extends RecyclerView.ViewHolder { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPackListAdapter.java b/app/src/main/java/com/cringe_studios/code_guard/icon/IconPackListAdapter.java similarity index 84% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPackListAdapter.java rename to app/src/main/java/com/cringe_studios/code_guard/icon/IconPackListAdapter.java index ff7a229..fc61f10 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPackListAdapter.java +++ b/app/src/main/java/com/cringe_studios/code_guard/icon/IconPackListAdapter.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.icon; +package com.cringe_studios.code_guard.icon; import android.content.Context; import android.view.LayoutInflater; @@ -7,9 +7,9 @@ import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; -import com.cringe_studios.cringe_authenticator.R; -import com.cringe_studios.cringe_authenticator.databinding.DialogManageIconPacksItemBinding; -import com.cringe_studios.cringe_authenticator.util.DialogUtil; +import com.cringe_studios.code_guard.R; +import com.cringe_studios.code_guard.databinding.DialogManageIconPacksItemBinding; +import com.cringe_studios.code_guard.util.DialogUtil; import java.util.List; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPackMetadata.java b/app/src/main/java/com/cringe_studios/code_guard/icon/IconPackMetadata.java similarity index 88% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPackMetadata.java rename to app/src/main/java/com/cringe_studios/code_guard/icon/IconPackMetadata.java index 72e222a..02a64fe 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPackMetadata.java +++ b/app/src/main/java/com/cringe_studios/code_guard/icon/IconPackMetadata.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.icon; +package com.cringe_studios.code_guard.icon; public class IconPackMetadata { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconUtil.java b/app/src/main/java/com/cringe_studios/code_guard/icon/IconUtil.java similarity index 97% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconUtil.java rename to app/src/main/java/com/cringe_studios/code_guard/icon/IconUtil.java index d6ee484..8c93884 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconUtil.java +++ b/app/src/main/java/com/cringe_studios/code_guard/icon/IconUtil.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.icon; +package com.cringe_studios.code_guard.icon; import android.content.Context; import android.graphics.Bitmap; @@ -16,10 +16,10 @@ import androidx.core.util.Consumer; import com.caverock.androidsvg.SVG; import com.caverock.androidsvg.SVGImageView; import com.caverock.androidsvg.SVGParseException; -import com.cringe_studios.cringe_authenticator.model.OTPData; -import com.cringe_studios.cringe_authenticator.util.DialogUtil; -import com.cringe_studios.cringe_authenticator.util.IOUtil; -import com.cringe_studios.cringe_authenticator.util.SettingsUtil; +import com.cringe_studios.code_guard.model.OTPData; +import com.cringe_studios.code_guard.util.DialogUtil; +import com.cringe_studios.code_guard.util.IOUtil; +import com.cringe_studios.code_guard.util.SettingsUtil; import java.io.ByteArrayInputStream; import java.io.File; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/model/OTPData.java b/app/src/main/java/com/cringe_studios/code_guard/model/OTPData.java similarity index 98% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/model/OTPData.java rename to app/src/main/java/com/cringe_studios/code_guard/model/OTPData.java index b984c57..90cf8f0 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/model/OTPData.java +++ b/app/src/main/java/com/cringe_studios/code_guard/model/OTPData.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.model; +package com.cringe_studios.code_guard.model; import com.cringe_studios.cringe_authenticator_library.OTP; import com.cringe_studios.cringe_authenticator_library.OTPAlgorithm; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/model/OTPMigrationPart.java b/app/src/main/java/com/cringe_studios/code_guard/model/OTPMigrationPart.java similarity index 90% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/model/OTPMigrationPart.java rename to app/src/main/java/com/cringe_studios/code_guard/model/OTPMigrationPart.java index bea4f1b..ff8bbf3 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/model/OTPMigrationPart.java +++ b/app/src/main/java/com/cringe_studios/code_guard/model/OTPMigrationPart.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.model; +package com.cringe_studios.code_guard.model; public class OTPMigrationPart { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListAdapter.java b/app/src/main/java/com/cringe_studios/code_guard/otplist/OTPListAdapter.java similarity index 93% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListAdapter.java rename to app/src/main/java/com/cringe_studios/code_guard/otplist/OTPListAdapter.java index bf723ec..bfc9cf4 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListAdapter.java +++ b/app/src/main/java/com/cringe_studios/code_guard/otplist/OTPListAdapter.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.otplist; +package com.cringe_studios.code_guard.otplist; import android.content.Context; import android.os.Handler; @@ -12,13 +12,13 @@ import androidx.annotation.NonNull; import androidx.recyclerview.widget.ItemTouchHelper; import androidx.recyclerview.widget.RecyclerView; -import com.cringe_studios.cringe_authenticator.BaseActivity; -import com.cringe_studios.cringe_authenticator.R; -import com.cringe_studios.cringe_authenticator.databinding.OtpCodeBinding; -import com.cringe_studios.cringe_authenticator.icon.IconUtil; -import com.cringe_studios.cringe_authenticator.model.OTPData; -import com.cringe_studios.cringe_authenticator.util.DialogUtil; -import com.cringe_studios.cringe_authenticator.util.SettingsUtil; +import com.cringe_studios.code_guard.BaseActivity; +import com.cringe_studios.code_guard.R; +import com.cringe_studios.code_guard.databinding.OtpCodeBinding; +import com.cringe_studios.code_guard.icon.IconUtil; +import com.cringe_studios.code_guard.model.OTPData; +import com.cringe_studios.code_guard.util.DialogUtil; +import com.cringe_studios.code_guard.util.SettingsUtil; import com.cringe_studios.cringe_authenticator_library.OTPException; import com.cringe_studios.cringe_authenticator_library.OTPType; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListItem.java b/app/src/main/java/com/cringe_studios/code_guard/otplist/OTPListItem.java similarity index 90% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListItem.java rename to app/src/main/java/com/cringe_studios/code_guard/otplist/OTPListItem.java index 47c8b51..28cef8b 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListItem.java +++ b/app/src/main/java/com/cringe_studios/code_guard/otplist/OTPListItem.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.otplist; +package com.cringe_studios.code_guard.otplist; import android.content.res.TypedArray; import android.graphics.Color; @@ -7,10 +7,10 @@ import android.graphics.drawable.ColorDrawable; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; -import com.cringe_studios.cringe_authenticator.R; -import com.cringe_studios.cringe_authenticator.databinding.OtpCodeBinding; -import com.cringe_studios.cringe_authenticator.model.OTPData; -import com.cringe_studios.cringe_authenticator.util.SettingsUtil; +import com.cringe_studios.code_guard.R; +import com.cringe_studios.code_guard.databinding.OtpCodeBinding; +import com.cringe_studios.code_guard.model.OTPData; +import com.cringe_studios.code_guard.util.SettingsUtil; import com.cringe_studios.cringe_authenticator_library.OTPException; import com.cringe_studios.cringe_authenticator_library.OTPType; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/DetectedCode.java b/app/src/main/java/com/cringe_studios/code_guard/scanner/DetectedCode.java similarity index 76% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/DetectedCode.java rename to app/src/main/java/com/cringe_studios/code_guard/scanner/DetectedCode.java index 883fdbb..a3895dc 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/DetectedCode.java +++ b/app/src/main/java/com/cringe_studios/code_guard/scanner/DetectedCode.java @@ -1,7 +1,7 @@ -package com.cringe_studios.cringe_authenticator.scanner; +package com.cringe_studios.code_guard.scanner; -import com.cringe_studios.cringe_authenticator.model.OTPData; -import com.cringe_studios.cringe_authenticator.model.OTPMigrationPart; +import com.cringe_studios.code_guard.model.OTPData; +import com.cringe_studios.code_guard.model.OTPMigrationPart; public class DetectedCode { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/QRScanner.java b/app/src/main/java/com/cringe_studios/code_guard/scanner/QRScanner.java similarity index 92% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/QRScanner.java rename to app/src/main/java/com/cringe_studios/code_guard/scanner/QRScanner.java index d022e3c..bb5493c 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/QRScanner.java +++ b/app/src/main/java/com/cringe_studios/code_guard/scanner/QRScanner.java @@ -1,12 +1,12 @@ -package com.cringe_studios.cringe_authenticator.scanner; +package com.cringe_studios.code_guard.scanner; import android.net.Uri; import androidx.annotation.NonNull; import androidx.core.util.Consumer; -import com.cringe_studios.cringe_authenticator.model.OTPMigrationPart; -import com.cringe_studios.cringe_authenticator.util.OTPParser; +import com.cringe_studios.code_guard.model.OTPMigrationPart; +import com.cringe_studios.code_guard.util.OTPParser; import com.google.mlkit.vision.barcode.BarcodeScanner; import com.google.mlkit.vision.barcode.BarcodeScanning; import com.google.mlkit.vision.barcode.common.Barcode; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/QRScannerActivity.java b/app/src/main/java/com/cringe_studios/code_guard/scanner/QRScannerActivity.java similarity index 94% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/QRScannerActivity.java rename to app/src/main/java/com/cringe_studios/code_guard/scanner/QRScannerActivity.java index 7dc5ffe..cd0846d 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/QRScannerActivity.java +++ b/app/src/main/java/com/cringe_studios/code_guard/scanner/QRScannerActivity.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.scanner; +package com.cringe_studios.code_guard.scanner; import android.Manifest; import android.app.Activity; @@ -25,12 +25,12 @@ import androidx.camera.core.SurfaceOrientedMeteringPointFactory; import androidx.camera.lifecycle.ProcessCameraProvider; import androidx.core.content.ContextCompat; -import com.cringe_studios.cringe_authenticator.BaseActivity; -import com.cringe_studios.cringe_authenticator.R; -import com.cringe_studios.cringe_authenticator.databinding.ActivityQrScannerBinding; -import com.cringe_studios.cringe_authenticator.model.OTPData; -import com.cringe_studios.cringe_authenticator.model.OTPMigrationPart; -import com.cringe_studios.cringe_authenticator.util.DialogUtil; +import com.cringe_studios.code_guard.BaseActivity; +import com.cringe_studios.code_guard.R; +import com.cringe_studios.code_guard.databinding.ActivityQrScannerBinding; +import com.cringe_studios.code_guard.model.OTPData; +import com.cringe_studios.code_guard.model.OTPMigrationPart; +import com.cringe_studios.code_guard.util.DialogUtil; import com.google.common.util.concurrent.ListenableFuture; import com.google.mlkit.vision.common.InputImage; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/QRScannerContract.java b/app/src/main/java/com/cringe_studios/code_guard/scanner/QRScannerContract.java similarity index 88% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/QRScannerContract.java rename to app/src/main/java/com/cringe_studios/code_guard/scanner/QRScannerContract.java index f73b342..73cf6f1 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/QRScannerContract.java +++ b/app/src/main/java/com/cringe_studios/code_guard/scanner/QRScannerContract.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.scanner; +package com.cringe_studios.code_guard.scanner; import android.app.Activity; import android.content.Context; @@ -8,7 +8,7 @@ import androidx.activity.result.contract.ActivityResultContract; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import com.cringe_studios.cringe_authenticator.model.OTPData; +import com.cringe_studios.code_guard.model.OTPData; public class QRScannerContract extends ActivityResultContract { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/ScannerResult.java b/app/src/main/java/com/cringe_studios/code_guard/scanner/ScannerResult.java similarity index 82% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/ScannerResult.java rename to app/src/main/java/com/cringe_studios/code_guard/scanner/ScannerResult.java index c414163..5bed987 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/ScannerResult.java +++ b/app/src/main/java/com/cringe_studios/code_guard/scanner/ScannerResult.java @@ -1,9 +1,9 @@ -package com.cringe_studios.cringe_authenticator.scanner; +package com.cringe_studios.code_guard.scanner; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import com.cringe_studios.cringe_authenticator.model.OTPData; +import com.cringe_studios.code_guard.model.OTPData; public class ScannerResult { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/unlock/UnlockActivity.java b/app/src/main/java/com/cringe_studios/code_guard/unlock/UnlockActivity.java similarity index 78% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/unlock/UnlockActivity.java rename to app/src/main/java/com/cringe_studios/code_guard/unlock/UnlockActivity.java index 9fd77e2..12fc718 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/unlock/UnlockActivity.java +++ b/app/src/main/java/com/cringe_studios/code_guard/unlock/UnlockActivity.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.unlock; +package com.cringe_studios.code_guard.unlock; import android.content.Intent; import android.os.Bundle; @@ -6,18 +6,18 @@ import android.view.View; import androidx.annotation.Nullable; -import com.cringe_studios.cringe_authenticator.BaseActivity; -import com.cringe_studios.cringe_authenticator.MainActivity; -import com.cringe_studios.cringe_authenticator.crypto.BiometricKey; -import com.cringe_studios.cringe_authenticator.crypto.Crypto; -import com.cringe_studios.cringe_authenticator.crypto.CryptoException; -import com.cringe_studios.cringe_authenticator.databinding.ActivityUnlockBinding; -import com.cringe_studios.cringe_authenticator.util.BiometricUtil; -import com.cringe_studios.cringe_authenticator.util.DialogUtil; -import com.cringe_studios.cringe_authenticator.util.OTPDatabase; -import com.cringe_studios.cringe_authenticator.util.OTPDatabaseException; -import com.cringe_studios.cringe_authenticator.util.SettingsUtil; -import com.cringe_studios.cringe_authenticator.util.ThemeUtil; +import com.cringe_studios.code_guard.BaseActivity; +import com.cringe_studios.code_guard.MainActivity; +import com.cringe_studios.code_guard.crypto.BiometricKey; +import com.cringe_studios.code_guard.crypto.Crypto; +import com.cringe_studios.code_guard.crypto.CryptoException; +import com.cringe_studios.code_guard.databinding.ActivityUnlockBinding; +import com.cringe_studios.code_guard.util.BiometricUtil; +import com.cringe_studios.code_guard.util.DialogUtil; +import com.cringe_studios.code_guard.util.OTPDatabase; +import com.cringe_studios.code_guard.util.OTPDatabaseException; +import com.cringe_studios.code_guard.util.SettingsUtil; +import com.cringe_studios.code_guard.util.ThemeUtil; import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/unlock/UnlockContract.java b/app/src/main/java/com/cringe_studios/code_guard/unlock/UnlockContract.java similarity index 91% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/unlock/UnlockContract.java rename to app/src/main/java/com/cringe_studios/code_guard/unlock/UnlockContract.java index 65511aa..accf261 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/unlock/UnlockContract.java +++ b/app/src/main/java/com/cringe_studios/code_guard/unlock/UnlockContract.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.unlock; +package com.cringe_studios.code_guard.unlock; import android.app.Activity; import android.content.Context; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/urihandler/URIHandlerActivity.java b/app/src/main/java/com/cringe_studios/code_guard/urihandler/URIHandlerActivity.java similarity index 76% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/urihandler/URIHandlerActivity.java rename to app/src/main/java/com/cringe_studios/code_guard/urihandler/URIHandlerActivity.java index b5108ef..6b78d1d 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/urihandler/URIHandlerActivity.java +++ b/app/src/main/java/com/cringe_studios/code_guard/urihandler/URIHandlerActivity.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.urihandler; +package com.cringe_studios.code_guard.urihandler; import android.content.Intent; import android.net.Uri; @@ -8,16 +8,16 @@ import android.widget.Toast; import androidx.annotation.Nullable; import androidx.appcompat.app.AlertDialog; -import com.cringe_studios.cringe_authenticator.BaseActivity; -import com.cringe_studios.cringe_authenticator.R; -import com.cringe_studios.cringe_authenticator.crypto.CryptoException; -import com.cringe_studios.cringe_authenticator.model.OTPData; -import com.cringe_studios.cringe_authenticator.util.DialogUtil; -import com.cringe_studios.cringe_authenticator.util.OTPDatabase; -import com.cringe_studios.cringe_authenticator.util.OTPDatabaseException; -import com.cringe_studios.cringe_authenticator.util.OTPParser; -import com.cringe_studios.cringe_authenticator.util.SettingsUtil; -import com.cringe_studios.cringe_authenticator.util.StyledDialogBuilder; +import com.cringe_studios.code_guard.BaseActivity; +import com.cringe_studios.code_guard.R; +import com.cringe_studios.code_guard.crypto.CryptoException; +import com.cringe_studios.code_guard.model.OTPData; +import com.cringe_studios.code_guard.util.DialogUtil; +import com.cringe_studios.code_guard.util.OTPDatabase; +import com.cringe_studios.code_guard.util.OTPDatabaseException; +import com.cringe_studios.code_guard.util.OTPParser; +import com.cringe_studios.code_guard.util.SettingsUtil; +import com.cringe_studios.code_guard.util.StyledDialogBuilder; public class URIHandlerActivity extends BaseActivity { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/Appearance.java b/app/src/main/java/com/cringe_studios/code_guard/util/Appearance.java similarity index 88% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/util/Appearance.java rename to app/src/main/java/com/cringe_studios/code_guard/util/Appearance.java index 0c4f16e..c58e597 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/Appearance.java +++ b/app/src/main/java/com/cringe_studios/code_guard/util/Appearance.java @@ -1,9 +1,9 @@ -package com.cringe_studios.cringe_authenticator.util; +package com.cringe_studios.code_guard.util; import androidx.annotation.StringRes; import androidx.appcompat.app.AppCompatDelegate; -import com.cringe_studios.cringe_authenticator.R; +import com.cringe_studios.code_guard.R; public enum Appearance { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/BackupException.java b/app/src/main/java/com/cringe_studios/code_guard/util/BackupException.java similarity index 86% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/util/BackupException.java rename to app/src/main/java/com/cringe_studios/code_guard/util/BackupException.java index a61993b..ae8d3db 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/BackupException.java +++ b/app/src/main/java/com/cringe_studios/code_guard/util/BackupException.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.util; +package com.cringe_studios.code_guard.util; public class BackupException extends Exception { public BackupException() { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/BiometricUtil.java b/app/src/main/java/com/cringe_studios/code_guard/util/BiometricUtil.java similarity index 94% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/util/BiometricUtil.java rename to app/src/main/java/com/cringe_studios/code_guard/util/BiometricUtil.java index 6a9457f..94b1851 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/BiometricUtil.java +++ b/app/src/main/java/com/cringe_studios/code_guard/util/BiometricUtil.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.util; +package com.cringe_studios.code_guard.util; import static androidx.biometric.BiometricManager.Authenticators.BIOMETRIC_STRONG; import static androidx.biometric.BiometricManager.Authenticators.DEVICE_CREDENTIAL; @@ -12,7 +12,7 @@ import androidx.biometric.BiometricPrompt; import androidx.core.content.ContextCompat; import androidx.fragment.app.FragmentActivity; -import com.cringe_studios.cringe_authenticator.R; +import com.cringe_studios.code_guard.R; import java.util.concurrent.Executor; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/DialogCallback.java b/app/src/main/java/com/cringe_studios/code_guard/util/DialogCallback.java similarity index 53% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/util/DialogCallback.java rename to app/src/main/java/com/cringe_studios/code_guard/util/DialogCallback.java index daaa2a9..db579e7 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/DialogCallback.java +++ b/app/src/main/java/com/cringe_studios/code_guard/util/DialogCallback.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.util; +package com.cringe_studios.code_guard.util; public interface DialogCallback { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/DialogUtil.java b/app/src/main/java/com/cringe_studios/code_guard/util/DialogUtil.java similarity index 96% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/util/DialogUtil.java rename to app/src/main/java/com/cringe_studios/code_guard/util/DialogUtil.java index 969eef7..2a242f3 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/DialogUtil.java +++ b/app/src/main/java/com/cringe_studios/code_guard/util/DialogUtil.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.util; +package com.cringe_studios.code_guard.util; import android.content.Context; import android.view.LayoutInflater; @@ -11,15 +11,15 @@ import androidx.annotation.StringRes; import androidx.appcompat.app.AlertDialog; import androidx.core.util.Consumer; -import com.cringe_studios.cringe_authenticator.R; -import com.cringe_studios.cringe_authenticator.backup.BackupData; -import com.cringe_studios.cringe_authenticator.databinding.DialogCreateGroupBinding; -import com.cringe_studios.cringe_authenticator.databinding.DialogErrorBinding; -import com.cringe_studios.cringe_authenticator.databinding.DialogInputCodeHotpBinding; -import com.cringe_studios.cringe_authenticator.databinding.DialogInputCodeTotpBinding; -import com.cringe_studios.cringe_authenticator.databinding.DialogInputPasswordBinding; -import com.cringe_studios.cringe_authenticator.databinding.DialogSetPasswordBinding; -import com.cringe_studios.cringe_authenticator.model.OTPData; +import com.cringe_studios.code_guard.R; +import com.cringe_studios.code_guard.backup.BackupData; +import com.cringe_studios.code_guard.databinding.DialogCreateGroupBinding; +import com.cringe_studios.code_guard.databinding.DialogErrorBinding; +import com.cringe_studios.code_guard.databinding.DialogInputCodeHotpBinding; +import com.cringe_studios.code_guard.databinding.DialogInputCodeTotpBinding; +import com.cringe_studios.code_guard.databinding.DialogInputPasswordBinding; +import com.cringe_studios.code_guard.databinding.DialogSetPasswordBinding; +import com.cringe_studios.code_guard.model.OTPData; import com.cringe_studios.cringe_authenticator_library.OTPAlgorithm; import com.cringe_studios.cringe_authenticator_library.OTPType; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/IOUtil.java b/app/src/main/java/com/cringe_studios/code_guard/util/IOUtil.java similarity index 95% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/util/IOUtil.java rename to app/src/main/java/com/cringe_studios/code_guard/util/IOUtil.java index 883c39e..9d8f0e8 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/IOUtil.java +++ b/app/src/main/java/com/cringe_studios/code_guard/util/IOUtil.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.util; +package com.cringe_studios.code_guard.util; import java.io.ByteArrayOutputStream; import java.io.File; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/NavigationUtil.java b/app/src/main/java/com/cringe_studios/code_guard/util/NavigationUtil.java similarity index 93% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/util/NavigationUtil.java rename to app/src/main/java/com/cringe_studios/code_guard/util/NavigationUtil.java index e5e6699..df9be39 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/NavigationUtil.java +++ b/app/src/main/java/com/cringe_studios/code_guard/util/NavigationUtil.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.util; +package com.cringe_studios.code_guard.util; import android.os.Bundle; @@ -7,9 +7,9 @@ import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; -import com.cringe_studios.cringe_authenticator.R; -import com.cringe_studios.cringe_authenticator.fragment.MenuDrawerFragment; -import com.cringe_studios.cringe_authenticator.fragment.NamedFragment; +import com.cringe_studios.code_guard.R; +import com.cringe_studios.code_guard.fragment.MenuDrawerFragment; +import com.cringe_studios.code_guard.fragment.NamedFragment; public class NavigationUtil { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/OTPDatabase.java b/app/src/main/java/com/cringe_studios/code_guard/util/OTPDatabase.java similarity index 94% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/util/OTPDatabase.java rename to app/src/main/java/com/cringe_studios/code_guard/util/OTPDatabase.java index e0906bb..130f0c6 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/OTPDatabase.java +++ b/app/src/main/java/com/cringe_studios/code_guard/util/OTPDatabase.java @@ -1,13 +1,13 @@ -package com.cringe_studios.cringe_authenticator.util; +package com.cringe_studios.code_guard.util; import android.app.Activity; import android.content.Context; -import com.cringe_studios.cringe_authenticator.BaseActivity; -import com.cringe_studios.cringe_authenticator.crypto.Crypto; -import com.cringe_studios.cringe_authenticator.crypto.CryptoException; -import com.cringe_studios.cringe_authenticator.crypto.CryptoParameters; -import com.cringe_studios.cringe_authenticator.model.OTPData; +import com.cringe_studios.code_guard.BaseActivity; +import com.cringe_studios.code_guard.crypto.Crypto; +import com.cringe_studios.code_guard.crypto.CryptoException; +import com.cringe_studios.code_guard.crypto.CryptoParameters; +import com.cringe_studios.code_guard.model.OTPData; import com.google.gson.JsonObject; import com.google.gson.JsonSyntaxException; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/OTPDatabaseException.java b/app/src/main/java/com/cringe_studios/code_guard/util/OTPDatabaseException.java similarity index 87% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/util/OTPDatabaseException.java rename to app/src/main/java/com/cringe_studios/code_guard/util/OTPDatabaseException.java index c6fe14b..467bfc1 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/OTPDatabaseException.java +++ b/app/src/main/java/com/cringe_studios/code_guard/util/OTPDatabaseException.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.util; +package com.cringe_studios.code_guard.util; public class OTPDatabaseException extends Exception { public OTPDatabaseException() { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/OTPParser.java b/app/src/main/java/com/cringe_studios/code_guard/util/OTPParser.java similarity index 96% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/util/OTPParser.java rename to app/src/main/java/com/cringe_studios/code_guard/util/OTPParser.java index 5346dab..ae1fa33 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/OTPParser.java +++ b/app/src/main/java/com/cringe_studios/code_guard/util/OTPParser.java @@ -1,11 +1,11 @@ -package com.cringe_studios.cringe_authenticator.util; +package com.cringe_studios.code_guard.util; import android.net.Uri; import android.util.Base64; -import com.cringe_studios.cringe_authenticator.model.OTPData; -import com.cringe_studios.cringe_authenticator.model.OTPMigrationPart; -import com.cringe_studios.cringe_authenticator.proto.OTPMigration; +import com.cringe_studios.code_guard.model.OTPData; +import com.cringe_studios.code_guard.model.OTPMigrationPart; +import com.cringe_studios.code_guard.proto.OTPMigration; import com.cringe_studios.cringe_authenticator_library.OTPAlgorithm; import com.cringe_studios.cringe_authenticator_library.OTPType; import com.cringe_studios.cringe_authenticator_library.impl.Base32; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/SettingsUtil.java b/app/src/main/java/com/cringe_studios/code_guard/util/SettingsUtil.java similarity index 97% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/util/SettingsUtil.java rename to app/src/main/java/com/cringe_studios/code_guard/util/SettingsUtil.java index b401716..fdfb0ca 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/SettingsUtil.java +++ b/app/src/main/java/com/cringe_studios/code_guard/util/SettingsUtil.java @@ -1,11 +1,11 @@ -package com.cringe_studios.cringe_authenticator.util; +package com.cringe_studios.code_guard.util; import android.content.Context; import android.content.SharedPreferences; -import com.cringe_studios.cringe_authenticator.backup.BackupGroup; -import com.cringe_studios.cringe_authenticator.crypto.BiometricKey; -import com.cringe_studios.cringe_authenticator.crypto.CryptoParameters; +import com.cringe_studios.code_guard.backup.BackupGroup; +import com.cringe_studios.code_guard.crypto.BiometricKey; +import com.cringe_studios.code_guard.crypto.CryptoParameters; import com.google.gson.Gson; import java.util.ArrayList; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/StyledDialogBuilder.java b/app/src/main/java/com/cringe_studios/code_guard/util/StyledDialogBuilder.java similarity index 90% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/util/StyledDialogBuilder.java rename to app/src/main/java/com/cringe_studios/code_guard/util/StyledDialogBuilder.java index a9d6146..b461f66 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/StyledDialogBuilder.java +++ b/app/src/main/java/com/cringe_studios/code_guard/util/StyledDialogBuilder.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.util; +package com.cringe_studios.code_guard.util; import android.content.Context; @@ -8,7 +8,7 @@ import android.view.WindowManager; import androidx.annotation.NonNull; import androidx.appcompat.app.AlertDialog; -import com.cringe_studios.cringe_authenticator.R; +import com.cringe_studios.code_guard.R; public class StyledDialogBuilder extends AlertDialog.Builder { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/Theme.java b/app/src/main/java/com/cringe_studios/code_guard/util/Theme.java similarity index 94% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/util/Theme.java rename to app/src/main/java/com/cringe_studios/code_guard/util/Theme.java index 205a79d..e8bf0aa 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/Theme.java +++ b/app/src/main/java/com/cringe_studios/code_guard/util/Theme.java @@ -1,10 +1,10 @@ -package com.cringe_studios.cringe_authenticator.util; +package com.cringe_studios.code_guard.util; import androidx.annotation.DrawableRes; import androidx.annotation.StringRes; import androidx.annotation.StyleRes; -import com.cringe_studios.cringe_authenticator.R; +import com.cringe_studios.code_guard.R; public enum Theme { diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/ThemeUtil.java b/app/src/main/java/com/cringe_studios/code_guard/util/ThemeUtil.java similarity index 94% rename from app/src/main/java/com/cringe_studios/cringe_authenticator/util/ThemeUtil.java rename to app/src/main/java/com/cringe_studios/code_guard/util/ThemeUtil.java index c5b5521..82683d6 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/ThemeUtil.java +++ b/app/src/main/java/com/cringe_studios/code_guard/util/ThemeUtil.java @@ -1,4 +1,4 @@ -package com.cringe_studios.cringe_authenticator.util; +package com.cringe_studios.code_guard.util; import android.content.Context; import android.content.res.Configuration; @@ -8,7 +8,7 @@ import androidx.annotation.DrawableRes; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatDelegate; -import com.cringe_studios.cringe_authenticator.R; +import com.cringe_studios.code_guard.R; public class ThemeUtil { diff --git a/app/src/main/proto/OTPMigration.proto b/app/src/main/proto/OTPMigration.proto index 6ca82a2..9bbf6f5 100644 --- a/app/src/main/proto/OTPMigration.proto +++ b/app/src/main/proto/OTPMigration.proto @@ -2,7 +2,7 @@ syntax = "proto3"; -package com.cringe_studios.cringe_authenticator.proto; +package com.cringe_studios.code_guard.proto; message MigrationPayload { enum Algorithm { diff --git a/app/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml index a0abb57..2b46a10 100644 --- a/app/src/main/res/menu/menu_main.xml +++ b/app/src/main/res/menu/menu_main.xml @@ -1,7 +1,7 @@ + tools:context="com.cringe_studios.code_guard.MainActivity">