Realm : add realm-kotlin dependencies

This commit is contained in:
ganfra 2022-07-21 17:04:31 +02:00
parent 4c496bb148
commit 52ebe74302
4 changed files with 23 additions and 12 deletions

View File

@ -28,7 +28,6 @@ def glide = "4.13.2"
def bigImageViewer = "1.8.1" def bigImageViewer = "1.8.1"
def jjwt = "0.11.5" def jjwt = "0.11.5"
def vanniktechEmoji = "0.15.0" def vanniktechEmoji = "0.15.0"
def fragment = "1.5.0" def fragment = "1.5.0"
// Testing // Testing
@ -161,6 +160,9 @@ ext.libs = [
apache : [ apache : [
'commonsImaging' : "org.apache.sanselan:sanselan:0.97-incubator" 'commonsImaging' : "org.apache.sanselan:sanselan:0.97-incubator"
], ],
realm : [
'base' : "io.realm.kotlin:library-base:${realmKotlinVersion}"
],
tests : [ tests : [
'kluent' : "org.amshove.kluent:kluent-android:1.68", 'kluent' : "org.amshove.kluent:kluent-android:1.68",
'timberJunitRule' : "net.lachlanmckee:timber-junit-rule:1.0.1", 'timberJunitRule' : "net.lachlanmckee:timber-junit-rule:1.0.1",

View File

@ -138,6 +138,7 @@ ext.groups = [
'io.opencensus', 'io.opencensus',
'io.reactivex.rxjava2', 'io.reactivex.rxjava2',
'io.realm', 'io.realm',
'io.realm.kotlin',
'it.unimi.dsi', 'it.unimi.dsi',
'jakarta.activation', 'jakarta.activation',
'jakarta.xml.bind', 'jakarta.xml.bind',

View File

@ -32,3 +32,6 @@ signing.element.storePath=pathTo.keystore
signing.element.storePassword=Secret signing.element.storePassword=Secret
signing.element.keyId=Secret signing.element.keyId=Secret
signing.element.keyPassword=Secret signing.element.keyPassword=Secret
# This belongs here as it's the only way to share the version number between the plugin and the library.
realmKotlinVersion = 1.0.1

View File

@ -1,14 +1,3 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-parcelize'
apply plugin: 'realm-android'
apply plugin: "org.jetbrains.dokka"
if (project.hasProperty("coverage")) {
apply plugin: 'jacoco'
}
buildscript { buildscript {
repositories { repositories {
// Do not use `mavenCentral()`, it prevents Dependabot from working properly // Do not use `mavenCentral()`, it prevents Dependabot from working properly
@ -21,6 +10,21 @@ buildscript {
} }
} }
plugins {
id("io.realm.kotlin") version "${realmKotlinVersion}"
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-parcelize'
apply plugin: 'realm-android'
apply plugin: "org.jetbrains.dokka"
if (project.hasProperty("coverage")) {
apply plugin: 'jacoco'
}
dokkaHtml { dokkaHtml {
dokkaSourceSets { dokkaSourceSets {
configureEach { configureEach {
@ -172,6 +176,7 @@ dependencies {
// Database // Database
implementation 'com.github.Zhuinden:realm-monarchy:0.7.1' implementation 'com.github.Zhuinden:realm-monarchy:0.7.1'
implementation libs.realm.base
kapt 'dk.ilios:realmfieldnameshelper:2.0.0' kapt 'dk.ilios:realmfieldnameshelper:2.0.0'