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
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,15 @@ jobs:
bundler-cache: true
working-directory: 'android'

- name: Clean up disk space
run: |
echo "Disk space before cleanup:"
df -h
sudo rm -rf /usr/share/dotnet /opt/ghc || true
rm -rf ~/.dart_tool ~/.pub-cache || true
echo "Disk space after cleanup:"
df -h

- name: Install Project Dependencies
run: flutter pub get

Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,15 @@ jobs:
bundler-cache: true
working-directory: 'android'

- name: Clean up disk space
run: |
echo "Disk space before cleanup:"
df -h
sudo rm -rf /usr/share/dotnet /opt/ghc || true
rm -rf ~/.dart_tool ~/.pub-cache || true
echo "Disk space after cleanup:"
df -h

- name: Install Project Dependencies
run: flutter pub get

Expand Down
22 changes: 1 addition & 21 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,7 @@ plugins {
id "org.jetbrains.kotlin.android"
id "dev.flutter.flutter-gradle-plugin"
}
// Force older AndroidX core libs so they work with AGP 8.6.x
configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == "androidx.core"
&& (details.requested.name == "core" || details.requested.name == "core-ktx")) {
// 1.13.1 is pre 1.15/1.17 AAR-metadata strictness
details.useVersion "1.13.1"
details.because("Flutter 3.38 uses AGP 8.6.x, so we avoid androidx.core 1.17.0 which requires AGP 8.9.1")
}
if (details.requested.group == "androidx.browser"
&& details.requested.name == "browser") {
details.useVersion "1.8.0"
details.because("Avoid androidx.browser 1.9.0 which requires AGP 8.9.1 while Flutter pins 8.6.x")
}
if (details.requested.group == "net.bytebuddy"
&& details.requested.name == "byte-buddy") {
details.useVersion "1.14.10"
details.because("Avoid byte-buddy 1.17.6 which Jetifier cannot transform (unsupported class file major version 68)")
}
}
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
Expand Down
3 changes: 1 addition & 2 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ org.gradle.parallel=true
org.gradle.caching=true
org.gradle.daemon=true
android.useAndroidX=true
android.enableJetifier=false
android.useDeprecatedNdk=true
android.enableJetifier=true
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.11.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-all.zip
6 changes: 3 additions & 3 deletions android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
id 'com.android.application' version '8.9.1' apply false
id 'com.android.library' version '8.9.1' apply false
id "org.jetbrains.kotlin.android" version "2.2.20" apply false
id 'com.android.application' version '8.13.2' apply false
id 'com.android.library' version '8.13.2' apply false
}

include ':app'
Loading