Skip to content

Commit

Permalink
Add package for Java library compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
cypherdare committed Mar 13, 2022
1 parent eca09a8 commit e6052ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ group = "com.github.14v"
version = "1.1.2"

application {
mainClass.set("NonStopKt")
mainClass.set("com.github.fourteenv.NonStopKt")
}

repositories {
Expand Down
4 changes: 4 additions & 0 deletions src/main/kotlin/NonStop.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package com.github.fourteenv

import org.w3c.dom.NamedNodeMap
import org.w3c.dom.Node
import org.w3c.dom.NodeList
Expand All @@ -17,13 +19,15 @@ object NonStop {
/**
* Whether to log verbosely when processing.
*/
@JvmStatic
var optionVerbose = false

/**
* Modifies the given XML [rootNodes] to repair missing stop info so the SVG can be
* 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) {
Expand Down

0 comments on commit e6052ad

Please sign in to comment.