Graham
6b247cb0e1
Add ByteBuf extension methods for RSA encryption and decryption
5 years ago
Graham
e64dbe1a0e
Add generateKeyPair() test
5 years ago
Graham
0f767c86eb
Add textbook RSA encryption and decryption
5 years ago
Graham
808c80e896
Add initial public key transformer
5 years ago
Graham
101548e5b7
Add RSA key generation and I/O
5 years ago
Graham
353b8f0834
Add thread-local secureRandom property
5 years ago
Graham
1a19c24dcd
Mention semver in the README
5 years ago
Graham
a684c0212d
Load natives from new location below dev.openrs2
5 years ago
Graham
b05ce1e96f
Add ResouceTransformer skeleton
5 years ago
Graham
02d3867f4c
Add platform detection transformer
5 years ago
Graham
099d9c591d
Replace listOf() with emptyList()
...
I think this makes the meaning slightly clearer.
5 years ago
Graham
41dac20719
Make @Override annotations invisible
...
Normally they wouldn't be retained in the bytecode at all, but for obvious
reasons we can't do that! Making them invisible is at least closer to the
RetentionPolicy's intention than a visible annotation.
5 years ago
Graham
5038d1d671
Replace ByteStreams with Kotlin extension method
5 years ago
Graham
06b8af41e2
Replace Stream with Sequence
5 years ago
Graham
250062a72f
Set buffer size to 65,536 bytes
...
Although this is one byte larger than it needs to be to hold the largest
possible packet, I think using a power of two is nicer.
5 years ago
Graham
1db43aef04
Update dependencies
5 years ago
Graham
57ed35465a
Update copyright year
5 years ago
Graham
56c4dfe3c2
Add netscape.javascript.JSObject stubs
...
This is the bare minimum required to build the client. Returning null in
getWindow() makes this class appropriate for use at runtime too, as the
function is documented as returning null if the application is not
connected to a browser.
5 years ago
Graham
98692c7d78
Add Java 8 compatibility
...
As a result of the Kotlin port, using Java 11 becomes less important.
Java 8 is still fairly widespread, so I think supporting it is still
worthwhile.
5 years ago
Graham
8ccbea16f1
Add ktlint to the README
5 years ago
Graham
17efd0f891
Update dependencies
5 years ago
Graham
7d1dc59d6a
Convert pre-increments to post-increments where possible
5 years ago
Graham
c2809a16f8
Add OverrideTransformer
5 years ago
Graham
2ebcb3507b
Update openrs2-parent
...
It includes the ktlint plugin.
5 years ago
Graham
7477f72acc
Update IDEA's code style to match ktlint
5 years ago
Graham
e9a9a8f962
Format with ktlint
5 years ago
Graham
10052a7a08
Update dependencies
5 years ago
Graham
46ea157ee1
Add IDEA run configurations
5 years ago
Graham
3ff8d7f332
Remove Dagger
...
I think I'm going to use Guice instead, as kapt doesn't integrate very
well with IDEA's built-in build system.
5 years ago
Graham
4df5754dac
Include generics in Function cast
...
The Kotlin compiler was happy with the old code, but IDEA wasn't.
Including the generics explicitly in the cast makes both happy.
5 years ago
Graham
77e8b0cdc0
Use top-level Kotlin main() functions
5 years ago
Graham
a99d5973ae
Replace Guice's repeat with Kotlin's
5 years ago
Graham
5c367073c0
Use named parameters for clarity in Deobfuscator
5 years ago
Graham
15e9636b79
Replace Guava ImmutableList with Kotlin List in ClassPath
5 years ago
Graham
86fe02f32d
Remove @JvmStatic annotations
...
We only need to keep it on the main() methods for the moment.
5 years ago
Graham
1647a3e641
Remove @JvmField annotation
...
We don't need it now we have no more Java code left.
5 years ago
Graham
0b834fb223
Remove @Throws annotations
...
We don't need them now we have no more Java code left.
5 years ago
Graham
136e43ae82
Convert GameServer to Kotlin
5 years ago
Graham
01ec848d49
Remove blocks in NegativeLiteralTransformer when statement
...
Each case is very simple so I don't think we need to bother with the blocks.
5 years ago
Graham
130a05956e
Convert ExprUtils to Kotlin
5 years ago
Graham
fc00d69539
Convert TypeUtils to Kotlin
5 years ago
Graham
e3baede541
Convert NodeUtils to Kotlin
...
This commit also changes walk() to be an extension function and use reified
generics.
5 years ago
Graham
9f09a81db1
Convert EncloseTransformer to Kotlin
5 years ago
Graham
53160e422d
Convert IfElseTransformer to Kotlin
5 years ago
Graham
9b81c813dd
Convert AstDeobfuscator to Kotlin
5 years ago
Graham
6425a874fd
Convert AddSubTransformer to Kotlin
5 years ago
Graham
e357f07c27
Convert BinaryExprOrderTransformer to Kotlin
5 years ago
Graham
5b032c980f
Convert BitMaskTransformer to Kotlin
5 years ago
Graham
8ac16d722b
Convert ComplementTransformer to Kotlin
5 years ago
Graham
d5cee1b2f5
Make NewInstanceTransformer idempotent
5 years ago