-
I have a very basic Android POC project that just sets up an eclipse-score, starts it and attempts to store an item. Using eclipse-store version 1.4.0 I get the following Exception, when calling When I use the most recent version 2.0.0, it crashes even earlier in the initialization phase of I guess I'm missing some or using the wrong configuration. The POC code looks like this: class EclipseStore(context: Context) {
private val storeData = File(context.filesDir, "store-data")
val store = EmbeddedStorageConfiguration.Builder()
.setStorageDirectory(storeData.absolutePath)
.setChannelCount(1)
.createEmbeddedStorageFoundation()
.createEmbeddedStorageManager()
}
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val store = EclipseStore(applicationContext).store
store.start()
store.setRoot(StoreRoot())
val root = store.root() as StoreRoot
root.items.put("Key", MyItem("Item-One", "Description-One"))
store.store(root.items);
setContent {
// UI-Stuff
}
}
} Configbuild.gradle.kts:
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
}
versions (libs.versions.toml):
[versions]
agp = "8.6.0"
kotlin = "1.9.0"
coreKtx = "1.10.1"
junit = "4.13.2"
junitVersion = "1.1.5"
espressoCore = "3.5.1"
lifecycleRuntimeKtx = "2.6.1"
activityCompose = "1.8.0"
composeBom = "2024.04.01"
eclipseStore = "1.4.0"
#eclipseStore = "2.0.0"
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Or does anybody maybe just have a (simple) working example project for using eclipse-store with Kotlin on Android? |
Beta Was this translation helpful? Give feedback.
-
We broke the android compatibility by adding JMX support and the SetFromMap handler. |
Beta Was this translation helpful? Give feedback.
We broke the android compatibility by adding JMX support and the SetFromMap handler.
added related issues #325 and #326