[Android] Import lua scripts into assets folder
Geoffrey Métais
git at videolan.org
Fri Feb 5 17:01:33 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Feb 5 17:00:44 2016 +0100| [d3d9ebe7be19a296635561cee60efceb480582d2] | committer: Geoffrey Métais
Import lua scripts into assets folder
> https://code.videolan.org/videolan/vlc-android/commit/d3d9ebe7be19a296635561cee60efceb480582d2
---
vlc-android/.gitignore | 2 ++
vlc-android/build.gradle | 19 +++++++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/vlc-android/.gitignore b/vlc-android/.gitignore
index 6bf5cc5..6a56f41 100644
--- a/vlc-android/.gitignore
+++ b/vlc-android/.gitignore
@@ -3,3 +3,5 @@ gen/
libs/
obj/
.settings
+
+assets/lua/
diff --git a/vlc-android/build.gradle b/vlc-android/build.gradle
index a2ea3f8..47b9a75 100644
--- a/vlc-android/build.gradle
+++ b/vlc-android/build.gradle
@@ -12,6 +12,18 @@ android {
disable 'MissingTranslation', 'ExtraTranslation'
}
+ task luaPlaylistCopy(type: Copy) {
+ from '../vlc/share/lua/playlist'
+ into 'assets/lua/playlist'
+ exclude '**/*.txt'
+ }
+
+ task luaMetaCopy(type: Copy) {
+ from '../vlc/share/lua/meta'
+ into 'assets/lua/meta'
+ exclude '**/*.txt'
+ }
+
defaultConfig {
applicationId "org.videolan.vlc"
@@ -19,6 +31,13 @@ android {
resValue "string", "build_host", hostName()
resValue "string", "build_revision", revision()
+ tasks.whenTaskAdded { task ->
+ if (task.name.startsWith('assemble')) {
+ task.dependsOn luaPlaylistCopy
+ task.dependsOn luaMetaCopy
+ }
+ }
+
//Set the build ABI according to build types only if not launched from compile.sh
if (System.getenv('PASSWORD_KEYSTORE') == null)
tasks.whenTaskAdded { task ->
More information about the Android
mailing list