Samples demonstrating the usage of Realm-Kotlin SDK

Overview

Realm-Kotlin Samples

This repository contains a set of projects to help you learn about using Realm-Kotlin SDK Each sample demonstrates different use cases.

💻 Requirements

To try out these sample apps, clone the repository then import each project as an existing Android Studio project. Samples are based on Kotlin 1.5.

🧬 Samples

Project
Intro:
This is a simple example based on the official KMM Sample
Bookshelf:
A more elaborate example using a shared business logic in Ktor, Kotlinx.Serialization and Realm, combined with a platform specific UI using Jetpack Compose and SwiftUI
Comments
  • Crashes when minify enabled on Android

    Crashes when minify enabled on Android

    This sample app, when minify is set to true in the android build.gradle.kts crashes on startup with the following error:

    /Users/realm/workspace-realm-kotlin/releases/packages/cinterop/src/jvm/jni/java_class.cpp:49: [realm-core-11.15.0] Assertion failed: cls with (class_name) = ["io/realm/internal/interop/sync/NetworkTransport"]

    O-Community 
    opened by fredpedersen 3
  • Update Sync sample to Realm Kotlin 1.4.0

    Update Sync sample to Realm Kotlin 1.4.0

    This PR improves the Sync demo:

    • Updating to Realm Kotlin 1.4.0 including all dependencies
    • Use Flexible Sync instead of Partition-based Sync

    TODO

    • [x] Add "offline" button to demonstrate offline merge behavior.
    cla: yes 
    opened by cmelchior 1
  • Update local samples to Realm Kotlin 1.4.0

    Update local samples to Realm Kotlin 1.4.0

    Update sample projects so they use Realm Kotlin 1.4.0 including latest versions of AGP, Ktor, Compose and other dependencies.

    Also removed the mention of various restrictions in README's that no longer apply.

    cla: yes 
    opened by cmelchior 1
  • Update to Realm Kotlin 1.0.0

    Update to Realm Kotlin 1.0.0

    This PR updates all samples to use Realm Kotlin 1.0.0 and adjusts imports according to top level package renaming/restructuring as described in https://github.com/realm/realm-kotlin/blob/v1.0.0/CHANGELOG.md

    cla: yes 
    opened by rorbech 1
  • Enable sync for multiplatform demo

    Enable sync for multiplatform demo

    This is just a draft PR to show the necessary reconfigurations needed to enable sync. I think we should aim for having a separate example with sync enabled.

    cla: yes 
    opened by rorbech 1
  • Add new link for how to create an Atlas account

    Add new link for how to create an Atlas account

    Using the old link gave you a 404 error, don't know precisely how the previous guide looked like but I assume that the new link I provided will be working fine

    cla: yes 
    opened by JacobOscarGunnarsson 0
  • Native Distribution

    Native Distribution

    After creating native distribution, installed apps not working. I tried Mac and Linux desktops with dmg and deb files. Adding working examples to samples would be great.

    O-Community 
    opened by mehmetakify 2
Owner
Realm
Realm is a mobile database: a replacement for SQLite & ORMs. SDKs for Swift, Objective-C, Java, Kotlin, C#, and JavaScript.
Realm
Realm is a mobile database: a replacement for SQLite & ORMs

Realm is a mobile database that runs directly inside phones, tablets or wearables. This repository holds the source code for the Java version of Realm

Realm 11.4k Jan 2, 2023
A simple ToDo app to demonstrate the use of Realm Database in android to perform some basic CRUD operations like Create, Update and Delete.

Creating a Realm Model Class @RealmClass open class Note() : RealmModel { @PrimaryKey var id: String = "" @Required var title: String

Joel Kanyi 15 Dec 18, 2022
Code samples for the second edition of "Kotlin in Action".

Code samples for Kotlin in Action, Second Edition This project contains the code samples from book "Kotlin in Action, Second Edition" by Roman Elizaro

Kotlin 16 Dec 29, 2022
Kotlin-Exposed-SQL - Example of using Exposed with Kotlin for the consumption of relational SQL Databases

Kotlin Exposed SQL Sencillo ejemplo sobre el uso y abuso de Exposed ORM de Jetbr

José Luis González Sánchez 3 Jun 14, 2022
requery - modern SQL based query & persistence for Java / Kotlin / Android

A light but powerful object mapping and SQL generator for Java/Kotlin/Android with RxJava and Java 8 support. Easily map to or create databases, perfo

requery 3.1k Dec 29, 2022
A Java/Kotlin library for Android platform, to manage bean's persistence in SQLite, SharedPreferences, JSON, XML, Properties, Yaml, CBOR.

Thanks to JetBrains for support Kripton Persistence Library project! Kripton Persistence Library Kripton is a java library, for Android platform, that

xcesco 117 Nov 11, 2022
Upsert DSL extension for Exposed, Kotlin SQL framework

Exposed Upsert Upsert DSL extension for Exposed, Kotlin SQL framework. Project bases on various solutions provided by community in the official "Expos

Dzikoysk 23 Oct 6, 2022
Upsert DSL extension for Exposed, Kotlin SQL framework

Exposed Upsert Upsert DSL extension for Exposed, Kotlin SQL framework. Project bases on various solutions provided by community in the official "Expos

Reposilite Playground 23 Oct 6, 2022
sql-delight example, a plugin by Square which is pure kotlin and it is useful in kmm

Sql-Delight-Example01 Developed by Mahdi Razzaghi Ghaleh first example of sql-delight What is SqlDelight? Kotlin Multiplatform is one of the most inte

rq_mehdi 0 Jan 24, 2022
RecordMe - Record your voice application with kotlin

RecordMe A simple voice recording app. Made Using : Kotlin, Navigation Component

Steve Waweru 2 Apr 28, 2022
Starter code for Android Kotlin Fundamentals Codelab 6.1 Room

TrackMySleepQuality - Starter Code Starter code for Android Kotlin Fundamentals Codelab 6.1 Room Introduction TrackMySleepQuality is an app for record

YamanAswal 0 Jan 15, 2022
BookSearchApp - Book Search App With Kotlin

BookSearchApp IT Book Search App Search IT books with keyword and view informati

null 1 Feb 7, 2022
Memory objects for Kotlin/JVM and Java

Memoria Why should an object care about where to store their bytes? Examples Basics RAM can used as a memory storage: val ram: BytesMemory = RamMemory

null 6 Jul 29, 2022
JAKO: Just Another Kotlin Orm (PostgreSQL)

JAKO: Just Another Kotlin Orm (PostgreSQL) JAKO is a simple, minimal, no-dependency library to build and execute postgresql statements using a fluent

Alessio 6 May 27, 2022
A MySQL connector wrapper that supports mapping to Kotlin classes.

Racoon Racoon is a wrapper for the MySQL connector. It makes communicating with the database easier by providing a bunch of functionalities: Mapping q

null 1 Jun 3, 2022
Room Database Queries with Kotlin Flow

Room Database Queries with Flow This app displays a list of bus stops and arrival times. Tapping a bus stop on the first screen will display a list of

asifj96 0 Apr 26, 2022
SurrealDB Kotlin implementation.

Kotlin Surreal Database API KSDB | by Necrosis SurrealDB framework for Kotlin Documentation · Report Bug · Request Feature ?? Table of Contents ?? Tab

Necrosis 5 Nov 22, 2022
Multiple samples demonstrating Search API usage in Android.

Search Samples Repository This repository contains a set of individual Android Studio projects to help you get started writing apps that take advantag

Android 43 Dec 16, 2022
Samples demonstrating the features and use of Koala Plot, a Compose Multiplatform based charting and plotting library written in Kotlin.

Koala Plot Samples This repository houses samples demonstrating the use and features of Koala Plot libraries. How to run Build koalaplot-core with the

Koala Plot 6 Oct 18, 2022
This repository contains RabbitMQ Protobuf starters with its usage samples for spring-rabbit and spring-cloud-starter-stream-rabbit modules

This repository contains RabbitMQ Protobuf starters with its usage samples for spring-rabbit and spring-cloud-starter-stream-rabbit modules

Maksim Kostromin 2 Nov 29, 2021