From 5d09a7fc7be21445a9a3312623c66d51c5ca00ea Mon Sep 17 00:00:00 2001 From: Mariano Riefolo Date: Thu, 11 Apr 2024 15:49:11 +0200 Subject: [PATCH] Fixed login when in release mode, activated isCrunchPngs and updated gradle --- app/build.gradle.kts | 2 +- .../cassandroferminervi/flowschool/remote/dto/LoginResult.kt | 3 +++ build.gradle.kts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e8c3c38..12e587b 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -26,7 +26,7 @@ android { isMinifyEnabled = true isShrinkResources = true proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") - isCrunchPngs = false + isCrunchPngs = true } } compileOptions { diff --git a/app/src/main/java/it/edu/cassandroferminervi/flowschool/remote/dto/LoginResult.kt b/app/src/main/java/it/edu/cassandroferminervi/flowschool/remote/dto/LoginResult.kt index 3e46a46..46c27ef 100644 --- a/app/src/main/java/it/edu/cassandroferminervi/flowschool/remote/dto/LoginResult.kt +++ b/app/src/main/java/it/edu/cassandroferminervi/flowschool/remote/dto/LoginResult.kt @@ -1,3 +1,6 @@ package it.edu.cassandroferminervi.flowschool.remote.dto +import androidx.annotation.Keep + +@Keep data class LoginResult(val token: String?, val error: String?) diff --git a/build.gradle.kts b/build.gradle.kts index 0db614e..a7d3dac 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,5 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id("com.android.application") version "8.3.0" apply false + id("com.android.application") version "8.3.1" apply false id("org.jetbrains.kotlin.android") version "1.9.0" apply false } \ No newline at end of file