Skip to content

Commit

Permalink
fix(cli): remove buildSrc from Android project gitignored paths (#6702)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Apr 13, 2023
1 parent 9de8979 commit ee2d3b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changes/android-buildsrc-gitignore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---

Do not gitignore the Android project's `buildSrc` folder by default since we removed absolute paths from it.
2 changes: 0 additions & 2 deletions tooling/cli/templates/mobile/android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
/.idea/assetWizardSettings.xml
.DS_Store
build
/buildSrc/src/main/{{package-path}}/kotlin/BuildTask.kt
/buildSrc/src/main/{{package-path}}/kotlin/RustPlugin.kt
/captures
.externalNativeBuild
.cxx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ open class BuildTask : DefaultTask() {
val executable = """{{tauri-binary}}""";
try {
runTauriCli(executable)
} catch (e: Exception){
} catch (e: Exception) {
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
runTauriCli("$executable.cmd")
} else {
Expand Down

0 comments on commit ee2d3b9

Please sign in to comment.