mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
chore(fdroid): Configure F-Droid build variant (#3265)
This commit is contained in:
parent
0b4104fedf
commit
668b44d3b5
2 changed files with 20 additions and 1 deletions
|
|
@ -152,6 +152,10 @@ android {
|
|||
} else {
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
}
|
||||
productFlavors.getByName("fdroid") {
|
||||
isMinifyEnabled = false
|
||||
isShrinkResources = false
|
||||
}
|
||||
}
|
||||
}
|
||||
bundle { language { enableSplit = false } }
|
||||
|
|
@ -220,6 +224,21 @@ dependencies {
|
|||
dokkaPlugin(libs.dokka.android.documentation.plugin)
|
||||
}
|
||||
|
||||
val googleServiceKeywords = listOf("crashlytics", "google", "datadog")
|
||||
tasks.configureEach {
|
||||
if (
|
||||
googleServiceKeywords.any {
|
||||
name.contains(
|
||||
it,
|
||||
ignoreCase = true
|
||||
)
|
||||
} && name.contains("fdroid", ignoreCase = true)
|
||||
) {
|
||||
project.logger.lifecycle("Disabling task for F-Droid: $name")
|
||||
enabled = false
|
||||
}
|
||||
}
|
||||
|
||||
dokka {
|
||||
moduleName.set("Meshtastic App")
|
||||
dokkaSourceSets.main {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
# Specifies the JVM arguments used for the daemon process.
|
||||
# The setting is particularly useful for tweaking memory settings.
|
||||
# Ensure important default jvmargs aren't overwritten. See https://github.com/gradle/gradle/issues/19750
|
||||
org.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=1g -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
||||
org.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=2g -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
||||
|
||||
# When configured, Gradle will run in incubating parallel mode.
|
||||
# This option should only be used with decoupled projects. More details, visit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue