kotlinx.reflect.lite alternatives and similar libraries
Based on the "Misc" category.
Alternatively, view kotlinx.reflect.lite alternatives based on common mentions on social networks and blogs.
-
jclasslib
jclasslib bytecode viewer is a tool that visualizes all aspects of compiled Java class files and the contained bytecode. -
kotlin-logging
Lightweight logging framework for Kotlin. Used as a wrapper for slf4j with Kotlin extensions. -
kotlinx-datetime
A multiplatform Kotlin library for working with date and time. -
klock
Consistent and portable date and time utilities for multiplatform kotlin (JVM, JS and Common). -
kotlinx.atomicfu
The idiomatic way to use atomic operations in Kotlin. -
kotlin-telegram-bot
A wrapper for the Telegram Bot API written in Kotlin. -
better-parse
A nice parser combinator library for Kotlin -
Humanizer.jvm
Humanizer.jvm meets all your jvm needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities. -
actions-on-google-kotlin
Port of official Node.js SDK to Kotlin. Complete with all features and tests and nearly identical API. -
klutter
A mix of random small libraries for Kotlin, the smallest reside here until big enough for their own repository. -
solr-undertow
Solr Standalone Tiny and High performant server. -
kotlin-hashids
Library that generates short, unique, non-sequential hashes from numbers. -
SimpleDNN
SimpleDNN is a machine learning lightweight open-source library part of KotlinNLP and has been designed to support relevant neural network architectures in natural language processing tasks. -
kassava
This library provides some useful kotlin extension functions for implementing toString() and equals() without all of the boilerplate. -
koda-time
Joda Time Extensions in Kotlin. (From Java 8 use java.time instead) -
kotlin-futures
A collections of extension functions to make the JVM Future, CompletableFuture, ListenableFuture API more functional and Kotlin like. -
units-of-measure
A type-safe dimensional analysis library for Kotlin. -
scientist
A kotlin library for refactoring code. Port of GitHub's scientist. -
KDispatcher
Simple and light-weight event dispatcher for Kotlin -
kasechange
Multiplatform Kotlin library to convert strings between various case formats including Camel Case, Snake Case, Pascal Case and Kebab Case -
PrimeCalendar
Provides all of the java.util.Calendar functionalities for Civil, Persian, Hijri, Japanese, etc, as well as their conversion to each other. -
kotlin-times
A simple utility library for readable loops. -
kotlin-pluralizer
Kotlin extension to pluralize and singularize strings. -
kase-format
String case conversion and detection library
Get performance insights in less than 4 minutes.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of kotlinx.reflect.lite or a related project?
README
kotlinx.reflect.lite
This library provides an API to introspect Kotlin symbols at runtime. Its main feature is the small size which makes it possible to use it on memory-constrained devices.
Maven
Add jcenter repository (if you don't have it yet)
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>bintray</name>
<url>https://jcenter.bintray.com</url>
</repository>
Add a dependency:
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx.reflect.lite</artifactId>
<version>1.0.0</version>
</dependency>
Gradle
jcenter is configured by default in gradle however you may need to include it in some cases
repositories {
jcenter()
}
Add a dependency:
compile 'org.jetbrains.kotlinx:kotlinx.reflect.lite:1.0.0'
FAQ
Why not just use Java reflection instead?
Java reflection cannot figure out Kotlin-specific features of the introspected program. For example, nullability of Kotlin types is erased in JVM bytecode.
Also parameter names were not supported in Java reflection until Java 8.
Why not just use Kotlin reflection instead?
While Kotlin has its own reflection library, its size is currently above 2Mb which may be unacceptable in some circumstances, for example on Android.
The size of the minimized version of this library is about 100Kb plus the dependency on protobuf-java.
What is supported?
Currently the only supported features are names of parameters and nullability of their types.