Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
98efb4f6
Commit
98efb4f6
authored
Aug 17, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android: raise minSdkVersion to 21
The number of MPD installs on Android < 5.0 is negligible, and that API version introduces lots of useful features for MPD.
parent
36edb488
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
22 deletions
+4
-22
Makefile.am
Makefile.am
+1
-1
AndroidManifest.xml
android/AndroidManifest.xml
+1
-1
build.py
android/build.py
+1
-1
Main.java
android/src/Main.java
+1
-1
FileInputPlugin.cxx
src/input/plugins/FileInputPlugin.cxx
+0
-3
EPollFD.cxx
src/system/EPollFD.cxx
+0
-15
No files found.
Makefile.am
View file @
98efb4f6
...
@@ -294,7 +294,7 @@ libmpd.so: $(filter %.a,$(src_mpd_LDADD)) libmain.a
...
@@ -294,7 +294,7 @@ libmpd.so: $(filter %.a,$(src_mpd_LDADD)) libmain.a
$(AM_V_CXXLD)$(CXXLD)
-shared
-Wl
,--no-undefined,-shared,-Bsymbolic
-llog
-lz
-o
$@
$(AM_CXXFLAGS)
$(CXXFLAGS)
$(LDFLAGS)
src/libmain_a-Main.o
$(src_mpd_LDADD)
$(LIBS)
$(AM_V_CXXLD)$(CXXLD)
-shared
-Wl
,--no-undefined,-shared,-Bsymbolic
-llog
-lz
-o
$@
$(AM_CXXFLAGS)
$(CXXFLAGS)
$(LDFLAGS)
src/libmain_a-Main.o
$(src_mpd_LDADD)
$(LIBS)
ANDROID_SDK_BUILD_TOOLS_VERSION
=
27.0.0
ANDROID_SDK_BUILD_TOOLS_VERSION
=
27.0.0
ANDROID_SDK_PLATFORM
=
android-
17
ANDROID_SDK_PLATFORM
=
android-
21
ANDROID_BUILD_TOOLS_DIR
=
$(ANDROID_SDK)
/build-tools/
$(ANDROID_SDK_BUILD_TOOLS_VERSION)
ANDROID_BUILD_TOOLS_DIR
=
$(ANDROID_SDK)
/build-tools/
$(ANDROID_SDK_BUILD_TOOLS_VERSION)
ANDROID_SDK_PLATFORM_DIR
=
$(ANDROID_SDK)
/platforms/
$(ANDROID_SDK_PLATFORM)
ANDROID_SDK_PLATFORM_DIR
=
$(ANDROID_SDK)
/platforms/
$(ANDROID_SDK_PLATFORM)
...
...
android/AndroidManifest.xml
View file @
98efb4f6
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
android:versionCode=
"20"
android:versionCode=
"20"
android:versionName=
"0.20.21"
>
android:versionName=
"0.20.21"
>
<uses-sdk
android:minSdkVersion=
"
14"
android:targetSdkVersion=
"17
"
/>
<uses-sdk
android:minSdkVersion=
"
21"
android:targetSdkVersion=
"21
"
/>
<application
android:icon=
"@drawable/icon"
android:label=
"@string/app_name"
>
<application
android:icon=
"@drawable/icon"
android:label=
"@string/app_name"
>
<activity
android:name=
".Main"
<activity
android:name=
".Main"
...
...
android/build.py
View file @
98efb4f6
...
@@ -65,7 +65,7 @@ class AndroidNdkToolchain:
...
@@ -65,7 +65,7 @@ class AndroidNdkToolchain:
self
.
build_path
=
build_path
self
.
build_path
=
build_path
ndk_arch
=
abi_info
[
'ndk_arch'
]
ndk_arch
=
abi_info
[
'ndk_arch'
]
android_api_level
=
'
14
'
android_api_level
=
'
21
'
ndk_platform
=
'android-'
+
android_api_level
ndk_platform
=
'android-'
+
android_api_level
# select the NDK compiler
# select the NDK compiler
...
...
android/src/Main.java
View file @
98efb4f6
...
@@ -49,7 +49,7 @@ public class Main extends Activity implements Runnable {
...
@@ -49,7 +49,7 @@ public class Main extends Activity implements Runnable {
TextView
tv
=
new
TextView
(
this
);
TextView
tv
=
new
TextView
(
this
);
tv
.
setText
(
"Failed to load the native MPD libary.\n"
+
tv
.
setText
(
"Failed to load the native MPD libary.\n"
+
"Report this problem to us, and include the following information:\n"
+
"Report this problem to us, and include the following information:\n"
+
"
ABI="
+
Build
.
CPU_ABI
+
"\n"
+
"
SUPPORTED_ABIS="
+
String
.
join
(
", "
,
Build
.
SUPPORTED_ABIS
)
+
"\n"
+
"PRODUCT="
+
Build
.
PRODUCT
+
"\n"
+
"PRODUCT="
+
Build
.
PRODUCT
+
"\n"
+
"FINGERPRINT="
+
Build
.
FINGERPRINT
+
"\n"
+
"FINGERPRINT="
+
Build
.
FINGERPRINT
+
"\n"
+
"error="
+
Loader
.
error
);
"error="
+
Loader
.
error
);
...
...
src/input/plugins/FileInputPlugin.cxx
View file @
98efb4f6
...
@@ -65,13 +65,10 @@ OpenFileInputStream(Path path,
...
@@ -65,13 +65,10 @@ OpenFileInputStream(Path path,
throw
FormatRuntimeError
(
"Not a regular file: %s"
,
throw
FormatRuntimeError
(
"Not a regular file: %s"
,
path
.
c_str
());
path
.
c_str
());
#if !defined(__BIONIC__) || __ANDROID_API__ >= 21
/* posix_fadvise() requires Android API 21 */
#ifdef POSIX_FADV_SEQUENTIAL
#ifdef POSIX_FADV_SEQUENTIAL
posix_fadvise
(
reader
.
GetFD
().
Get
(),
(
off_t
)
0
,
info
.
GetSize
(),
posix_fadvise
(
reader
.
GetFD
().
Get
(),
(
off_t
)
0
,
info
.
GetSize
(),
POSIX_FADV_SEQUENTIAL
);
POSIX_FADV_SEQUENTIAL
);
#endif
#endif
#endif
return
InputStreamPtr
(
new
FileInputStream
(
path
.
ToUTF8
().
c_str
(),
return
InputStreamPtr
(
new
FileInputStream
(
path
.
ToUTF8
().
c_str
(),
std
::
move
(
reader
),
info
.
GetSize
(),
std
::
move
(
reader
),
info
.
GetSize
(),
...
...
src/system/EPollFD.cxx
View file @
98efb4f6
...
@@ -22,21 +22,6 @@
...
@@ -22,21 +22,6 @@
#include "EPollFD.hxx"
#include "EPollFD.hxx"
#include "FatalError.hxx"
#include "FatalError.hxx"
#if defined(__BIONIC__) && __ANDROID_API__ < 21
#include <sys/syscall.h>
#include <fcntl.h>
#define EPOLL_CLOEXEC O_CLOEXEC
static
inline
int
epoll_create1
(
int
flags
)
{
return
syscall
(
__NR_epoll_create1
,
flags
);
}
#endif
EPollFD
::
EPollFD
()
EPollFD
::
EPollFD
()
:
fd
(
::
epoll_create1
(
EPOLL_CLOEXEC
))
:
fd
(
::
epoll_create1
(
EPOLL_CLOEXEC
))
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment