Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ android {
namespace = "com.the360ghar.ghar360"
// Explicitly target Android 15 / API 36 to meet plugin requirements.
compileSdk = 36
// maplibre_gl requires NDK 28.x; use highest required (backward compatible).
ndkVersion = "28.1.13356709"
// Align with Flutter/plugin highest requirement (jni wants 28.2.x; NDK is backward-compatible).
ndkVersion = "28.2.13676358"

compileOptions {
sourceCompatibility = JavaVersion.VERSION_21
Expand Down
7 changes: 1 addition & 6 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,7 @@
android:name="flutterEmbedding"
android:value="2" />

<!-- Enable Impeller rendering engine for better performance -->
<meta-data
android:name="io.flutter.embedding.android.EnableImpeller"
android:value="true" />


<!-- Impeller is the default on modern Flutter; no explicit EnableImpeller meta-data. -->

</application>
</manifest>
22 changes: 21 additions & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError --enable-native-access=ALL-UNNAMED
# Conservative defaults for 8GB developer machines (AsmClassesTransform /
# mergeDebugGlobalSynthetics + Kotlin daemon stay under typical laptop RAM).
# CI / high-RAM hosts: override without editing this file, e.g.
# export GRADLE_OPTS="-Dorg.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m"
# or add to ~/.gradle/gradle.properties / CI secrets:
# org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m ...
# org.gradle.workers.max=2
# org.gradle.parallel=true
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:ReservedCodeCacheSize=256m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 --enable-native-access=ALL-UNNAMED

# Prefer stability over max parallelism (large Flutter plugin graphs).
# Raise workers/parallel on CI only after raising -Xmx (see above).
org.gradle.workers.max=1
org.gradle.parallel=false
org.gradle.caching=true
org.gradle.daemon=true
org.gradle.configureondemand=false

# Kotlin compiler daemon (separate process; competes with Gradle -Xmx).
kotlin.daemon.jvmargs=-Xmx768m -XX:MaxMetaspaceSize=256m

android.useAndroidX=true
android.enableJetifier=true
# This builtInKotlin flag was added automatically by Flutter migrator
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-all.zip
5 changes: 3 additions & 2 deletions android/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ pluginManagement {

plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.12.1" apply false
id("org.jetbrains.kotlin.android") version "2.2.0" apply false
// AGP 8.11.1 is the max officially tested with Kotlin 2.2.20.
id("com.android.application") version "8.11.1" apply false
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
Comment thread
coderabbitai[bot] marked this conversation as resolved.
// Google Services (Firebase)
id("com.google.gms.google-services") version "4.4.2" apply false
// Firebase Gradle plugins applied in app module
Expand Down
1 change: 0 additions & 1 deletion lib/core/config/dev_env.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ const Map<String, String> kDevEnv = {
// <dev-env:begin>
// <dev-env:end>
};

Loading
Loading