examples/player/android: update for android changes

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2059>
This commit is contained in:
Matthew Waters 2022-03-28 13:28:56 +11:00 committed by Tim-Philipp Müller
parent a9284b4351
commit 641897ea70
6 changed files with 9 additions and 9 deletions

View file

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

View file

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

View file

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

View file

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

View file

@ -6,7 +6,7 @@ buildscript {
google() google()
} }
dependencies { 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 // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files

View file

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists 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