From e6052adcb0c3007e2f8270546b2fa203d747ca57 Mon Sep 17 00:00:00 2001 From: cypherdare Date: Sat, 12 Mar 2022 21:33:40 -0500 Subject: [PATCH] Add package for Java library compatibility --- build.gradle.kts | 2 +- src/main/kotlin/NonStop.kt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 81b9160..3ce5eab 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,7 +9,7 @@ group = "com.github.14v" version = "1.1.2" application { - mainClass.set("NonStopKt") + mainClass.set("com.github.fourteenv.NonStopKt") } repositories { diff --git a/src/main/kotlin/NonStop.kt b/src/main/kotlin/NonStop.kt index 7811ba9..da7bdb4 100644 --- a/src/main/kotlin/NonStop.kt +++ b/src/main/kotlin/NonStop.kt @@ -1,3 +1,5 @@ +package com.github.fourteenv + import org.w3c.dom.NamedNodeMap import org.w3c.dom.Node import org.w3c.dom.NodeList @@ -17,6 +19,7 @@ object NonStop { /** * Whether to log verbosely when processing. */ + @JvmStatic var optionVerbose = false /** @@ -24,6 +27,7 @@ object NonStop { * converted to an Android vector asset by the Android build tools. * @return whether any changes were made. */ + @JvmStatic fun processSvg(rootNodes: NodeList): Boolean { val defsNode = rootNodes.findNode("defs") if (defsNode == null) {