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
1 change: 1 addition & 0 deletions .github/workflows/analyze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
with:
distribution: "temurin"
java-version: "17"
cache: "gradle"
- name: Setup flutter
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff
with:
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/test-and-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,11 @@ jobs:
sudo udevadm trigger --name-match=kvm
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: AVD Cache
- name: Cache ADB keys
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd
path: ~/.android/adb*
key: adb-keys
- name: Setup flutter
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff
with:
Expand All @@ -276,31 +273,34 @@ jobs:
run: flutter pub global activate patrol_cli ${{ env.patrol_cli_version }}
- name: Run flutter pub get
run: flutter pub get
- name: Clean up runner disk space (if needed)
- name: Free disk space for android emulator
run: |
echo "Running cleanup..."

# Remove large, unneeded packages
echo "Disk space before cleanup:"
df -h /
# Remove large, unneeded packages to free up disk space
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost

echo "Cleanup complete. Free space after cleanup:"
df -h
# Clean docker images
sudo docker image prune --all --force || true
echo "Disk space after cleanup:"
df -h /
- name: Create and start emulator
run: |
echo "Installing system image"
echo "y" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager "system-images;android-35;google_apis;x86_64"
echo "Installing system image..."
echo "y" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager "system-images;android-30;google_apis;x86_64"

echo "Setting ANDROID_AVD_HOME"
export ANDROID_AVD_HOME=$HOME/.config/.android/avd
mkdir -p $ANDROID_AVD_HOME

echo "Creating AVD"
echo "no" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/avdmanager create avd -n test_emulator -k "system-images;android-35;google_apis;x86_64" --force
echo "Creating AVD..."
echo "no" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/avdmanager create avd -n test_emulator -k "system-images;android-30;google_apis;x86_64" --force

echo "Starting emulator"
$ANDROID_SDK_ROOT/emulator/emulator -avd test_emulator -no-audio -no-boot-anim -no-window -no-snapshot &
adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done; input keyevent 82'
adb devices
- name: Generate gradlew file with flutter build
working-directory: ${{ env.working_directory }}
run: flutter build apk --config-only
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ android {
dependencies {
implementation 'androidx.car.app:app:1.7.0'
implementation 'androidx.car.app:app-projected:1.7.0'
implementation 'com.google.android.libraries.navigation:navigation:7.2.0'
implementation 'com.google.android.libraries.navigation:navigation:7.3.0'
testImplementation 'org.jetbrains.kotlin:kotlin-test'
testImplementation 'io.mockk:mockk:1.13.8'
testImplementation 'junit:junit:4.13.2'
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ flutter {
dependencies {
implementation("androidx.car.app:app:1.7.0")
implementation("androidx.car.app:app-projected:1.7.0")
implementation("com.google.android.libraries.navigation:navigation:7.2.0")
implementation("com.google.android.libraries.navigation:navigation:7.3.0")
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
androidTestUtil("androidx.test:orchestrator:1.5.1")
}
Expand Down
Loading