mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Merge pull request #2371 from nextcloud/dependabot/gradle/com.android.tools.build-gradle-7.3.0
Bump gradle from 7.2.2 to 7.3.0
This commit is contained in:
commit
713fc1f10d
@ -38,6 +38,9 @@ apply plugin: 'kotlinx-serialization'
|
|||||||
android {
|
android {
|
||||||
compileSdkVersion 31
|
compileSdkVersion 31
|
||||||
buildToolsVersion '33.0.0'
|
buildToolsVersion '33.0.0'
|
||||||
|
|
||||||
|
namespace 'com.nextcloud.talk'
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 31
|
targetSdkVersion 31
|
||||||
|
@ -21,8 +21,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
package="com.nextcloud.talk">
|
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:name=".application.NextcloudTalkApplication"
|
android:name=".application.NextcloudTalkApplication"
|
||||||
|
@ -21,8 +21,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
package="com.nextcloud.talk">
|
|
||||||
|
|
||||||
<uses-feature
|
<uses-feature
|
||||||
android:name="android.hardware.camera.any"
|
android:name="android.hardware.camera.any"
|
||||||
|
@ -1543,12 +1543,14 @@ class ChatController(args: Bundle) :
|
|||||||
val uri = Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_VCARD_URI, lookupKey)
|
val uri = Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_VCARD_URI, lookupKey)
|
||||||
|
|
||||||
val fd: AssetFileDescriptor = activity?.contentResolver!!.openAssetFileDescriptor(uri, "r")!!
|
val fd: AssetFileDescriptor = activity?.contentResolver!!.openAssetFileDescriptor(uri, "r")!!
|
||||||
val fis = fd.createInputStream()
|
fd.use {
|
||||||
|
val fis = fd.createInputStream()
|
||||||
|
|
||||||
file.createNewFile()
|
file.createNewFile()
|
||||||
fis.use { input ->
|
fis.use { input ->
|
||||||
file.outputStream().use { output ->
|
file.outputStream().use { output ->
|
||||||
input.copyTo(output)
|
input.copyTo(output)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,6 @@ import android.view.MotionEvent
|
|||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import android.view.inputmethod.InputMethodManager
|
import android.view.inputmethod.InputMethodManager
|
||||||
import androidx.annotation.NonNull
|
|
||||||
import autodagger.AutoInjector
|
import autodagger.AutoInjector
|
||||||
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
||||||
import com.google.android.material.bottomsheet.BottomSheetDialog
|
import com.google.android.material.bottomsheet.BottomSheetDialog
|
||||||
@ -330,7 +329,7 @@ class MessageActionsDialog(
|
|||||||
// unused atm
|
// unused atm
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onNext(@NonNull genericOverall: GenericOverall) {
|
override fun onNext(genericOverall: GenericOverall) {
|
||||||
val statusCode = genericOverall.ocs?.meta?.statusCode
|
val statusCode = genericOverall.ocs?.meta?.statusCode
|
||||||
if (statusCode == HTTP_CREATED) {
|
if (statusCode == HTTP_CREATED) {
|
||||||
chatController.updateAdapterAfterSendReaction(message, emoji)
|
chatController.updateAdapterAfterSendReaction(message, emoji)
|
||||||
@ -366,7 +365,7 @@ class MessageActionsDialog(
|
|||||||
// unused atm
|
// unused atm
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onNext(@NonNull genericOverall: GenericOverall) {
|
override fun onNext(genericOverall: GenericOverall) {
|
||||||
Log.d(TAG, "deleted reaction: $emoji")
|
Log.d(TAG, "deleted reaction: $emoji")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,6 @@ import android.os.Bundle
|
|||||||
import android.util.Log
|
import android.util.Log
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.annotation.NonNull
|
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import autodagger.AutoInjector
|
import autodagger.AutoInjector
|
||||||
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
||||||
@ -172,7 +171,7 @@ class ShowReactionsDialog(
|
|||||||
// unused atm
|
// unused atm
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onNext(@NonNull reactionsOverall: ReactionsOverall) {
|
override fun onNext(reactionsOverall: ReactionsOverall) {
|
||||||
val reactionVoters: ArrayList<ReactionItem> = ArrayList()
|
val reactionVoters: ArrayList<ReactionItem> = ArrayList()
|
||||||
if (reactionsOverall.ocs?.data != null) {
|
if (reactionsOverall.ocs?.data != null) {
|
||||||
val map = reactionsOverall.ocs?.data
|
val map = reactionsOverall.ocs?.data
|
||||||
@ -227,7 +226,7 @@ class ShowReactionsDialog(
|
|||||||
// unused atm
|
// unused atm
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onNext(@NonNull genericOverall: GenericOverall) {
|
override fun onNext(genericOverall: GenericOverall) {
|
||||||
Log.d(TAG, "deleted reaction: $emoji")
|
Log.d(TAG, "deleted reaction: $emoji")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,9 +54,12 @@ class FileUploader(
|
|||||||
var requestBody: RequestBody? = null
|
var requestBody: RequestBody? = null
|
||||||
try {
|
try {
|
||||||
val input: InputStream = context.contentResolver.openInputStream(sourceFileUri)!!
|
val input: InputStream = context.contentResolver.openInputStream(sourceFileUri)!!
|
||||||
val buf = ByteArray(input.available())
|
input.use {
|
||||||
while (input.read(buf) != -1)
|
val buf = ByteArray(input.available())
|
||||||
requestBody = RequestBody.create("application/octet-stream".toMediaTypeOrNull(), buf)
|
while (it.read(buf) != -1) {
|
||||||
|
requestBody = RequestBody.create("application/octet-stream".toMediaTypeOrNull(), buf)
|
||||||
|
}
|
||||||
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Log.e(TAG, "failed to create RequestBody for $sourceFileUri", e)
|
Log.e(TAG, "failed to create RequestBody for $sourceFileUri", e)
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:7.2.2'
|
classpath 'com.android.tools.build:gradle:7.3.0'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
|
||||||
classpath "org.jetbrains.kotlin:kotlin-serialization:${kotlinVersion}"
|
classpath "org.jetbrains.kotlin:kotlin-serialization:${kotlinVersion}"
|
||||||
classpath 'gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.7.5'
|
classpath 'gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.7.5'
|
||||||
|
Loading…
Reference in New Issue
Block a user