Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.freeyourgadget:greendao:V2.1.0'
}
dependencies {
implementation("com.github.freeyourgadget:greendao:V2.1.0")
}
<dependency>
<groupId>com.github.freeyourgadget</groupId>
<artifactId>greendao</artifactId>
<version>V2.1.0</version>
</dependency>
libraryDependencies += "com.github.freeyourgadget" % "greendao" % "V2.1.0"
:dependencies [[com.github.freeyourgadget/greendao "V2.1.0"]]
greenDAO is a light & fast ORM solution for Android that maps objects to SQLite databases. Being highly optimized for Android, greenDAO offers great performance and consumes minimal memory.
<font size="+1">Home page, documentation, and support links: http://greenrobot.org/greendao/</font>
greenDAO's unique set of features:
greenDAO is available on Maven Central. Please ensure that you are using the latest versions by checking here and here
Gradle dependency for your Android app:
compile 'org.greenrobot:greendao:2.2.0'
Gradle dependency for your Java generator project:
compile 'org.greenrobot:greendao-generator:2.2.0'
Note: to use encrypted databases using SQLCipher, you need to reference different artifacts (postfix '-encryption'). For all details, please refer to the documentation on database encryption.
For more details on greenDAO please check greenDAO's website. Here are some direct links you may find useful:
Those features are already here for you to try out. Note: Documentation and test coverage may be lacking, and the API may change in the future.
EventBus is a central publish/subscribe bus for Android with optional delivery threads, priorities, and sticky events. A great tool to decouple components (e.g. Activities, Fragments, logic components) from each other.
Essentials is a set of utility classes and hash functions for Android & Java projects.
Follow us on Google+ to stay up to date.