Fix Android 36 AAR metadata build and low-memory Gradle setup
This commit is contained in:
@@ -43,6 +43,8 @@ if (debugKeystorePropertiesFile.exists()) {
|
||||
debugKeystoreProperties.load(new FileInputStream(debugKeystorePropertiesFile))
|
||||
}
|
||||
|
||||
def hasReleaseKeystore = keystorePropertiesFile.exists() && keystoreProperties['storeFile']
|
||||
|
||||
// magical code that fixes builds
|
||||
subprojects {
|
||||
afterEvaluate { project ->
|
||||
@@ -112,10 +114,12 @@ android {
|
||||
}
|
||||
|
||||
release {
|
||||
keyAlias keystoreProperties['keyAlias']
|
||||
keyPassword keystoreProperties['keyPassword']
|
||||
storeFile file(keystoreProperties['storeFile'])
|
||||
storePassword keystoreProperties['storePassword']
|
||||
if (hasReleaseKeystore) {
|
||||
keyAlias keystoreProperties['keyAlias']
|
||||
keyPassword keystoreProperties['keyPassword']
|
||||
storeFile file(keystoreProperties['storeFile'])
|
||||
storePassword keystoreProperties['storePassword']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,7 +129,11 @@ android {
|
||||
}
|
||||
|
||||
release {
|
||||
signingConfig signingConfigs.release
|
||||
if (hasReleaseKeystore) {
|
||||
signingConfig signingConfigs.release
|
||||
} else {
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
shrinkResources true
|
||||
minifyEnabled true
|
||||
debuggable false
|
||||
|
||||
@@ -22,9 +22,12 @@ allprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
maven {
|
||||
// [required] background_fetch
|
||||
url "${project(':background_fetch').projectDir}/libs"
|
||||
def backgroundFetchProject = findProject(':background_fetch')
|
||||
if (backgroundFetchProject != null) {
|
||||
maven {
|
||||
// [required] background_fetch
|
||||
url "${backgroundFetchProject.projectDir}/libs"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,8 +50,8 @@ subprojects {
|
||||
afterEvaluate {project ->
|
||||
if (project.plugins.hasPlugin('android') || project.plugins.hasPlugin('android-library')) {
|
||||
android {
|
||||
compileSdkVersion 35
|
||||
buildToolsVersion '35.0.0'
|
||||
compileSdkVersion 36
|
||||
buildToolsVersion '36.0.0'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
org.gradle.jvmargs=-Xmx6G -XX:MaxMetaspaceSize=4G -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC
|
||||
org.gradle.jvmargs=-Xmx2560m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC
|
||||
org.gradle.java.home=/home/zypherift/app-legacy/refilc/android/.jdks/jdk-17.0.18+8
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
||||
org.gradle.parallel=true
|
||||
org.gradle.parallel=false
|
||||
# kotlin.jvm.target.validation.mode=IGNORE
|
||||
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
|
||||
|
||||
@@ -24,7 +24,7 @@ pluginManagement {
|
||||
|
||||
plugins {
|
||||
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
||||
id "com.android.application" version "8.7.3" apply false
|
||||
id "com.android.application" version "8.9.2" apply false
|
||||
id "org.jetbrains.kotlin.android" version "2.0.21" apply false
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ dependencies:
|
||||
quick_actions: ^1.1.0
|
||||
animated_list_plus: ^0.5.2
|
||||
dynamic_color: 1.7.0
|
||||
material_color_utilities: ^0.11.1
|
||||
material_color_utilities: ^0.13.0
|
||||
crypto: ^3.0.6
|
||||
elegant_notification: ^2.4.1
|
||||
flutter_feather_icons: ^2.0.0+1
|
||||
|
||||
Reference in New Issue
Block a user