Bump dependencies, target SDK 34

Declare service as Special Use, see
https://developer.android.com/about/versions/14/changes/fgs-types-required#special-use
This commit is contained in:
S1m 2024-01-16 20:30:21 +01:00
parent cb96642fd9
commit 5a97c8b7e7
4 changed files with 19 additions and 15 deletions

View File

@ -3,24 +3,23 @@ plugins {
id 'kotlin-android'
}
kotlin {
jvmToolchain(17)
}
android {
compileSdk 33
compileSdk 34
defaultConfig {
applicationId "org.unifiedpush.distributor.nextpush"
minSdk 24
targetSdk 33
targetSdk 34
versionCode 28
versionName "1.8.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildTypes {
release {
resValue "string", "app_name", "NextPush"
@ -59,15 +58,15 @@ ext {
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.9.0")
implementation('com.google.android.material:material:1.11.0')
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.coordinatorlayout:coordinatorlayout:1.2.0")
implementation("com.squareup.okhttp3:okhttp-sse:4.11.0")
implementation('com.squareup.okhttp3:okhttp-sse:4.12.0')
implementation("com.github.nextcloud:Android-SingleSignOn:0.8.1")
implementation("com.squareup.retrofit2:retrofit:$retrofitVersion")
implementation("com.squareup.retrofit2:converter-gson:$retrofitVersion")
implementation("com.squareup.retrofit2:adapter-rxjava3:$retrofitVersion")
implementation('io.reactivex.rxjava3:rxjava:3.1.7')
implementation('io.reactivex.rxjava3:rxjava:3.1.8')
implementation("io.reactivex.rxjava3:rxandroid:3.0.2")
implementation("androidx.work:work-runtime-ktx:2.8.1")
implementation('androidx.work:work-runtime-ktx:2.9.0')
}

View File

@ -4,6 +4,7 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
@ -40,7 +41,11 @@
<service
android:name=".services.StartService"
android:enabled="true" />
android:enabled="true"
android:foregroundServiceType="specialUse">
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
android:value="This service needs to be constantly connected to the server, to get Server-Sent Events messages from it."/>
</service>
<receiver
android:name=".receivers.StartReceiver"

View File

@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.9.10'
ext.kotlin_version = '1.9.22'
repositories {
google()
mavenCentral()
@ -12,7 +12,7 @@ buildscript {
}
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.1'
classpath 'com.android.tools.build:gradle:8.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jlleitschuh.gradle:ktlint-gradle:11.5.1"
// NOTE: Do not place your application dependencies here; they belong

View File

@ -1,6 +1,6 @@
#Sun Jan 22 18:36:40 CET 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME