1 apply plugin: 'com.android.application'
7 applicationId "org.freedesktop.gstreamer.webrtc"
12 archivesBaseName = "$applicationId-v$versionCode"
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=src/main/jni/Application.mk", "GSTREAMER_JAVA_SRC_DIR=src/main/java", "GSTREAMER_ROOT_ANDROID=$gstRoot", "GSTREAMER_ASSETS_DIR=src/main/assets", "V=1"
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'
45 path 'src/main/jni/Android.mk'
55 if (project.hasProperty('compileDebugJavaWithJavac'))
56 compileDebugJavaWithJavac.dependsOn 'externalNativeBuildDebug'
57 if (project.hasProperty('compileReleaseJavaWithJavac'))
58 compileReleaseJavaWithJavac.dependsOn 'externalNativeBuildRelease'
62 api fileTree(dir: 'libs', include: ['*.jar'])
63 testImplementation 'junit:junit:4.12'
64 implementation 'com.android.support:appcompat-v7:23.1.1'
65 implementation 'com.android.support.constraint:constraint-layout:1.0.2'