summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRamesh Mani Maran <ramesh.maran443@gmail.com>2017-03-06 15:34:21 +0530
committerRĂ©mi Verschelde <rverschelde@gmail.com>2017-03-18 10:27:30 +0100
commit27c7d253aa1f2125e37344d7829b5b87a4b9a901 (patch)
tree2b08122b9e511db32666a1dfd2be8d6f4c6fa58c /platform
parent111d3e8063449aeab5745c946fa08c277c569026 (diff)
android: adding classpath and gradle plugins
Diffstat (limited to 'platform')
-rw-r--r--platform/android/SCsub12
-rw-r--r--platform/android/build.gradle.template3
2 files changed, 13 insertions, 2 deletions
diff --git a/platform/android/SCsub b/platform/android/SCsub
index 2a02452509..e8536953a3 100644
--- a/platform/android/SCsub
+++ b/platform/android/SCsub
@@ -65,7 +65,14 @@ gradle_java_dirs_text = ""
for x in env.android_java_dirs:
gradle_java_dirs_text += ",'" + x.replace("\\", "/") + "'"
-
+gradle_plugins = ""
+for x in env.android_gradle_plugins:
+ gradle_plugins += "apply plugin: \"" + x + "\"\n"
+
+gradle_classpath = ""
+for x in env.android_gradle_classpath:
+ gradle_classpath += "\t\tclasspath \"" + x + "\"\n"
+
gradle_res_dirs_text = ""
for x in env.android_res_dirs:
@@ -96,7 +103,8 @@ gradle_text = gradle_text.replace("$$GRADLE_ASSET_DIRS$$", gradle_asset_dirs_tex
gradle_text = gradle_text.replace("$$GRADLE_AIDL_DIRS$$", gradle_aidl_dirs_text)
gradle_text = gradle_text.replace("$$GRADLE_JNI_DIRS$$", gradle_jni_dirs_text)
gradle_text = gradle_text.replace("$$GRADLE_DEFAULT_CONFIG$$", gradle_default_config_text)
-
+gradle_text = gradle_text.replace("$$GRADLE_PLUGINS$$", gradle_plugins)
+gradle_text = gradle_text.replace("$$GRADLE_CLASSPATH$$", gradle_classpath)
gradle_baseout.write(gradle_text)
gradle_baseout.close()
diff --git a/platform/android/build.gradle.template b/platform/android/build.gradle.template
index c46a15bd12..24aab8e01f 100644
--- a/platform/android/build.gradle.template
+++ b/platform/android/build.gradle.template
@@ -4,6 +4,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
+ $$GRADLE_CLASSPATH$$
}
}
@@ -83,3 +84,5 @@ android {
variant.outputs.get(0).setOutputFile(new File("${projectDir}/../../../bin", "android_${variant.name}.apk"))
}
}
+
+$$GRADLE_PLUGINS$$