protected fun mapNameToResourceType()

in ruler-common/src/main/java/com/spotify/ruler/common/apk/ApkSanitizer.kt [76:87]


        protected fun mapNameToResourceType(entry: ApkEntry): ResourceType? {
            val resourceType: ResourceType? = when {
                entry.name.startsWith("/res/drawable") -> ResourceType.DRAWABLE
                entry.name.startsWith("/res/layout") -> ResourceType.LAYOUT
                entry.name.startsWith("/res/raw") -> ResourceType.RAW
                entry.name.startsWith("/res/values") -> ResourceType.VALUES
                entry.name.startsWith("/res/font") -> ResourceType.FONT
                entry.name.startsWith("/res/") -> ResourceType.OTHER
                else -> null
            }
            return resourceType
        }