Autogenerate readmes.zip from docs
This commit is contained in:
parent
6c5b1ddec6
commit
8c15dc54b2
2 changed files with 38 additions and 22 deletions
|
@ -62,7 +62,8 @@ android {
|
||||||
}
|
}
|
||||||
lintOptions {
|
lintOptions {
|
||||||
disable 'InvalidPackage'
|
disable 'InvalidPackage'
|
||||||
checkReleaseBuilds false //added this line to the build.gradle under the /android/app/build.gradle
|
checkReleaseBuilds false
|
||||||
|
//added this line to the build.gradle under the /android/app/build.gradle
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
|
@ -86,7 +87,11 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
applicationVariants.all {
|
applicationVariants.all {
|
||||||
variant -> tasks["merge${variant.name.capitalize()}Assets"].dependsOn(generateProfilesZip)
|
variant ->
|
||||||
|
{
|
||||||
|
tasks["merge${variant.name.capitalize()}Assets"].dependsOn(generateProfilesZip)
|
||||||
|
tasks["merge${variant.name.capitalize()}Assets"].dependsOn(generateReadmesZip)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,15 +113,26 @@ task generateProfiles(type: Exec) {
|
||||||
task generateProfilesZip(type: Zip) {
|
task generateProfilesZip(type: Zip) {
|
||||||
if (DefaultNativePlatform.getCurrentOperatingSystem().isWindows()) {
|
if (DefaultNativePlatform.getCurrentOperatingSystem().isWindows()) {
|
||||||
logger.warn("Note: On Windows run script '../misc/scripts/generate_profile_variants.sh' manually to include all profiles")
|
logger.warn("Note: On Windows run script '../misc/scripts/generate_profile_variants.sh' manually to include all profiles")
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
dependsOn generateProfiles
|
dependsOn generateProfiles
|
||||||
}
|
}
|
||||||
archiveFileName = "profiles2.zip"
|
archiveFileName = "profiles2.zip"
|
||||||
from "../misc/profiles2"
|
from("../misc/profiles2") {
|
||||||
exclude "all.brf"
|
exclude "all.brf"
|
||||||
exclude "car-traffic_analysis.brf"
|
exclude "car-traffic_analysis.brf"
|
||||||
exclude "car-vario.brf"
|
exclude "car-vario.brf"
|
||||||
exclude "softaccess.brf"
|
exclude "softaccess.brf"
|
||||||
destinationDirectory = layout.buildDirectory.dir('assets')
|
}
|
||||||
|
destinationDirectory = layout.buildDirectory.dir("assets")
|
||||||
|
}
|
||||||
|
|
||||||
|
task generateReadmesZip(type: Zip) {
|
||||||
|
archiveFileName = "readmes.zip"
|
||||||
|
from("../docs") {
|
||||||
|
include("users/android_quickstart.md")
|
||||||
|
include("users/android_advanced.md")
|
||||||
|
include("developers/profile_developers_guide.md")
|
||||||
|
include("developers/build_segments.md")
|
||||||
|
}
|
||||||
|
destinationDirectory = layout.buildDirectory.dir("assets")
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue