Skip to content

Commit 3e00e41

Browse files
author
plamen5kov
committed
Merge branch 'plamen5kov/plugins_warning_message' into release
2 parents 2f781d2 + 1e86213 commit 3e00e41

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
@@ -178,6 +178,22 @@ dependencies {
178178
///////////////////////////// CONFIGURATION PHASE //////////////////////////////////
179179
////////////////////////////////////////////////////////////////////////////////////
180180

181+
task pluginStructureCheck {
182+
def ft = fileTree(dir: nodeModulesDir, include: ["**/platforms/android/**/*.*"], exclude: '**/.bin/**')
183+
ft.files.each { f ->
184+
def fileName = f.getName();
185+
if(
186+
!fileName.endsWith(".aar")
187+
&&
188+
!fileName.equals("include.gradle")
189+
&&
190+
!fileName.endsWith(".jar")
191+
){
192+
println "WARNING: The file: " + f + " is depricated, you can read more about what will be the expected plugin structure here: https://www.nativescript.org/blog/migrating-n-android-plugins-from-version-1.7-to-2.0"
193+
}
194+
}
195+
}
196+
181197
def createIncludeFile (filePath, fileName, dimensionName) {
182198
println "\t+creating include.gradle file for: " + filePath
183199
def defaultIncludeFile = new File(filePath, "include.gradle")

0 commit comments

Comments
 (0)