mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-04-29 22:24:35 +02:00
fix(core): config override
Snapchat plus override Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>
This commit is contained in:
parent
2ef0e54168
commit
bee1b7bd03
@ -137,12 +137,6 @@ class ConfigurationOverride : Feature("Configuration Override") {
|
||||
propertyOverride.isAppExperiment.takeIf { propertyOverride.filter(keyInfo) }?.let { param.setResult(it) }
|
||||
}
|
||||
}
|
||||
|
||||
if (context.config.experimental.hiddenSnapchatPlusFeatures.get()) {
|
||||
customBooleanPropertyRules.add { key ->
|
||||
key.category == "PLUS" && key.defaultValue is Boolean && key.name?.endsWith("_GATE") == true
|
||||
}
|
||||
}
|
||||
}.onFailure {
|
||||
context.log.error("Failed to hook appExperimentProvider", it)
|
||||
}
|
||||
|
@ -4,7 +4,6 @@ import me.rhunk.snapenhance.core.features.Feature
|
||||
import me.rhunk.snapenhance.core.util.hook.HookStage
|
||||
import me.rhunk.snapenhance.core.util.hook.hook
|
||||
import me.rhunk.snapenhance.core.util.hook.hookConstructor
|
||||
import me.rhunk.snapenhance.core.util.ktx.getObjectField
|
||||
import me.rhunk.snapenhance.core.util.ktx.setObjectField
|
||||
import me.rhunk.snapenhance.mapper.impl.PlusSubscriptionMapper
|
||||
|
||||
@ -35,7 +34,6 @@ class SnapchatPlus: Feature("SnapchatPlus") {
|
||||
}
|
||||
}
|
||||
|
||||
// optional as ConfigurationOverride does this too
|
||||
if (context.config.experimental.hiddenSnapchatPlusFeatures.get()) {
|
||||
findClass("com.snap.plus.FeatureCatalog").methods.last {
|
||||
!it.name.contains("init") &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user