From e969cc9882553f024dbedb580947b10e0143300c Mon Sep 17 00:00:00 2001 From: Graham Date: Mon, 23 Dec 2019 19:59:42 +0000 Subject: [PATCH] Convert Bundler to Kotlin --- .../java/dev/openrs2/bundler/Bundler.java | 21 ------------------- .../main/java/dev/openrs2/bundler/Bundler.kt | 17 +++++++++++++++ 2 files changed, 17 insertions(+), 21 deletions(-) delete mode 100644 bundler/src/main/java/dev/openrs2/bundler/Bundler.java create mode 100644 bundler/src/main/java/dev/openrs2/bundler/Bundler.kt diff --git a/bundler/src/main/java/dev/openrs2/bundler/Bundler.java b/bundler/src/main/java/dev/openrs2/bundler/Bundler.java deleted file mode 100644 index 94e61d8f..00000000 --- a/bundler/src/main/java/dev/openrs2/bundler/Bundler.java +++ /dev/null @@ -1,21 +0,0 @@ -package dev.openrs2.bundler; - -import com.google.common.collect.ImmutableList; -import dev.openrs2.asm.transform.Transformer; -import dev.openrs2.bundler.transform.BufferSizeTransformer; -import dev.openrs2.bundler.transform.CachePathTransformer; -import dev.openrs2.bundler.transform.HostCheckTransformer; -import dev.openrs2.bundler.transform.LoadLibraryTransformer; -import dev.openrs2.bundler.transform.MacResizeTransformer; -import dev.openrs2.bundler.transform.RightClickTransformer; - -public final class Bundler { - public static final ImmutableList TRANSFORMERS = ImmutableList.of( - new BufferSizeTransformer(), - new CachePathTransformer(), - new HostCheckTransformer(), - new MacResizeTransformer(), - new RightClickTransformer(), - new LoadLibraryTransformer() - ); -} diff --git a/bundler/src/main/java/dev/openrs2/bundler/Bundler.kt b/bundler/src/main/java/dev/openrs2/bundler/Bundler.kt new file mode 100644 index 00000000..9882ea38 --- /dev/null +++ b/bundler/src/main/java/dev/openrs2/bundler/Bundler.kt @@ -0,0 +1,17 @@ +package dev.openrs2.bundler + +import dev.openrs2.bundler.transform.* + +class Bundler { + companion object { + @JvmField + val TRANSFORMERS = listOf( + BufferSizeTransformer(), + CachePathTransformer(), + HostCheckTransformer(), + MacResizeTransformer(), + RightClickTransformer(), + LoadLibraryTransformer() + ) + } +}