/android-architecture-components

Samples for Using Android Architecture Components w/ Realm

Primary LanguageJavaApache License 2.0Apache-2.0

Android Architecture Components + Realm sample

A Sample using the Architecture Components w/ Realm:

  • Realm
  • Lifecycle-aware components
  • ViewModels
  • LiveData
  • DAO pattern

It is based off of the Android Architecture Compnents sample project provided by Google. This includes this README which is essentially the Google Readme with the relevant Room/SQLite parts swapped for Realm where it makes sense.

The intent of this fork, is to provide Realm users with knowlege of how to use Realm within the recommened architecture of Google and Architecture Components. The examples are nearly identical with only the source of the data coming from Realm instead of SQLite.

  • Shows how to persist data using a Realm database, uses ViewModels, LiveData, DAOs, Transformations .map, switchMap, and the Dao Pattern with Realm.

This is based off of the AndroidArchitectureComponents BasicSample.

License

Copyright 2015 The Android Open Source Project, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.