Skip to content

Commit

Permalink
Feature/fix deprecated methods (#295)
Browse files Browse the repository at this point in the history
* fix deprecated methods

* feat write changelog

* fix for compatibility

---------

Co-authored-by: wasnot <[email protected]>
  • Loading branch information
harukitosa and wasnot authored Sep 6, 2024
1 parent 5f55cc9 commit 60cc6e2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
| visualtracking | ビジュアルトラッキング機能を提供します。| 2.9.0 |
| Karte Gradle Plugin | ビジュアルトラッキング機能に必要なプラグインです。| 2.5.1 |

# Releases - xxxx.xx.xx

### Core 2.25.1
** 🔨FIXED **
- 古い関数の修正を行いました

# Releases - 2024.08.21

### InAppMessaging 2.20.0
Expand Down
3 changes: 2 additions & 1 deletion core/src/main/java/io/karte/android/utilities/Extensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ internal fun <K, V> Map<K, V?>.filterNotNull(): Map<K, V> {
//region Any
/** クラスの小文字表現を返します。 */
@Deprecated("Does not return the name you expect when obfuscated", ReplaceWith(""))
fun Any.getLowerClassName(): String = this::class.java.simpleName.toLowerCase(Locale.ROOT)
@Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN")
fun Any.getLowerClassName(): String = (this::class.java.simpleName as java.lang.String).toLowerCase(Locale.ROOT)

private fun Any?.unwrapJson(): Any? {
return when (this) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private fun getCursorWindowSize(): Int {
}

private class DbHelper(context: Context) :
SQLiteOpenHelper(context, "krt_cache.db", null, persistableContracts.sumBy { it.version }) {
SQLiteOpenHelper(context, "krt_cache.db", null, persistableContracts.sumOf { it.version }) {
override fun onCreate(db: SQLiteDatabase) {
persistableContracts.forEach { contract ->
createTable(db, contract)
Expand Down
2 changes: 1 addition & 1 deletion core/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.25.0
2.25.1

0 comments on commit 60cc6e2

Please sign in to comment.