From cdf024b33947f53fe173fc19fe4f0628be07ed10 Mon Sep 17 00:00:00 2001 From: Matthieu <24-artectrex@users.noreply.shinice.net> Date: Thu, 9 Feb 2023 20:20:40 +0100 Subject: [PATCH] Fix #362 and update dependencies --- app/build.gradle | 26 +- .../app/postCreation/PostCreationViewModel.kt | 7 +- build.gradle | 2 +- gradle/verification-metadata.xml | 4008 +++-------------- gradle/wrapper/gradle-wrapper.properties | 4 +- 5 files changed, 544 insertions(+), 3503 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 283ae9a1..489f08bd 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -131,19 +131,19 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.0' + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.2' /** * AndroidX dependencies: */ - implementation 'androidx.appcompat:appcompat:1.6.0-rc01' + implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'androidx.core:core-splashscreen:1.0.0' implementation 'androidx.core:core-ktx:1.9.0' implementation 'androidx.preference:preference-ktx:1.2.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.navigation:navigation-fragment-ktx:2.5.3' implementation 'androidx.navigation:navigation-ui-ktx:2.5.3' - implementation "androidx.browser:browser:1.4.0" + implementation "androidx.browser:browser:1.5.0" implementation 'androidx.recyclerview:recyclerview:1.2.1' implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0" implementation 'androidx.navigation:navigation-fragment-ktx:2.5.3' @@ -158,13 +158,13 @@ dependencies { implementation 'androidx.gridlayout:gridlayout:1.0.0' implementation "androidx.activity:activity-ktx:1.6.1" implementation 'androidx.fragment:fragment-ktx:1.5.5' - implementation 'androidx.work:work-runtime-ktx:2.7.1' + implementation 'androidx.work:work-runtime-ktx:2.8.0' implementation 'androidx.media2:media2-widget:1.2.1' implementation 'androidx.media2:media2-player:1.2.1' // Use the most recent version of CameraX - def cameraX_version = '1.2.0' + def cameraX_version = '1.2.1' implementation "androidx.camera:camera-core:$cameraX_version" implementation "androidx.camera:camera-camera2:$cameraX_version" // CameraX Lifecycle library @@ -173,7 +173,7 @@ dependencies { // CameraX View class implementation "androidx.camera:camera-view:$cameraX_version" - def room_version = "2.4.3" + def room_version = "2.5.0" implementation "androidx.room:room-runtime:$room_version" kapt "androidx.room:room-compiler:$room_version" implementation "androidx.room:room-ktx:$room_version" @@ -186,7 +186,7 @@ dependencies { implementation 'com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0' - implementation 'com.google.android.material:material:1.7.0' + implementation 'com.google.android.material:material:1.8.0' //Dagger (dependency injection) implementation 'com.google.dagger:dagger-android:2.44' @@ -251,7 +251,7 @@ dependencies { androidTestImplementation 'com.linkedin.testbutler:test-butler-library:2.2.1' androidTestUtil 'com.linkedin.testbutler:test-butler-app:2.2.1' - androidTestImplementation 'androidx.work:work-testing:2.7.1' + androidTestImplementation 'androidx.work:work-testing:2.8.0' testImplementation 'com.github.tomakehurst:wiremock-jre8:2.34.0' testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0" testImplementation 'junit:junit:4.13.2' @@ -259,13 +259,13 @@ dependencies { androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0' - androidTestImplementation 'androidx.test:runner:1.5.1' + androidTestImplementation 'androidx.test:runner:1.5.2' androidTestImplementation 'androidx.test:rules:1.5.0' - androidTestImplementation 'androidx.test.ext:junit:1.1.4' - androidTestImplementation 'androidx.test:runner:1.5.1' + androidTestImplementation 'androidx.test.ext:junit:1.1.5' + androidTestImplementation 'androidx.test:runner:1.5.2' androidTestImplementation 'androidx.test:rules:1.5.0' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0' - androidTestImplementation 'androidx.test.espresso:espresso-intents:3.5.0' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' + androidTestImplementation 'androidx.test.espresso:espresso-intents:3.5.1' androidTestImplementation 'com.android.support.test.espresso:espresso-contrib:3.0.2' androidTestImplementation 'com.squareup.okhttp3:mockwebserver:4.9.2' diff --git a/app/src/main/java/org/pixeldroid/app/postCreation/PostCreationViewModel.kt b/app/src/main/java/org/pixeldroid/app/postCreation/PostCreationViewModel.kt index 7ed6e672..8cd7a3a8 100644 --- a/app/src/main/java/org/pixeldroid/app/postCreation/PostCreationViewModel.kt +++ b/app/src/main/java/org/pixeldroid/app/postCreation/PostCreationViewModel.kt @@ -98,7 +98,7 @@ data class PhotoData( var video: Boolean, var videoEncodeProgress: Int? = null, var videoEncodeStabilizationFirstPass: Boolean? = null, - var videoEncodeComplete: Boolean = false, + var videoEncodeComplete: Boolean = true, var videoEncodeError: Boolean = false, ) : Parcelable @@ -212,7 +212,7 @@ class PostCreationViewModel( } } - if (sizeInkBytes > instance!!.maxPhotoSize || sizeInkBytes > instance.maxVideoSize) { + if ((!isVideo && sizeInkBytes > instance!!.maxPhotoSize) || (isVideo && sizeInkBytes > instance!!.maxVideoSize)) { val maxSize = if (isVideo) instance.maxVideoSize else instance.maxPhotoSize _uiState.update { currentUiState -> currentUiState.copy( @@ -250,8 +250,9 @@ class PostCreationViewModel( sessionMap[imageUri]?.let { VideoEditActivity.cancelEncoding(it) } videoEncodingArguments?.let { - videoEncodeStabilizationFirstPass = videoEncodingArguments.videoStabilize > 0.01f + videoEncodeStabilizationFirstPass = it.videoStabilize > 0.01f videoEncodeProgress = 0 + videoEncodeComplete = false VideoEditActivity.startEncoding(imageUri, it, context = getApplication(), diff --git a/build.gradle b/build.gradle index 1f031fbf..17cefc66 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:8.0.0-beta01' + classpath 'com.android.tools.build:gradle:8.0.0-beta02' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 5cb82955..837bfee4 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -5,17 +5,9 @@ false - - - - - - - - - - - + + + @@ -41,9 +33,6 @@ - - - @@ -63,9 +52,6 @@ - - - @@ -86,14 +72,6 @@ - - - - - - - - @@ -121,42 +99,26 @@ - - - + + + - - + + + + + - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - + + @@ -206,103 +168,59 @@ - - - + + + - - + + - - + + - - - + + + - - + + - - + + - - - + + + - - + + - - + + - - - + + + - - + + - - + + - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -369,14 +287,6 @@ - - - - - - - - @@ -399,14 +309,6 @@ - - - - - - - - @@ -501,388 +403,72 @@ - - - + + + - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - + + + - - + + - - - + + + - - + + + + + - - - + + + - - + + + + + - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -937,16 +523,8 @@ - - - - - - - - - - + + @@ -956,16 +534,8 @@ - - - - - - - - - - + + @@ -973,11 +543,6 @@ - - - - - @@ -1003,24 +568,10 @@ - - - - - - - - - - - - - - @@ -1032,17 +583,6 @@ - - - - - - - - - - - @@ -1118,22 +658,6 @@ - - - - - - - - - - - - - - - - @@ -1141,9 +665,6 @@ - - - @@ -1152,9 +673,6 @@ - - - @@ -1193,9 +711,6 @@ - - - @@ -1228,9 +743,6 @@ - - - @@ -1272,9 +784,6 @@ - - - @@ -1287,11 +796,6 @@ - - - - - @@ -1307,9 +811,6 @@ - - - @@ -1318,9 +819,6 @@ - - - @@ -1340,9 +838,6 @@ - - - @@ -1381,9 +876,6 @@ - - - @@ -1609,11 +1101,6 @@ - - - - - @@ -1734,80 +1221,80 @@ - - - + + + - - + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - + + - - - + + + - - + + - - - + + + - - + + - - + + - - - + + + - - + + - - + + - - - + + + - - + + @@ -1851,26 +1338,26 @@ - - - + + + - - + + - - + + - - - + + + - - + + - - + + @@ -1880,9 +1367,6 @@ - - - @@ -1919,14 +1403,6 @@ - - - - - - - - @@ -1935,14 +1411,6 @@ - - - - - - - - @@ -1951,12 +1419,12 @@ - - - + + + - - + + @@ -1967,14 +1435,6 @@ - - - - - - - - @@ -1983,12 +1443,12 @@ - - - + + + - - + + @@ -1999,14 +1459,6 @@ - - - - - - - - @@ -2015,19 +1467,19 @@ + + + + + + + + - - - - - - - - @@ -2036,28 +1488,20 @@ - - - + + + - - + + - - + + - - - - - - - - - - + + @@ -2068,12 +1512,12 @@ - - - + + + - - + + @@ -2210,1218 +1654,226 @@ - - - + + + - - + + - - + + - - - + + + - - + + - - + + - - - + + + - - + + - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - + + - - + + - - - + + + - - + + - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -3432,196 +1884,36 @@ - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -3648,844 +1940,148 @@ - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -4521,11 +2117,6 @@ - - - - - @@ -4539,11 +2130,6 @@ - - - - - @@ -4730,15 +2316,15 @@ - - - + + + - - + + - - + + @@ -4801,14 +2387,6 @@ - - - - - - - - @@ -4834,9 +2412,6 @@ - - - @@ -4849,6 +2424,14 @@ + + + + + + + + @@ -4864,12 +2447,9 @@ - - - - - - + + + @@ -4952,12 +2532,12 @@ - - - + + + - - + + @@ -4976,27 +2556,19 @@ + + + + + + + + - - - - - - - - - - - - - - - - @@ -5020,21 +2592,16 @@ + + + + + - - - - - - - - - - @@ -5082,14 +2649,6 @@ - - - - - - - - @@ -5111,11 +2670,6 @@ - - - - - @@ -5163,37 +2717,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -5202,22 +2730,6 @@ - - - - - - - - - - - - - - - - @@ -5226,29 +2738,11 @@ - - - - - - - - - - - - - - - - - - @@ -5257,14 +2751,6 @@ - - - - - - - - @@ -5281,14 +2767,6 @@ - - - - - - - - @@ -5519,28 +2997,20 @@ - - - + + + - - + + - - - + + + - - - - - - - - - - + + @@ -5551,14 +3021,6 @@ - - - - - - - - @@ -5578,37 +3040,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -5637,11 +3072,6 @@ - - - - - @@ -5786,14 +3216,6 @@ - - - - - - - - @@ -5802,14 +3224,6 @@ - - - - - - - - @@ -5818,14 +3232,6 @@ - - - - - - - - @@ -5834,14 +3240,6 @@ - - - - - - - - @@ -5850,14 +3248,6 @@ - - - - - - - - @@ -5866,14 +3256,6 @@ - - - - - - - - @@ -5882,14 +3264,6 @@ - - - - - - - - @@ -5898,14 +3272,6 @@ - - - - - - - - @@ -5914,14 +3280,6 @@ - - - - - - - - @@ -5930,14 +3288,6 @@ - - - - - - - - @@ -5946,14 +3296,6 @@ - - - - - - - - @@ -5962,14 +3304,6 @@ - - - - - - - - @@ -5978,14 +3312,6 @@ - - - - - - - - @@ -5994,14 +3320,6 @@ - - - - - - - - @@ -6010,14 +3328,6 @@ - - - - - - - - @@ -6026,14 +3336,6 @@ - - - - - - - - @@ -6042,24 +3344,11 @@ - - - - - - - - - - - - - @@ -6081,14 +3370,6 @@ - - - - - - - - @@ -6124,14 +3405,6 @@ - - - - - - - - @@ -6178,21 +3451,10 @@ - - - - - - - - - - - @@ -6450,11 +3712,6 @@ - - - - - @@ -6475,14 +3732,6 @@ - - - - - - - - @@ -6586,14 +3835,6 @@ - - - - - - - - @@ -6602,14 +3843,6 @@ - - - - - - - - @@ -6911,9 +4144,6 @@ - - - @@ -7011,14 +4241,6 @@ - - - - - - - - @@ -7027,14 +4249,6 @@ - - - - - - - - @@ -7198,20 +4412,12 @@ - - - + + + - - - - - - - - - - + + @@ -7270,43 +4476,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -7323,28 +4492,12 @@ - - - + + + - - - - - - - - - - - - - - - - - - + + @@ -7352,14 +4505,6 @@ - - - - - - - - @@ -7376,41 +4521,25 @@ + + + + + + + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -7434,34 +4563,15 @@ - - - + + + - - - - - - - - - - - - - - - - - - + + - - - @@ -7518,8 +4628,13 @@ - - + + + + + + + @@ -7534,24 +4649,26 @@ - - - - - - - - + + + + + + + + + + - - - + + + @@ -7571,8 +4688,13 @@ - - + + + + + + + @@ -7582,19 +4704,21 @@ - - - - - - - - + + + + + + + + + + @@ -7621,34 +4745,17 @@ - - - - - - - - - - - - - - - - - @@ -7759,14 +4866,6 @@ - - - - - - - - @@ -7775,25 +4874,6 @@ - - - - - - - - - - - - - - - - - - - @@ -7818,14 +4898,6 @@ - - - - - - - - @@ -7912,30 +4984,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -7952,13 +5000,5 @@ - - - - - - - - diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 33ca8a52..e80aa6de 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,7 +1,7 @@ #Fri Oct 14 13:37:44 GMT 2022 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionSha256Sum=d5bb29e784426547e4f455fbc0e6512d7a6a67d7d890cf24d601309287128b79 -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-rc-1-bin.zip +distributionSha256Sum=c01b46042141d23aea23ae5b09a12410a7996bac8c7fdf367547acd1b3c772d9 +distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-rc-5-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists