1 apply plugin: 'com.android.application'
7 applicationId "org.freedesktop.gstreamer.tutorials.tutorial_1"
18 if (project.hasProperty('gstAndroidRoot'))
19 gstRoot = project.gstAndroidRoot
21 gstRoot = System.env.GSTREAMER_ROOT_ANDROID
24 throw new GradleException('GSTREAMER_ROOT_ANDROID must be set, or "gstAndroidRoot" must be defined in your gradle.properties in the top level directory of the unpacked universal GStreamer Android binaries')
26 arguments "NDK_APPLICATION_MK=jni/Application.mk", "GSTREAMER_JAVA_SRC_DIR=src", "GSTREAMER_ROOT_ANDROID=$gstRoot", "GSTREAMER_ASSETS_DIR=src/assets"
30 // All archs except MIPS and MIPS64 are supported
31 abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
39 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
42 manifest.srcFile 'AndroidManifest.xml'
43 java.srcDirs = ['src']
44 resources.srcDirs = ['src']
45 aidl.srcDirs = ['src']
46 renderscript.srcDirs = ['src']
48 assets.srcDirs = ['assets']
62 if (project.hasProperty('compileDebugJavaWithJavac'))
63 project.compileDebugJavaWithJavac.dependsOn 'externalNativeBuildDebug'
64 if (project.hasProperty('compileReleaseJavaWithJavac'))
65 project.compileReleaseJavaWithJavac.dependsOn 'externalNativeBuildRelease'
69 implementation fileTree(dir: 'libs', include: ['*.jar'])
70 testImplementation 'junit:junit:4.12'
71 implementation 'com.android.support:appcompat-v7:23.1.1'