Skip to content

Commit

Permalink
other: Enable memory leak detection for developement builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb3rko committed Oct 1, 2023
1 parent 1f75b00 commit eef40b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/build.gradle
Expand Up @@ -77,6 +77,7 @@ dependencies {
implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"
implementation "androidx.preference:preference-ktx:$preference_version"
implementation project(path: ':backpack')
developmentImplementation 'com.squareup.leakcanary:leakcanary-android:2.12'

// androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
// androidTestImplementation 'androidx.test.ext:junit:1.1.5'
Expand Down
Expand Up @@ -160,7 +160,10 @@ internal object BackupHandler {
val pins = mutableListOf<MultiBackupPinTable>()
var message: String
context.filesDir.listFiles()?.forEach {
if (it.name.startsWith("p") && it.name != PINS_FILE) {
if (it.name.startsWith("p") &&
it.name != PINS_FILE &&
it.name != "profileInstalled"
) {
val bytes = CryptoManager.decrypt(it)
val version = bytes.last()
val pinTable = ObjectSerializer.deserialize(bytes.withoutLast()) as PinTable
Expand Down

0 comments on commit eef40b1

Please sign in to comment.