All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.likethesalad.placeholder.data.helpers.wrappers.AndroidSourceDirectorySetWrapper.kt Maven / Gradle / Ivy

Go to download

This is a Gradle plugin for Android applications which resolves XML string references in other XML strings.

There is a newer version: 1.3.0
Show newest version
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
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy