removed wildcard entries"

This commit is contained in:
Yogesh Choudhary Paliyal
2022-07-03 00:45:24 +05:30
parent 1caba6518d
commit c7db577e2e
34 changed files with 97 additions and 61 deletions
@@ -3,7 +3,7 @@ package com.yogeshpaliyal.common
import androidx.room.Database
import androidx.room.RoomDatabase
import com.yogeshpaliyal.common.data.AccountModel
import com.yogeshpaliyal.keypass.db.DbDao
import com.yogeshpaliyal.common.db.DbDao
/*
* @author Yogesh Paliyal
@@ -1,4 +1,4 @@
package com.yogeshpaliyal.keypass.constants
package com.yogeshpaliyal.common.constants
annotation class AccountType() {
companion object {
@@ -1,4 +1,4 @@
package com.yogeshpaliyal.keypass.constants
package com.yogeshpaliyal.common.constants
object IntentKeys {
const val SCANNED_TEXT = "scanned_text"
@@ -1,4 +1,4 @@
package com.yogeshpaliyal.keypass.constants
package com.yogeshpaliyal.common.constants
object RequestCodes {
const val SCANNER = 342
@@ -6,7 +6,7 @@ import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName
import com.yogeshpaliyal.common.utils.TOTPHelper
import com.yogeshpaliyal.common.utils.getRandomString
import com.yogeshpaliyal.keypass.constants.AccountType
import com.yogeshpaliyal.common.constants.AccountType
/*
* @author Yogesh Paliyal
@@ -1,7 +1,11 @@
package com.yogeshpaliyal.keypass.db
package com.yogeshpaliyal.common.db
import androidx.lifecycle.LiveData
import androidx.room.*
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.yogeshpaliyal.common.data.AccountModel
import kotlinx.coroutines.flow.Flow
@@ -1,4 +1,4 @@
package com.yogeshpaliyal.keypass.db_helper
package com.yogeshpaliyal.common.dbhelper
/*
* @author Yogesh Paliyal
@@ -8,6 +8,6 @@ package com.yogeshpaliyal.keypass.db_helper
*/
class CryptoException : Exception {
constructor() {}
constructor(message: String?, throwable: Throwable?) : super(message, throwable) {}
constructor()
constructor(message: String?, throwable: Throwable?) : super(message, throwable)
}
@@ -1,16 +1,14 @@
package com.yogeshpaliyal.common.db_helper
package com.yogeshpaliyal.common.dbhelper
import android.content.ContentResolver
import android.net.Uri
import androidx.room.withTransaction
import com.google.gson.Gson
import com.yogeshpaliyal.common.AppDatabase
import com.yogeshpaliyal.common.constants.AccountType
import com.yogeshpaliyal.common.data.BackupData
import com.yogeshpaliyal.common.utils.getRandomString
import com.yogeshpaliyal.keypass.constants.AccountType
import com.yogeshpaliyal.keypass.db_helper.EncryptionHelper
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.withContext
/*
@@ -1,4 +1,4 @@
package com.yogeshpaliyal.keypass.db_helper
package com.yogeshpaliyal.common.dbhelper
import java.io.IOException
import java.io.InputStream
@@ -6,7 +6,12 @@ import java.io.OutputStream
import java.security.InvalidKeyException
import java.security.Key
import java.security.NoSuchAlgorithmException
import javax.crypto.*
import javax.crypto.BadPaddingException
import javax.crypto.Cipher
import javax.crypto.CipherInputStream
import javax.crypto.CipherOutputStream
import javax.crypto.IllegalBlockSizeException
import javax.crypto.NoSuchPaddingException
import javax.crypto.spec.IvParameterSpec
import javax.crypto.spec.SecretKeySpec
@@ -5,7 +5,7 @@ import android.net.Uri
import android.text.TextUtils
import androidx.documentfile.provider.DocumentFile
import com.yogeshpaliyal.common.AppDatabase
import com.yogeshpaliyal.common.db_helper.createBackup
import com.yogeshpaliyal.common.dbhelper.createBackup
import java.security.SecureRandom
/*
@@ -1,7 +1,8 @@
package com.yogeshpaliyal.common.utils
import java.text.SimpleDateFormat
import java.util.*
import java.util.Calendar
import java.util.Locale
/*
* @author Yogesh Paliyal
@@ -1,6 +1,6 @@
package com.yogeshpaliyal.common.utils
import java.util.*
import java.util.UUID
/*
* @author Yogesh Paliyal