mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 16:09:21 +08:00
Use actual canonical name rather than implicit toString() (#1069)
This commit is contained in:
@@ -47,7 +47,7 @@ internal data class ProguardConfig(
|
|||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
val targetName = targetClass.canonicalName
|
val targetName = targetClass.canonicalName
|
||||||
val adapterCanonicalName = ClassName(targetClass.packageName, adapterName)
|
val adapterCanonicalName = ClassName(targetClass.packageName, adapterName).canonicalName
|
||||||
// Keep the class name for Moshi's reflective lookup based on it
|
// Keep the class name for Moshi's reflective lookup based on it
|
||||||
appendln("-if class $targetName")
|
appendln("-if class $targetName")
|
||||||
appendln("-keepnames class $targetName")
|
appendln("-keepnames class $targetName")
|
||||||
|
Reference in New Issue
Block a user