Skip to content

Commit

Permalink
update debug symbols directory
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Dec 14, 2024
1 parent 5330843 commit 95ec125
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ jobs:
VERSION: ${{ env.version }}
run: |
make ${{ matrix.platform }}-${{ matrix.target }}-release
ls -ltr build/app/intermediates
ls -ltr build/app/intermediates/merged_native_libs
ls -ltr build/app/intermediates/merged_native_libs/prodPlay
make debug-symbols
- name: Build Flutter app
Expand Down
8 changes: 8 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,14 @@ tasks.register('zipDebugSymbols') {
doLast {
def flutterRootDir = rootDir.parentFile
def debugSymbolsDir = file("${flutterRootDir}/build/app/intermediates/merged_native_libs/prodPlay/mergeProdPlayNativeLibs/out/lib")
if (!debugSymbolsDir.exists()) {
debugSymbolsDir = file("${buildDir}/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib")
}

if (!debugSymbolsDir.exists()) {
throw new GradleException("Debug symbols directory not found: ${debugSymbolsDir}")
}

def outputDir = file("${flutterRootDir}/build/outputs/debug-symbols")
outputDir.mkdirs()
copy {
Expand Down

0 comments on commit 95ec125

Please sign in to comment.