Kaynağa Gözat

fix(cli): remove buildSrc from Android project gitignored paths (#6702)

Lucas Fernandes Nogueira 2 yıl önce
ebeveyn
işleme
ee2d3b971d

+ 6 - 0
.changes/android-buildsrc-gitignore.md

@@ -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.

+ 0 - 2
tooling/cli/templates/mobile/android/.gitignore

@@ -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

+ 1 - 1
tooling/cli/templates/mobile/android/buildSrc/src/main/kotlin/BuildTask.kt

@@ -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 {