Skip to content

Commit

Permalink
Android: disable caching
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Aug 30, 2023
1 parent ff404f1 commit 6cb2ec4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
4 changes: 0 additions & 4 deletions Android/agsplayer/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
org.gradle.caching=true
org.gradle.parallel=true
org.gradle.configureondemand=true
org.gradle.jvmargs=-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
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
Expand Down
2 changes: 1 addition & 1 deletion Android/agsplayer/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ project (":runtime").projectDir = new File(settingsDir, '../library/runtime')
include ':app'
rootProject.name = "AGS Player"

apply from: new File(settingsDir, '../gradle/buildCacheSettings.gradle')
# apply from: new File(settingsDir, '../gradle/buildCacheSettings.gradle')
26 changes: 13 additions & 13 deletions Android/gradle/buildCacheSettings.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
ext.isCiServer = System.getenv().containsKey("CIRRUS_CI")
ext.isMasterBranch = System.getenv()["CIRRUS_BRANCH"] == "master"
ext.buildCacheHost = System.getenv().getOrDefault("CIRRUS_HTTP_CACHE_HOST", "localhost:12321")
# ext.isCiServer = System.getenv().containsKey("CIRRUS_CI")
# ext.isMasterBranch = System.getenv()["CIRRUS_BRANCH"] == "master"
# ext.buildCacheHost = System.getenv().getOrDefault("CIRRUS_HTTP_CACHE_HOST", "localhost:12321")

buildCache {
local {
enabled = !isCiServer
}
remote(HttpBuildCache) {
url = "http://${buildCacheHost}/"
enabled = isCiServer
push = isMasterBranch
}
}
# buildCache {
# local {
# enabled = !isCiServer
# }
# remote(HttpBuildCache) {
# url = "http://${buildCacheHost}/"
# enabled = isCiServer
# push = isMasterBranch
# }
# }

0 comments on commit 6cb2ec4

Please sign in to comment.