Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit a698a6c

Browse files
committed
fix: always include debug symbols in sample APK
1 parent c40b87a commit a698a6c

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ jobs:
6161
env:
6262
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
6363
PublishToMaven: ${{ github.ref == 'refs/heads/main' }}
64-
TS_INCLUDE_DBG_SYMS_IN_APK: true
6564

6665
- name: Upload APK
6766
uses: actions/upload-artifact@v3

build-logic/ats/src/main/java/com/itsaky/androidide/treesitter/TreeSitterPlugin.kt

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class TreeSitterPlugin : Plugin<Project> {
7373
Locale.ROOT) else name.toString()
7474
}
7575

76+
@Suppress("UnstableApiUsage")
7677
val generateDebugSymbolsTask =
7778
tasks.register("generateDebugSymbols$variantName",
7879
GenerateDebugSymbolsTask::class.java) {
@@ -81,17 +82,13 @@ class TreeSitterPlugin : Plugin<Project> {
8182

8283
this.inputDirectory.set(
8384
variant.artifacts.get(SingleArtifact.MERGED_NATIVE_LIBS))
84-
this.outputDirectory.set(project.layout.buildDirectory.dir(
85-
"intermediates/ts_debug_symbols/${variant.name}/out"))
8685
this.ndkInfo.set(ndkPlatform.get().ndkInfo)
8786
}
8887

89-
// include the debug symbols in the APK if specified
90-
if (System.getenv("TS_INCLUDE_DBG_SYMS_IN_APK").toBoolean()) {
91-
variant.sources.assets?.addGeneratedSourceDirectory(
92-
generateDebugSymbolsTask,
93-
GenerateDebugSymbolsTask::outputDirectory)
94-
}
88+
variant.sources.assets?.addGeneratedSourceDirectory(
89+
generateDebugSymbolsTask,
90+
GenerateDebugSymbolsTask::outputDirectory
91+
)
9592
}
9693
}
9794
}

0 commit comments

Comments
 (0)