diff --git a/android/.gitignore b/android/.gitignore index 7a10f04b..df369dab 100644 --- a/android/.gitignore +++ b/android/.gitignore @@ -10,4 +10,5 @@ GeneratedPluginRegistrant.java # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app key.properties -report.xml \ No newline at end of file +report.xml +/app/property** \ No newline at end of file diff --git a/android/app/build.gradle b/android/app/build.gradle index 247bbf55..9fdfe1cb 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -38,7 +38,7 @@ android { defaultConfig { applicationId "org.fsociety.vernet" minSdkVersion 24 - targetSdkVersion 34 + targetSdkVersion 35 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } @@ -55,6 +55,7 @@ android { release { signingConfig signingConfigs.release minifyEnabled true + crunchPngs false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } @@ -66,6 +67,7 @@ android { dimension "deploy" signingConfig signingConfigs.release } + fdroid { dimension "deploy" signingConfig signingConfigs.release diff --git a/android/build.gradle b/android/build.gradle index 30abde0e..f078fb19 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,7 +1,7 @@ allprojects { repositories { google() - jcenter() + mavenCentral() } // Fix for Gradle Error. // Namespace not specified. Specify a namespace in the module's build file diff --git a/android/gradle.properties b/android/gradle.properties index 1310f7a8..bb9190b5 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,6 +1,21 @@ -org.gradle.jvmargs=-Xmx1536M +## For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +# Default value: -Xmx1024m -XX:MaxPermSize=256m +# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 +# +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. For more details, visit +# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects +# org.gradle.parallel=true +#Tue Aug 20 07:29:49 IST 2024 +android.enableJetifier=false +android.nonFinalResIds=false +android.nonTransitiveRClass=true android.useAndroidX=true -android.enableJetifier=true -android.defaults.buildfeatures.buildconfig=true -android.nonTransitiveRClass=false -android.nonFinalResIds=false \ No newline at end of file +org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g + +#org.gradle.configuration-cache=true +#org.gradle.configuration-cache.problems=warn