Skip to content

Commit c80b01f

Browse files
committed
BaseHook: Use application ID instead of build type for cache filename
1 parent a9da2b4 commit c80b01f

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/java/io/github/chsbuffer/revancedxposed

1 file changed

+1
-1
lines changed

app/src/main/java/io/github/chsbuffer/revancedxposed/BaseHook.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ data class Pairs(
9090
@Suppress("UNCHECKED_CAST")
9191
@OptIn(ExperimentalSerializationApi::class)
9292
class SharedPrefCache(app: Application) : DexKitCacheBridge.Cache {
93-
val file = File(app.cacheDir.path, BuildConfig.BUILD_TYPE.toSha256())
93+
val file = File(app.cacheDir.path, BuildConfig.APPLICATION_ID.toSha256())
9494

9595
val pref = runCatching { ProtoBuf.decodeFromByteArray<Pairs>(file.readBytes()) }.getOrElse {
9696
Pairs(mutableMapOf())

0 commit comments

Comments
 (0)