File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/main/kotlin/org/fossify/calendar/helpers Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.util.archivesName
2
1
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
2
import org.jetbrains.kotlin.konan.properties.Properties
4
3
import java.io.FileInputStream
@@ -32,9 +31,9 @@ android {
32
31
targetSdk = project.libs.versions.app.build.targetSDK.get().toInt()
33
32
versionCode = project.libs.versions.app.version.versionCode.get().toInt()
34
33
versionName = project.libs.versions.app.version.versionName.get()
35
- archivesName.set(" calendar-$versionCode " )
36
34
multiDexEnabled = true
37
35
vectorDrawables.useSupportLibrary = true
36
+ setProperty(" archivesBaseName" , " calendar-$versionCode " )
38
37
ksp {
39
38
arg(" room.schemaLocation" , " $projectDir /schemas" )
40
39
}
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ class Converters {
11
11
private val attendeeType = object : TypeToken <List <Attendee >>() {}.type
12
12
13
13
@TypeConverter
14
- fun jsonToStringList (value : String ): List <String > {
15
- val newValue = if (value.isNotEmpty () && ! value.startsWith(" [" )) {
14
+ fun jsonToStringList (value : String? ): List <String > {
15
+ val newValue = if (! value.isNullOrEmpty () && ! value.startsWith(" [" )) {
16
16
" [$value ]"
17
17
} else {
18
18
value
You can’t perform that action at this time.
0 commit comments