summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-10-09 15:05:47 +0200
committerGitHub <noreply@github.com>2017-10-09 15:05:47 +0200
commitcb7e4aa6d46ec247c7fc41104e4459a062cce77c (patch)
treec1496c89590eb49652ab384df8736074ac61184d /platform
parent11202b8e89463167fb0118ec0fab469f3248de77 (diff)
parenta4cee286e66293dab1a377c83971764fe7d480a2 (diff)
Merge pull request #11926 from RameshRavone/patch-11
flatDir support [Android] (Master) [ci skip]
Diffstat (limited to 'platform')
-rw-r--r--platform/android/SCsub12
1 files changed, 11 insertions, 1 deletions
diff --git a/platform/android/SCsub b/platform/android/SCsub
index e9a370869f..7fa0262359 100644
--- a/platform/android/SCsub
+++ b/platform/android/SCsub
@@ -46,8 +46,18 @@ gradle_baseout = open_utf8(abspath + "/java/build.gradle", "w")
gradle_text = gradle_basein.read()
-
+gradle_maven_flat_text = ""
+if len(env.android_flat_dirs) > 0:
+ gradle_maven_flat_text += "flatDir {\n"
+ gradle_maven_flat_text += "\tdirs "
+ for x in env.android_flat_dirs:
+ gradle_maven_flat_text += "'" + x + "',"
+
+ gradle_maven_flat_text = gradle_maven_flat_text[:-1]
+ gradle_maven_flat_text += "\n\t}\n"
+
gradle_maven_repos_text = ""
+gradle_maven_repos_text += gradle_maven_flat_text
if len(env.android_maven_repos) > 0:
gradle_maven_repos_text += ""