This repository was archived by the owner on Oct 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
build-logic/ats/src/main/java/com/itsaky/androidide/treesitter Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments