···11-# Add project specific ProGuard rules here.
22-# You can control the set of applied configuration files using the
33-# proguardFiles setting in build.gradle.
44-#
55-# For more details, see
66-# http://developer.android.com/guide/developing/tools/proguard.html
77-88-# If your project uses WebView with JS, uncomment the following
99-# and specify the fully qualified class name to the JavaScript interface
1010-# class:
1111-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
1212-# public *;
1313-#}
1414-1515-# Uncomment this to preserve the line number information for
1616-# debugging stack traces.
1717-#-keepattributes SourceFile,LineNumberTable
1818-1919-# If you keep the line number information, uncomment this to
2020-# hide the original source file name.
2121-#-renamesourcefileattribute SourceFile
11+-dontobfuscate
···2525 var res = ""
2626 if (hr > 0) res += "${hr}h "
2727 if (hr > 0 || min > 0) res += "${min}m "
2828- res += "${sec}sec"
2828+ res += "${sec}s"
29293030 return res
3131 }
···2233import androidx.room.Dao
44import androidx.room.Insert
55+import androidx.room.OnConflictStrategy
56import androidx.room.Query
67import com.example.util.simpletimetracker.data_local.model.RecordDBO
78···1415 @Query("SELECT * FROM records WHERE id = :id LIMIT 1")
1516 suspend fun get(id: Long): RecordDBO?
16171717- @Insert
1818+ @Insert(onConflict = OnConflictStrategy.REPLACE)
1819 suspend fun insert(record: RecordDBO)
19202021 @Query("DELETE FROM records WHERE id = :id")