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"
2023-01-12 19:33:25 +00:00
minSdkVersion 21
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 {
2024-11-10 00:57:38 +00:00
cmake {
2016-10-03 10:14:37 +00:00
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
2024-11-10 00:57:38 +00:00
arguments "-DCMAKE_BUILD_TYPE=Release" , "-DANDROID_STL=c++_shared" , "-DGStreamer_JAVA_SRC_DIR=java" , "-DGSTREAMER_ROOT_ANDROID=$gstRoot" , "-DGStreamer_ASSETS_DIR=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
2024-11-10 00:57:38 +00:00
abiFilters 'armeabi-v7a' , 'arm64-v8a' , 'x86' , 'x86_64'
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 {
2024-11-10 00:57:38 +00:00
cmake {
path 'src/main/jni/CMakeLists.txt'
2016-10-03 10:14:37 +00:00
}
2016-02-05 03:15:44 +00:00
}
2023-05-31 11:56:00 +00:00
ndkVersion '25.2.9519653'
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
}