examples/player/android: update for android changes

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2041>
This commit is contained in:
Matthew Waters 2022-03-28 13:28:56 +11:00 committed by GStreamer Marge Bot
parent aa6c674dd8
commit 5d2d03892d
6 changed files with 9 additions and 9 deletions

View file

@ -1,17 +1,15 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '27.0.3'
compileSdkVersion 32
defaultConfig {
applicationId "org.freedesktop.gstreamer.play"
minSdkVersion 15
targetSdkVersion 15
targetSdkVersion 32
versionCode 1
versionName "1.0"
externalNativeBuild {
ndkBuild {
def gstRoot

View file

@ -9,7 +9,8 @@
<application android:theme="@style/Theme.AppCompat.Light" android:label="@string/app_name">
<activity android:name=".Play"
android:label="@string/app_name">
android:label="@string/app_name"
android:exported="true">
<!-- Files whose MIME type is known to Android -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />

View file

@ -3,7 +3,7 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := gstplayer
LOCAL_SRC_FILES := player.c
LOCAL_SRC_FILES := player.c dummy.cpp
LOCAL_SHARED_LIBRARIES := gstreamer_android
LOCAL_LDLIBS := -llog -landroid

View file

@ -1,2 +1,3 @@
APP_PLATFORM = 15
APP_ABI = armeabi armeabi-v7a arm64-v8a x86 x86_64
APP_STL = c++_shared

View file

@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
classpath 'com.android.tools.build:gradle:7.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

View file

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip