in generator/src/main/kotlin/com/android/gradle/replicator/generator/Main.kt [128:137]
fun isValid(): Boolean {
if (!::jsonFile.isInitialized) throw RuntimeException("structure file location has not been provider")
if (!::destination.isInitialized) throw RuntimeException("destination location has not been provider")
if (destination.listFiles().isNullOrEmpty()) {
return true
}
throw java.lang.RuntimeException("Destination location is not empty: $destination")
}