Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ fun removeLegacyData(preferences: SharedPreferences) {
remove(LegacyGDPRChildPmId.PREFS_KEY)
remove(LegacyCCPAChildPmId.PREFS_KEY)
remove(LegacyUSNATChildPmId.PREFS_KEY)
unusedSPKeys.forEach { remove(it) }
commit()
}
}
Expand Down Expand Up @@ -254,7 +255,7 @@ data class GDPRLegacyConsent(
val vendorListId: String,
val webConsentPayload: JsonObject?,
val expirationDate: String,
val gcmStatus: GDPRConsent.GCMStatus
val gcmStatus: GDPRConsent.GCMStatus?
) {
companion object {
const val PREFS_KEY = "sp.gdpr.key.consent.status"
Expand Down Expand Up @@ -420,3 +421,13 @@ class LegacyUSNATChildPmId {
const val PREFS_KEY = "sp.usnat.key.childPmId"
}
}

private val unusedSPKeys = listOf(
"sp.gdpr.key.expiration.date",
"sp.ccpa.key.expiration.date",
"sp.usnat.key.expiration.date",
"sp.gdpr.consentUUID",
"sp.ccpa.consentUUID",
"sp.usnat.consentUUID",
"sp.key.config.propertyId"
)