mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
make more tasks depend on zipRepoAssets
This commit is contained in:
parent
c84bc14122
commit
e170d19e16
1 changed files with 3 additions and 4 deletions
|
@ -2,8 +2,7 @@ def buildAsLibrary = project.hasProperty('BUILD_AS_LIBRARY');
|
||||||
def buildAsApplication = !buildAsLibrary
|
def buildAsApplication = !buildAsLibrary
|
||||||
if (buildAsApplication) {
|
if (buildAsApplication) {
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +30,7 @@ android {
|
||||||
}
|
}
|
||||||
applicationVariants.all { variant ->
|
applicationVariants.all { variant ->
|
||||||
tasks["merge${variant.name.capitalize()}Assets"]
|
tasks["merge${variant.name.capitalize()}Assets"]
|
||||||
.dependsOn("externalNativeBuild${variant.name.capitalize()}")
|
.dependsOn("externalNativeBuild${variant.name.capitalize()}")
|
||||||
}
|
}
|
||||||
if (!project.hasProperty('EXCLUDE_NATIVE_LIBS')) {
|
if (!project.hasProperty('EXCLUDE_NATIVE_LIBS')) {
|
||||||
sourceSets.main {
|
sourceSets.main {
|
||||||
|
@ -97,7 +96,7 @@ project.android.applicationVariants.configureEach { variant ->
|
||||||
}
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
[lintVitalReportRelease, lintVitalAnalyzeRelease].each { task ->
|
[lintReportDebug, lintAnalyzeDebug, lintReportRelease, lintAnalyzeRelease, lintVitalReportRelease, lintVitalAnalyzeRelease].each { task ->
|
||||||
task.dependsOn zipRepoAssetsTask
|
task.dependsOn zipRepoAssetsTask
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue