AGP Update
This commit is contained in:
parent
243d0d1d30
commit
550cf3506e
@ -2,7 +2,6 @@ package it.integry.integrywmsnative.gest.contab_doc_interni.edit_form;
|
||||
|
||||
import androidx.lifecycle.MutableLiveData;
|
||||
|
||||
import com.annimon.stream.Optional;
|
||||
import com.annimon.stream.Stream;
|
||||
|
||||
import org.json.JSONException;
|
||||
@ -278,27 +277,32 @@ public class DocInterniEditFormViewModel {
|
||||
if (doc == null || fornitori == null || tipoDocDTO == null)
|
||||
return;
|
||||
|
||||
List<FornitoreDTO> filterFornitori = Stream.of(fornitori).filter(x->x.getCodAnag().equals(doc.getCodAnag())).toList();
|
||||
List<FornitoreDTO> filterFornitori = Stream.of(fornitori)
|
||||
.filter(x -> x.getCodAnag().equals(doc.getCodAnag()))
|
||||
.toList();
|
||||
List<CheckFornitoreDTO> checkFornitoreDTO;
|
||||
|
||||
TipoDocDTO tipoDoc = Stream.of(tipoDocDTO).filter(x -> x.getCodDtip().equals(doc.getCodDtipProvv())).findFirst().get();
|
||||
TipoDocDTO tipoDoc = Stream.of(tipoDocDTO)
|
||||
.filter(x -> x.getCodDtip().equals(doc.getCodDtipProvv()))
|
||||
.findFirst()
|
||||
.get();
|
||||
|
||||
if (tipoDoc.isFlagChkTracciabilita()){
|
||||
if (tipoDoc.isFlagChkTracciabilita()) {
|
||||
this.isCheckPartitaMag = tipoDoc.isFlagChkTracciabilita();
|
||||
}else{
|
||||
} else {
|
||||
if (filterFornitori.isEmpty())
|
||||
return;
|
||||
|
||||
if (doc.getCodVdes() == null) {
|
||||
checkFornitoreDTO = Stream.of(filterFornitori)
|
||||
.filter(x -> x.getCodVdes() == null).findFirst().get().getCheckFornitoreDTO();
|
||||
} else{
|
||||
} else {
|
||||
checkFornitoreDTO = Stream.of(filterFornitori)
|
||||
.filterNot(x -> x.getCodVdes() == null)
|
||||
.filter(x -> x.getCodVdes().equals(doc.getCodVdes())).findFirst().get().getCheckFornitoreDTO();
|
||||
}
|
||||
|
||||
if (checkFornitoreDTO != null){
|
||||
if (checkFornitoreDTO != null) {
|
||||
CheckFornitoreDTO flagCheck = Stream.of(checkFornitoreDTO)
|
||||
.filter(x -> x.getCodDtip().equals(doc.getCodDtipProvv())).findFirstOrElse(null);
|
||||
|
||||
|
||||
@ -1,12 +1,11 @@
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
compileSdkVersion 33
|
||||
|
||||
compileSdk 34
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 33
|
||||
targetSdk 34
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
buildscript {
|
||||
ext {
|
||||
kotlin_version = '1.9.0'
|
||||
agp_version = '8.2.0'
|
||||
agp_version = '8.2.1'
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
compileSdkVersion 33
|
||||
compileSdk 34
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 33
|
||||
targetSdk 34
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
compileSdkVersion 33
|
||||
compileSdk 34
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 33
|
||||
targetSdk 34
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
consumerProguardFiles 'consumer-rules.pro'
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
compileSdkVersion 33
|
||||
compileSdk 34
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 33
|
||||
targetSdk 34
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
compileSdkVersion 33
|
||||
compileSdk 34
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 33
|
||||
targetSdk 34
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user