2018-11-07 13:32:31 +00:00
apply plugin: 'com.android.application'
android {
2022-02-02 02:36:41 +00:00
compileSdkVersion 32
2018-11-07 13:32:31 +00:00
defaultConfig {
applicationId "org.freedesktop.gstreamer.webrtc"
2023-01-12 19:33:25 +00:00
minSdkVersion 21
2022-02-02 02:36:41 +00:00
targetSdkVersion 32
2018-11-07 13:32:31 +00:00
versionCode 1
versionName "1.0"
2020-06-26 06:17:44 +00:00
archivesBaseName = "$applicationId-v$versionCode"
2018-11-07 13:32:31 +00:00
externalNativeBuild {
ndkBuild {
def gstRoot
if ( project . hasProperty ( 'gstAndroidRoot' ) )
gstRoot = project . gstAndroidRoot
else
gstRoot = System . env . GSTREAMER_ROOT_ANDROID
if ( gstRoot = = null )
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' )
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"
targets "gstwebrtc"
// All archs except MIPS and MIPS64 are supported
2019-09-16 13:00:03 +00:00
abiFilters 'armeabi-v7a' , 'arm64-v8a' , 'x86' , 'x86_64'
2018-11-07 13:32:31 +00:00
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile ( 'proguard-android.txt' ) , 'proguard-rules.pro'
}
}
externalNativeBuild {
ndkBuild {
path 'src/main/jni/Android.mk'
}
}
2019-08-05 13:22:07 +00:00
lintOptions {
abortOnError false
}
2023-05-31 11:56:00 +00:00
ndkVersion '25.2.9519653'
2018-11-07 13:32:31 +00:00
}
afterEvaluate {
2020-01-30 03:46:05 +00:00
if ( project . hasProperty ( 'compileDebugJavaWithJavac' ) )
compileDebugJavaWithJavac . dependsOn 'externalNativeBuildDebug'
if ( project . hasProperty ( 'compileReleaseJavaWithJavac' ) )
compileReleaseJavaWithJavac . dependsOn 'externalNativeBuildRelease'
2018-11-07 13:32:31 +00:00
}
dependencies {
2020-01-30 03:46:05 +00:00
api fileTree ( dir: 'libs' , include: [ '*.jar' ] )
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:appcompat-v7:23.1.1'
2018-11-07 13:32:31 +00:00
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
}