examples/player/android: update for android changes
authorMatthew Waters <matthew@centricular.com>
Mon, 28 Mar 2022 02:28:56 +0000 (13:28 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 28 Mar 2022 02:32:41 +0000 (02:32 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2041>

subprojects/gst-examples/playback/player/android/app/build.gradle
subprojects/gst-examples/playback/player/android/app/src/main/AndroidManifest.xml
subprojects/gst-examples/playback/player/android/app/src/main/jni/Android.mk
subprojects/gst-examples/playback/player/android/app/src/main/jni/Application.mk
subprojects/gst-examples/playback/player/android/build.gradle
subprojects/gst-examples/playback/player/android/gradle/wrapper/gradle-wrapper.properties

index b5fe077..8339984 100644 (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
index 39ad252..2f14e53 100644 (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" />
 
         </activity>
     </application>
-</manifest> 
+</manifest>
index f16d62e..8a64f69 100644 (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
index 9851644..08a9d8e 100644 (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
index 205e07c..db5e427 100644 (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