File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
build-artifacts/project-template-gradle Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -246,6 +246,8 @@ task addDependenciesFromNativeScriptPlugins {
246
246
}
247
247
248
248
task applyPluginsIncludeGradleConfigurations {
249
+ configurationsDir. deleteDir()
250
+
249
251
def dimensions = []
250
252
def includes = new ArrayList<String > ()
251
253
def flavorNumber = 0
@@ -283,27 +285,22 @@ task applyPluginsIncludeGradleConfigurations {
283
285
copyAndRenamePluginDirToFlavorName(androidDir, flavor);
284
286
}
285
287
288
+ flavorDimensions(* dimensions)
289
+
286
290
includes. each {
287
291
println " \t + applying plugin configuration from ${ it} "
288
292
apply from : it
289
293
}
290
-
291
- def concatenatedDimensions = dimensions. collect { " \" ${ it} \" " }. join(" , " );
292
- def includeFile = file(" ${ configurationsDir} /include.gradle" )
293
-
294
- includeFile. text = " android { flavorDimensions ${ concatenatedDimensions} }"
295
-
296
- apply from : includeFile
297
-
298
- configurationsDir. deleteDir()
299
294
}
300
295
296
+ applyPluginsIncludeGradleConfigurations. finalizedBy(applyAppGradleConfiguration)
297
+
301
298
task applyAppGradleConfiguration {
302
299
description " applies user-defined gradle configuration"
303
300
304
301
def pathToAppGradle = " $projectDir /../../app/App_Resources/Android/app.gradle"
305
302
def appGradle = file(pathToAppGradle)
306
- if (appGradle. exists()) {
303
+ if (appGradle. exists()) {
307
304
println " \t + applying user-defined configuration from ${ appGradle} "
308
305
apply from : pathToAppGradle
309
306
}
You can’t perform that action at this time.
0 commit comments