mirror of
https://git.neonteam.dev/amizing/robinsr-android-server.git
synced 2025-03-12 03:33:29 -04:00
18 lines
371 B
Kotlin
18 lines
371 B
Kotlin
package dev.amizing25.robinsr
|
|
|
|
import dev.amizing25.robinsr.logging.LogRepository
|
|
|
|
class RustLib {
|
|
companion object {
|
|
init {
|
|
System.loadLibrary("robinsr")
|
|
}
|
|
}
|
|
external fun init(path: String)
|
|
external fun startServer()
|
|
external fun stopServer()
|
|
|
|
fun onLog(message: String) {
|
|
LogRepository.addLog(message)
|
|
}
|
|
} |