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

com.likethesalad.placeholder.data.helpers.wrappers.AndroidSourceSetWrapper.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

class AndroidSourceSetWrapper(private val androidSourceSet: Any) {

    private val clazz = androidSourceSet.javaClass
    private val getResMethod by lazy { clazz.getMethod("getRes") }
    private val getNameMethod by lazy { clazz.getMethod("getName") }

    fun getRes(): AndroidSourceDirectorySetWrapper {
        return AndroidSourceDirectorySetWrapper(getResMethod.invoke(androidSourceSet))
    }

    fun getName(): String {
        return getNameMethod.invoke(androidSourceSet) as String
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy