com.likethesalad.placeholder.data.helpers.wrappers.AndroidSourceDirectorySetWrapper.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of string-reference Show documentation
Show all versions of string-reference Show documentation
This is a Gradle plugin for Android applications which resolves XML string references in other XML strings.
package com.likethesalad.placeholder.data.helpers.wrappers
import java.io.File
@Suppress("UNCHECKED_CAST")
class AndroidSourceDirectorySetWrapper(private val androidSourceDirectorySet: Any) {
private val clazz: Class<*> = androidSourceDirectorySet.javaClass
private val getSrcDirsMethod by lazy { clazz.getDeclaredMethod("getSrcDirs") }
fun getSrcDirs(): Set {
return getSrcDirsMethod.invoke(androidSourceDirectorySet) as Set
}
}