2016-02-05 03:15:44 +00:00
apply plugin: 'com.android.application'
android {
2022-03-28 02:28:56 +00:00
compileSdkVersion 32
2016-02-05 03:15:44 +00:00
defaultConfig {
applicationId "org.freedesktop.gstreamer.play"
minSdkVersion 15
2022-03-28 02:28:56 +00:00
targetSdkVersion 32
2016-02-05 03:15:44 +00:00
versionCode 1
versionName "1.0"
2016-10-03 10:14:37 +00:00
externalNativeBuild {
ndkBuild {
def gstRoot
if ( project . hasProperty ( 'gstAndroidRoot' ) )
gstRoot = project . gstAndroidRoot
else
2017-05-20 15:25:30 +00:00
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' )
2016-10-03 10:14:37 +00:00
2017-01-06 13:30:17 +00:00
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"
2016-10-03 10:14:37 +00:00
2018-04-22 10:48:24 +00:00
targets "gstplayer"
2016-10-03 10:14:37 +00:00
// All archs except MIPS and MIPS64 are supported
2018-09-10 01:46:59 +00:00
abiFilters 'armeabi-v7a' , 'arm64-v8a' , 'x86'
2018-04-22 10:48:24 +00:00
// x86_64 abis disabled because of https://bugzilla.gnome.org/show_bug.cgi?id=795454
2016-10-03 10:14:37 +00:00
}
}
2016-02-05 03:15:44 +00:00
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile ( 'proguard-android.txt' ) , 'proguard-rules.pro'
}
}
2016-10-03 10:14:37 +00:00
externalNativeBuild {
ndkBuild {
path 'src/main/jni/Android.mk'
}
2016-02-05 03:15:44 +00:00
}
}
2017-01-02 05:42:19 +00:00
afterEvaluate {
2018-09-10 01:46:59 +00:00
if ( project . hasProperty ( 'compileDebugJavaWithJavac' ) )
project . compileDebugJavaWithJavac . dependsOn 'externalNativeBuildDebug'
if ( project . hasProperty ( 'compileReleaseJavaWithJavac' ) )
project . compileReleaseJavaWithJavac . dependsOn 'externalNativeBuildRelease'
2017-01-02 05:42:19 +00:00
}
2016-02-05 03:15:44 +00:00
dependencies {
2018-09-10 01:46:59 +00:00
implementation fileTree ( dir: 'libs' , include: [ '*.jar' ] )
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:appcompat-v7:23.1.1'
2016-02-05 03:15:44 +00:00
}