Skip to content

Commit 1af6ee1

Browse files
authored
Add files via upload
1 parent f7b0f10 commit 1af6ee1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+11206
-0
lines changed

MediaPlayer/MediaPlayer.pro

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
QT += core gui multimedia multimediawidgets core-private gui-private multimedia-private concurrent
2+
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
3+
CONFIG += resources_big
4+
DEFINES += QT_MESSAGELOGCONTEXT
5+
msvc {
6+
QMAKE_CFLAGS += /utf-8
7+
QMAKE_CXXFLAGS += /utf-8
8+
}
9+
windows {
10+
RC_ICONS = player.ico
11+
RESOURCES += resource_common.qrc
12+
}
13+
linux {
14+
RESOURCES += \
15+
resource_common.qrc
16+
}
17+
unix {
18+
RESOURCES += \
19+
resource_common.qrc
20+
}
21+
android {
22+
LIBS += -ljnigraphics
23+
DISTFILES += \
24+
android/AndroidManifest.xml \
25+
android/build.gradle \
26+
android/gradle.properties \
27+
android/gradle/wrapper/gradle-wrapper.jar \
28+
android/gradle/wrapper/gradle-wrapper.properties \
29+
android/gradlew \
30+
android/gradlew.bat \
31+
android/res/values/libs.xml \
32+
android/src/com/MainActivity.java
33+
}
34+
CONFIG += c++17
35+
SOURCES += \
36+
main.cpp \
37+
mediawidget.cpp \
38+
myfiledialog.cpp \
39+
playerwidget.cpp \
40+
settingwidget.cpp \
41+
widget.cpp
42+
HEADERS += \
43+
api.h \
44+
mediawidget.h \
45+
myfiledialog.h \
46+
mytaskbarprogress.h \
47+
playerwidget.h \
48+
settingwidget.h \
49+
widget.h
50+
qnx: target.path = /tmp/$${TARGET}/bin
51+
else: unix:!android: target.path = /opt/$${TARGET}/bin
52+
!isEmpty(target.path): INSTALLS += target
53+
contains(ANDROID_TARGET_ARCH,arm64-v8a) {
54+
ANDROID_PACKAGE_SOURCE_DIR = \
55+
$$PWD/android
56+
}
57+
58+
DISTFILES += \
59+
android/res/xml/filepaths.xml

MediaPlayer/MediaPlayer.pro.user

Lines changed: 1601 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.sovietball.mediaplayer" android:installLocation="auto" android:versionCode="-- %%INSERT_VERSION_CODE%% --" android:versionName="-- %%INSERT_VERSION_NAME%% --">
3+
4+
<!-- %%INSERT_FEATURES -->
5+
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true"/>
6+
<application android:name="org.qtproject.qt.android.bindings.QtApplication" android:hardwareAccelerated="true" android:label="-- %%INSERT_APP_NAME%% --" android:requestLegacyExternalStorage="true" android:allowNativeHeapPointerTagging="false" android:allowBackup="true" android:fullBackupOnly="false">
7+
<activity android:name="com.MyActivity.MainActivity" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" android:label="-- %%INSERT_APP_NAME%% --" android:launchMode="singleTop" android:screenOrientation="unspecified" android:exported="true">
8+
<intent-filter>
9+
<action android:name="android.intent.action.MAIN"/>
10+
<category android:name="android.intent.category.LAUNCHER"/>
11+
</intent-filter>
12+
<meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
13+
<meta-data android:name="android.app.arguments" android:value="-- %%INSERT_APP_ARGUMENTS%% --"/>
14+
<meta-data android:name="android.app.extract_android_style" android:value="minimal"/>
15+
</activity>
16+
</application>
17+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
18+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
19+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
20+
<uses-permission android:name="android.permission.INTERNET"/>
21+
<uses-permission android:name="android.permission.ACCESS_NOTIFICATION_POLICY"/>
22+
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
23+
<uses-permission android:name="android.permission.GET_TASKS"/>
24+
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION"/>
25+
<uses-permission android:name="android.permission.WRITE_INPUT_STATE"/>
26+
<uses-permission android:name="android.permission.ACCESS_CHECKIN_PROPERTIES"/>
27+
<uses-permission android:name="android.permission.INSTALL_PACKAGES"/>
28+
<uses-permission android:name="android.permission.VIBRATE"/>
29+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
30+
<!-- %%INSERT_PERMISSIONS -->
31+
</manifest>

MediaPlayer/android/build.gradle

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
buildscript {
2+
repositories {
3+
google()
4+
mavenCentral()
5+
}
6+
7+
dependencies {
8+
classpath 'com.android.tools.build:gradle:7.0.2'
9+
}
10+
}
11+
12+
repositories {
13+
google()
14+
mavenCentral()
15+
}
16+
17+
apply plugin: 'com.android.application'
18+
19+
dependencies {
20+
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
21+
}
22+
23+
android {
24+
/*******************************************************
25+
* The following variables:
26+
* - androidBuildToolsVersion,
27+
* - androidCompileSdkVersion
28+
* - qtAndroidDir - holds the path to qt android files
29+
* needed to build any Qt application
30+
* on Android.
31+
*
32+
* are defined in gradle.properties file. This file is
33+
* updated by QtCreator and androiddeployqt tools.
34+
* Changing them manually might break the compilation!
35+
*******************************************************/
36+
37+
compileSdkVersion androidCompileSdkVersion.toInteger()
38+
buildToolsVersion androidBuildToolsVersion
39+
ndkVersion androidNdkVersion
40+
41+
// Extract native libraries from the APK
42+
packagingOptions.jniLibs.useLegacyPackaging true
43+
44+
sourceSets {
45+
main {
46+
manifest.srcFile 'AndroidManifest.xml'
47+
java.srcDirs = [qtAndroidDir + '/src', 'src', 'java']
48+
aidl.srcDirs = [qtAndroidDir + '/src', 'src', 'aidl']
49+
res.srcDirs = [qtAndroidDir + '/res', 'res']
50+
resources.srcDirs = ['resources']
51+
renderscript.srcDirs = ['src']
52+
assets.srcDirs = ['assets']
53+
jniLibs.srcDirs = ['libs']
54+
}
55+
}
56+
57+
tasks.withType(JavaCompile) {
58+
options.incremental = true
59+
}
60+
61+
compileOptions {
62+
sourceCompatibility JavaVersion.VERSION_1_8
63+
targetCompatibility JavaVersion.VERSION_1_8
64+
}
65+
66+
lintOptions {
67+
abortOnError false
68+
}
69+
70+
// Do not compress Qt binary resources file
71+
aaptOptions {
72+
noCompress 'rcc'
73+
}
74+
75+
defaultConfig {
76+
resConfig "en"
77+
minSdkVersion qtMinSdkVersion
78+
targetSdkVersion qtTargetSdkVersion
79+
ndk.abiFilters = qtTargetAbiList.split(",")
80+
}
81+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Project-wide Gradle settings.
2+
# For more details on how to configure your build environment visit
3+
# http://www.gradle.org/docs/current/userguide/build_environment.html
4+
# Specifies the JVM arguments used for the daemon process.
5+
# The setting is particularly useful for tweaking memory settings.
6+
org.gradle.jvmargs=-Xmx2500m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
7+
8+
# Enable building projects in parallel
9+
org.gradle.parallel=true
10+
# Gradle caching allows reusing the build artifacts from a previous
11+
# build with the same inputs. However, over time, the cache size will
12+
# grow. Uncomment the following line to enable it.
13+
#org.gradle.caching=true
58.4 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)