2016-02-05 03:15:44 +00:00
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
2016-05-10 19:01:54 +00:00
buildToolsVersion "23.0.3"
2016-02-05 03:15:44 +00:00
defaultConfig {
applicationId "org.freedesktop.gstreamer.play"
minSdkVersion 15
2016-05-10 19:01:54 +00:00
targetSdkVersion 15
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
throw new GradleException ( '"gstAndroidRoot" must be defined in your gradle.properties to 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"
targets "gstplayer" , "gstreamer_android"
// All archs except MIPS and MIPS64 are supported
abiFilters 'armeabi' , 'armeabi-v7a' , 'arm64-v8a' , 'x86' , 'x86_64'
}
}
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
}
}
dependencies {
compile fileTree ( dir: 'libs' , include: [ '*.jar' ] )
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
}