diff --git a/android/app/build.gradle b/android/app/build.gradle index 378b3674..4fb2c5e6 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -30,6 +30,7 @@ if (keystorePropertiesFile.exists()) { android { compileSdkVersion 34 + compileSdk 34 sourceSets { main.java.srcDirs += 'src/main/kotlin' @@ -46,8 +47,19 @@ android { targetSdkVersion 34 versionCode flutterVersionCode.toInteger() versionName flutterVersionName + multiDexEnabled true + } + compileOptions { + // Flag to enable support for the new language APIs + coreLibraryDesugaringEnabled true + // Sets Java compatibility to Java 8 + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + signingConfigs { release { keyAlias keystoreProperties['keyAlias'] @@ -57,6 +69,10 @@ android { } } + dependencies { + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2' + } + buildTypes { release { signingConfig signingConfigs.debug @@ -71,9 +87,12 @@ flutter { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10" // id "org.jetbrains.kotlin.android" version "1.8.10" apply false - + implementation 'com.android.support:multidex:1.0.3' // Se necessário, adicione suporte ao multidex // Adicione outras dependências do seu aplicativo aqui + + implementation 'androidx.window:window:1.0.0' + implementation 'androidx.window:window-java:1.0.0' } apply plugin: 'com.google.gms.google-services' \ No newline at end of file diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index c384fe42..bc60e9ce 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,14 +1,14 @@ - - + + - - - - + + + + + + android:name="io.flutter.embedding.android.NormalTheme" + android:resource="@style/NormalTheme" + /> + android:name="io.flutter.embedding.android.SplashScreenDrawable" + android:resource="@drawable/launch_background" + /> - - + + + android:name="com.google.firebase.messaging.ic_fre_black" + android:resource="@drawable/ic_fre_black" /> @@ -72,6 +73,17 @@ android:value="2" /> + + + + + + + + + - + \ No newline at end of file diff --git a/android/build.gradle b/android/build.gradle index 70c46d39..c67c3834 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -5,13 +5,13 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.0.2' // Use a versão do Gradle que corresponde à sua configuração + classpath 'com.android.tools.build:gradle:7.3.1' // Use a versão do Gradle que corresponde à sua configuração classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10' // Kotlin Gradle plugin classpath 'com.google.gms:google-services:4.4.2' // Google Services plugin // Certifique-se de adicionar outras dependências do classpath aqui, se necessário. } } - + allprojects { repositories { google() diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index affaa086..50832291 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Sat Jun 15 18:23:23 BRT 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip +networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists