Bump dependencies and target SDK 33
This commit is contained in:
parent
079c647164
commit
9744857341
|
@ -4,19 +4,13 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 30
|
compileSdkVersion 33
|
||||||
buildToolsVersion "30.0.3"
|
buildToolsVersion "33.0.0"
|
||||||
configurations.all {
|
|
||||||
resolutionStrategy {
|
|
||||||
force 'androidx.core:core-ktx:1.6.0'
|
|
||||||
force 'androidx.core:core:1.6.0'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "org.unifiedpush.distributor.nextpush"
|
applicationId "org.unifiedpush.distributor.nextpush"
|
||||||
minSdkVersion 24
|
minSdkVersion 24
|
||||||
targetSdkVersion 30
|
targetSdkVersion 33
|
||||||
versionCode 14
|
versionCode 14
|
||||||
versionName "1.3.3"
|
versionName "1.3.3"
|
||||||
|
|
||||||
|
@ -35,18 +29,8 @@ android {
|
||||||
debuggable true
|
debuggable true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
compileOptions {
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
kotlinOptions {
|
|
||||||
jvmTarget = '1.8'
|
|
||||||
}
|
|
||||||
|
|
||||||
packagingOptions {
|
|
||||||
exclude("META-INF/*")
|
|
||||||
}
|
|
||||||
|
|
||||||
|
namespace 'org.unifiedpush.distributor.nextpush'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (project.hasProperty('sign')) {
|
if (project.hasProperty('sign')) {
|
||||||
|
@ -64,21 +48,14 @@ if (project.hasProperty('sign')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
ext.coreVersion = "1.6.0"
|
|
||||||
|
|
||||||
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
|
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
|
||||||
implementation("androidx.core:core:$coreVersion")
|
implementation("androidx.appcompat:appcompat:1.5.1")
|
||||||
implementation("androidx.core:core-ktx:$coreVersion")
|
implementation("com.google.android.material:material:1.6.1")
|
||||||
implementation("androidx.appcompat:appcompat:1.3.1")
|
|
||||||
implementation("com.google.android.material:material:1.4.0")
|
|
||||||
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
||||||
implementation("androidx.coordinatorlayout:coordinatorlayout:1.1.0")
|
implementation("androidx.coordinatorlayout:coordinatorlayout:1.2.0")
|
||||||
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.9.3"))
|
implementation("com.squareup.okhttp3:okhttp-sse:4.10.0")
|
||||||
implementation("com.squareup.okhttp3:okhttp")
|
implementation("com.github.nextcloud:Android-SingleSignOn:0.6.1")
|
||||||
implementation("com.squareup.okhttp3:okhttp-sse")
|
|
||||||
implementation("com.github.nextcloud:Android-SingleSignOn:0.6.0")
|
|
||||||
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
||||||
implementation("io.reactivex.rxjava2:rxjava:2.2.21")
|
implementation("io.reactivex.rxjava2:rxjava:2.2.21")
|
||||||
implementation("com.google.code.gson:gson:2.9.0")
|
implementation("androidx.work:work-runtime-ktx:2.7.1")
|
||||||
implementation("androidx.work:work-runtime-ktx:2.6.0")
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
package="org.unifiedpush.distributor.nextpush" >
|
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||||
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
||||||
|
|
||||||
|
@ -19,10 +19,10 @@
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.MainActivity"
|
android:name=".activities.MainActivity"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:theme="@style/Theme.NextPush.NoActionBar" >
|
android:theme="@style/Theme.NextPush.NoActionBar"
|
||||||
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
@ -33,14 +33,16 @@
|
||||||
|
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".receivers.StartReceiver"
|
android:name=".receivers.StartReceiver"
|
||||||
android:enabled="true" >
|
android:enabled="true"
|
||||||
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</receiver>
|
</receiver>
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".receivers.RegisterBroadcastReceiver"
|
android:name=".receivers.RegisterBroadcastReceiver"
|
||||||
android:enabled="true" >
|
android:enabled="true"
|
||||||
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="org.unifiedpush.android.distributor.feature.BYTES_MESSAGE"/>
|
<action android:name="org.unifiedpush.android.distributor.feature.BYTES_MESSAGE"/>
|
||||||
<action android:name="org.unifiedpush.android.distributor.REGISTER" />
|
<action android:name="org.unifiedpush.android.distributor.REGISTER" />
|
||||||
|
|
|
@ -53,6 +53,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated("Deprecated in Java")
|
||||||
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
|
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
|
||||||
try {
|
try {
|
||||||
AccountImporter.onActivityResult(
|
AccountImporter.onActivityResult(
|
||||||
|
@ -75,7 +76,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
}
|
}
|
||||||
showMain()
|
showMain()
|
||||||
}
|
}
|
||||||
} catch (e: AccountImportCancelledException) {}
|
} catch (_: AccountImportCancelledException) {}
|
||||||
super.onActivityResult(requestCode, resultCode, data)
|
super.onActivityResult(requestCode, resultCode, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,12 @@ package org.unifiedpush.distributor.nextpush.services
|
||||||
import android.app.Notification
|
import android.app.Notification
|
||||||
import android.app.NotificationChannel
|
import android.app.NotificationChannel
|
||||||
import android.app.NotificationManager
|
import android.app.NotificationManager
|
||||||
|
import android.app.PendingIntent
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
|
import android.content.Intent
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
import androidx.core.app.NotificationManagerCompat
|
import androidx.core.app.NotificationManagerCompat
|
||||||
import org.unifiedpush.distributor.nextpush.R
|
import org.unifiedpush.distributor.nextpush.R
|
||||||
import android.app.PendingIntent
|
|
||||||
|
|
||||||
import android.content.Intent
|
|
||||||
import org.unifiedpush.distributor.nextpush.activities.MainActivity
|
import org.unifiedpush.distributor.nextpush.activities.MainActivity
|
||||||
|
|
||||||
const val NOTIFICATION_ID_FOREGROUND = 51115
|
const val NOTIFICATION_ID_FOREGROUND = 51115
|
||||||
|
@ -42,8 +41,10 @@ object NotificationUtils {
|
||||||
notificationIntent.flags = Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP
|
notificationIntent.flags = Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP
|
||||||
|
|
||||||
val intent = PendingIntent.getActivity(
|
val intent = PendingIntent.getActivity(
|
||||||
context, 0,
|
context,
|
||||||
notificationIntent, 0
|
0,
|
||||||
|
notificationIntent,
|
||||||
|
PendingIntent.FLAG_IMMUTABLE
|
||||||
)
|
)
|
||||||
|
|
||||||
val builder: Notification.Builder =
|
val builder: Notification.Builder =
|
||||||
|
@ -88,8 +89,10 @@ object NotificationUtils {
|
||||||
notificationIntent.flags = Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP
|
notificationIntent.flags = Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP
|
||||||
|
|
||||||
val intent = PendingIntent.getActivity(
|
val intent = PendingIntent.getActivity(
|
||||||
context, 0,
|
context,
|
||||||
notificationIntent, 0
|
0,
|
||||||
|
notificationIntent,
|
||||||
|
PendingIntent.FLAG_IMMUTABLE
|
||||||
)
|
)
|
||||||
|
|
||||||
val builder: Notification.Builder = (
|
val builder: Notification.Builder = (
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||||
buildscript {
|
buildscript {
|
||||||
ext.kotlin_version = "1.5.31"
|
ext.kotlin_version = "1.7.10"
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath "com.android.tools.build:gradle:7.0.3"
|
classpath 'com.android.tools.build:gradle:7.3.0'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
Loading…
Reference in New Issue