Convert Bundler to Kotlin

bzip2
Graham 5 years ago
parent a3e5a19811
commit e969cc9882
  1. 21
      bundler/src/main/java/dev/openrs2/bundler/Bundler.java
  2. 17
      bundler/src/main/java/dev/openrs2/bundler/Bundler.kt

@ -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<Transformer> TRANSFORMERS = ImmutableList.of(
new BufferSizeTransformer(),
new CachePathTransformer(),
new HostCheckTransformer(),
new MacResizeTransformer(),
new RightClickTransformer(),
new LoadLibraryTransformer()
);
}

@ -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()
)
}
}
Loading…
Cancel
Save