2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-02 07:05:09 +00:00

Bump sdk to Android PIE

Changes:
- Appcompat library v4 has been splitted in smaller libs, we only need one
- New FOREGROUND_SERVICE permission is required
This commit is contained in:
Albert Vaca
2018-10-16 14:39:00 +02:00
parent 4629179de6
commit 58a9b0d9a3
2 changed files with 9 additions and 8 deletions

View File

@@ -30,6 +30,7 @@
<uses-permission android:name="android.permission.VIBRATE" /> <uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" /> <uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<application <application
android:icon="@drawable/icon" android:icon="@drawable/icon"

View File

@@ -4,17 +4,17 @@ buildscript {
google() google()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.1.4' classpath 'com.android.tools.build:gradle:3.2.1'
} }
} }
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
android { android {
compileSdkVersion 27 compileSdkVersion 28
defaultConfig { defaultConfig {
minSdkVersion 14 minSdkVersion 14
targetSdkVersion 27 targetSdkVersion 28
//multiDexEnabled true //multiDexEnabled true
//testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner" //testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner"
} }
@@ -58,7 +58,7 @@ android {
release { //keep on 'release', set to 'all' when testing to make sure proguard is not deleting important stuff release { //keep on 'release', set to 'all' when testing to make sure proguard is not deleting important stuff
minifyEnabled true minifyEnabled true
useProguard true useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
} }
} }
} }
@@ -70,9 +70,9 @@ dependencies {
google() google()
} }
implementation 'com.android.support:support-v4:27.1.1' implementation 'com.android.support:support-media-compat:28.0.0'
implementation 'com.android.support:appcompat-v7:27.1.1' implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:27.1.1' implementation 'com.android.support:design:28.0.0'
implementation 'com.jakewharton:disklrucache:2.0.2' //For caching album art bitmaps implementation 'com.jakewharton:disklrucache:2.0.2' //For caching album art bitmaps
implementation 'org.apache.sshd:sshd-core:0.8.0' //0.9 seems to fail on Android 6 and 1.+ requires java.nio.file, which doesn't exist in Android implementation 'org.apache.sshd:sshd-core:0.8.0' //0.9 seems to fail on Android 6 and 1.+ requires java.nio.file, which doesn't exist in Android