Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
izaaz committed Sep 25, 2024
1 parent df4ada8 commit 19f98f3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
1 change: 0 additions & 1 deletion android/src/main/java/com/amplitude/android/Amplitude.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import com.amplitude.android.plugins.AndroidContextPlugin
import com.amplitude.android.plugins.AndroidLifecyclePlugin
import com.amplitude.android.plugins.AndroidNetworkConnectivityCheckerPlugin
import com.amplitude.android.storage.AndroidStorageContextV3
import com.amplitude.android.storage.LegacySdkStorageContext
import com.amplitude.core.Amplitude
import com.amplitude.core.events.BaseEvent
import com.amplitude.core.platform.plugins.AmplitudeDestination
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ class IdentityStorageMigration(
logger.error("Unable to migrate file identity storage: ${e.message}")
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ internal class MigrationManager(private val amplitude: Amplitude) {
logger.error("Failed to migrate storage: ${ex.message}")
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.amplitude.android.storage

import android.content.Context
import android.content.SharedPreferences
import com.amplitude.android.Amplitude
import com.amplitude.android.Configuration
import com.amplitude.android.migration.AndroidStorageMigration
Expand Down Expand Up @@ -125,4 +124,4 @@ internal class AndroidStorageContextV1(
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package com.amplitude.android.storage

import android.content.Context
import android.content.SharedPreferences
import com.amplitude.android.Amplitude
import com.amplitude.android.Configuration
import com.amplitude.android.migration.AndroidStorageMigration
import com.amplitude.android.migration.IdentityStorageMigration
import com.amplitude.android.utilities.AndroidStorage
import com.amplitude.core.utilities.FileStorage
import com.amplitude.id.FileIdentityStorage
import com.amplitude.id.IdentityConfiguration
Expand Down Expand Up @@ -50,12 +48,14 @@ internal class AndroidStorageContextV2(
eventsStorage = createAndroidStorage(
configuration,
"amplitude-disk-queue",
"amplitude-android-${configuration.instanceName}")
"amplitude-android-${configuration.instanceName}"
)

identifyInterceptStorage = createAndroidStorage(
configuration,
"amplitude-identify-intercept-disk-queue",
"amplitude-identify-intercept-${configuration.instanceName}")
"amplitude-identify-intercept-${configuration.instanceName}"
)

val identityConfiguration = generateIdentityConfiguration(amplitude, configuration)
storageDirectories.add(identityConfiguration.storageDirectory)
Expand All @@ -81,7 +81,6 @@ internal class AndroidStorageContextV2(
)
}


private fun createAndroidStorage(
configuration: Configuration,
storageDirName: String,
Expand Down Expand Up @@ -123,4 +122,4 @@ internal class AndroidStorageContextV2(
}
}
}
}
}
1 change: 0 additions & 1 deletion id/src/main/java/com/amplitude/id/FileIdentityStorage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.amplitude.id

import com.amplitude.id.utilities.PropertiesFile
import com.amplitude.id.utilities.createDirectory
import java.io.File

class FileIdentityStorage(val configuration: IdentityConfiguration) : IdentityStorage {
private val propertiesFile: PropertiesFile
Expand Down

0 comments on commit 19f98f3

Please sign in to comment.