From d41dc698f9ef4c97883eb252d2f30f0d891ba426 Mon Sep 17 00:00:00 2001 From: AbdElraouf Sabri Date: Mon, 18 Jul 2022 02:46:11 +0200 Subject: [PATCH] feat: add static SDK (#6) --- sdk/src/main/java/dev/abd3lraouf/learn/sdk/Sdk.kt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/sdk/src/main/java/dev/abd3lraouf/learn/sdk/Sdk.kt b/sdk/src/main/java/dev/abd3lraouf/learn/sdk/Sdk.kt index 813977d..34d91c3 100644 --- a/sdk/src/main/java/dev/abd3lraouf/learn/sdk/Sdk.kt +++ b/sdk/src/main/java/dev/abd3lraouf/learn/sdk/Sdk.kt @@ -14,14 +14,12 @@ package dev.abd3lraouf.learn.sdk @Suppress("unused") -class Sdk { - companion object { - fun init() { - println("sdk init") - } +object Sdk { + fun init() { + println("sdk init") + } - fun destroy() { - println("sdk destroy") - } + fun destroy() { + println("sdk destroy") } }