Skip to content

Commit

Permalink
feat: print available scope providers
Browse files Browse the repository at this point in the history
  • Loading branch information
Mufanc committed Feb 18, 2024
1 parent 4a2cc9c commit 51f1763
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ object ScopeManager {
}

fun init(ixp: XposedInterface) {
ScopeProvider::class.sealedSubclasses.forEach { klass ->
val providers = ScopeProvider::class.sealedSubclasses

Log.d(TAG, "scope providers: ${providers.joinToString(", ") { "${it.simpleName}" }}")

providers.forEach { klass ->
val provider = klass.objectInstance!!

if (!provider.isAvailable()) return@forEach
Expand Down

0 comments on commit 51f1763

Please sign in to comment.