Skip to content

Commit ef4e4fd

Browse files
author
plamen5kov
committed
add warning for soon to be depricated plugin structure
1 parent 0a3109c commit ef4e4fd

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

build/project-template-gradle/build.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,22 @@ dependencies {
181181
///////////////////////////// CONFIGURATION PHASE //////////////////////////////////
182182
////////////////////////////////////////////////////////////////////////////////////
183183

184+
task pluginStructureCheck {
185+
def ft = fileTree(dir: nodeModulesDir, include: ["**/platforms/android/**/*.*"], exclude: '**/.bin/**')
186+
ft.files.each { f ->
187+
def fileName = f.getName();
188+
if(
189+
!fileName.endsWith(".aar")
190+
&&
191+
!fileName.equals("include.gradle")
192+
&&
193+
!fileName.endsWith(".jar")
194+
){
195+
println "WARNING: The file: " + f + " is depricated, you can read more about what will be the expected plugin structure here: (add link to blog post)"
196+
}
197+
}
198+
}
199+
184200
def createIncludeFile (filePath, fileName, dimensionName) {
185201
println "\t+creating include.gradle file for: " + filePath
186202
def defaultIncludeFile = new File(filePath, "include.gradle")

0 commit comments

Comments
 (0)