playback/player/android: Force externalNativeBuild before Java building
authorArun Raghavan <arun@arunraghavan.net>
Mon, 2 Jan 2017 05:42:19 +0000 (11:12 +0530)
committerArun Raghavan <arun@arunraghavan.net>
Mon, 2 Jan 2017 05:51:11 +0000 (11:21 +0530)
This is needed so that we copy over the Java files from gst-android that
include the GStreamer class which is used while compiling app.

playback/player/android/app/build.gradle

index 15d0ad2..68bdd2d 100644 (file)
@@ -45,6 +45,11 @@ android {
     }
 }
 
+afterEvaluate {
+    compileDebugJavaWithJavac.dependsOn 'externalNativeBuildDebug'
+    compileReleaseJavaWithJavac.dependsOn 'externalNativeBuildRelease'
+}
+
 dependencies {
     compile fileTree(dir: 'libs', include: ['*.jar'])
     testCompile 'junit:junit:4.12'