From 0390336d509c10f4d4b9075db5bd1ac9585a9247 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 13 Nov 2022 20:01:46 +0530 Subject: [PATCH] feat(core): introduce the `AppPlugin` interface --- .../dev/msfjarvis/claw/core/injection/AppPlugin.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 core/src/main/kotlin/dev/msfjarvis/claw/core/injection/AppPlugin.kt diff --git a/core/src/main/kotlin/dev/msfjarvis/claw/core/injection/AppPlugin.kt b/core/src/main/kotlin/dev/msfjarvis/claw/core/injection/AppPlugin.kt new file mode 100644 index 00000000..e4424093 --- /dev/null +++ b/core/src/main/kotlin/dev/msfjarvis/claw/core/injection/AppPlugin.kt @@ -0,0 +1,14 @@ +/* + * Copyright © 2022 Harsh Shandilya. + * Use of this source code is governed by an MIT-style + * license that can be found in the LICENSE file or at + * https://opensource.org/licenses/MIT. + */ +package dev.msfjarvis.claw.core.injection + +import android.app.Application + +/** Basic plugin-based architecture for doing things at [Application] initialization. */ +interface AppPlugin { + fun apply(application: Application) +}