From fbee8590e470e9a33131ab61bd1b03d220246c1e Mon Sep 17 00:00:00 2001 From: guolindev Date: Sun, 31 May 2020 17:50:21 +0800 Subject: [PATCH] Release 3.1.0 version of LitePal. --- core/build.gradle | 2 +- core/src/main/java/org/litepal/LitePal.kt | 1 + core/src/main/java/org/litepal/extension/LitePal.kt | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/build.gradle b/core/build.gradle index 508237f..902b2f8 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -50,7 +50,7 @@ publish { userOrg = 'sinyu890807' groupId = 'org.litepal.guolindev' artifactId = 'core' - publishVersion = '3.0.1' + publishVersion = '3.1.0' desc = 'An Android library that allows developers to use SQLite database extremely easy' website = 'https://github.com/LitePalFramework/LitePal' } \ No newline at end of file diff --git a/core/src/main/java/org/litepal/LitePal.kt b/core/src/main/java/org/litepal/LitePal.kt index 77a1a1a..69f2894 100644 --- a/core/src/main/java/org/litepal/LitePal.kt +++ b/core/src/main/java/org/litepal/LitePal.kt @@ -1086,6 +1086,7 @@ object LitePal { * * @param collection * Holds all models to save. + * @return True if all records in collection are saved. False none record in collection is saved. There won't be partial saved condition. */ @JvmStatic fun saveAll(collection: Collection) = Operator.saveAll(collection) diff --git a/core/src/main/java/org/litepal/extension/LitePal.kt b/core/src/main/java/org/litepal/extension/LitePal.kt index 0a9d9d4..d9f29f5 100644 --- a/core/src/main/java/org/litepal/extension/LitePal.kt +++ b/core/src/main/java/org/litepal/extension/LitePal.kt @@ -616,6 +616,7 @@ inline fun LitePal.isExist(vararg conditions: String?) = isExist(T:: * * @param collection * Holds all models to save. + * @return True if all records in collection are saved. False none record in collection is saved. There won't be partial saved condition. */ fun Collection.saveAll() = LitePal.saveAll(this) -- GitLab