Skip to content

Commit 4a2fa34

Browse files
committed
Project reformatting
1 parent 1ed7c81 commit 4a2fa34

File tree

122 files changed

+223
-276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+223
-276
lines changed

DEVELOPMENT.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
environment,
99
please read [its documentation](https://www.rust-lang.org/). `cargo` and `rustc` must be available in the path in
1010
order to build Gitnuro properly.
11-
- **cargo-kotars:** A tool to run autogenerated bindings from Rust to Kotlin. You can install it using
11+
- **cargo-kotars:** A tool to run autogenerated bindings from Rust to Kotlin. You can install it using
1212
`cargo install cargo-kotars --git https://github.com/JetpackDuba/kotars`.
1313
NOTE: Make sure cargo-kotars is in your path, otherwise Gitnuro's build will fail.
14-
- **Enable Rust Nightly:** Kotars uses some nightly features to generate the binding for Gitnuro. Install nightly rust with
15-
`rustup toolchain install nightly` and enable it as default with `rustup default nightly`.
14+
- **Enable Rust Nightly:** Kotars uses some nightly features to generate the binding for Gitnuro. Install nightly rust
15+
with `rustup toolchain install nightly` and enable it as default with `rustup default nightly`.
1616
- **Perl:** Perl is required to build openssl (which is required for LibSSH to work).
1717
- **Packages for Linux ARM64/aarch64**: You need to install the `aarch64-linux-gnu-gcc` package to cross compile the
1818
Rust components to ARM from x86_64. You will also need to use `rustup` to add a new

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ Example for windows (you may want to edit `C:\Program Files\Git\etc\gitconfig`):
165165
helper = C:/Program Files/Git/mingw64/bin/git-credential-manager-core.exe
166166
```
167167

168-
169168
## Sponsors
170169

171170
Thank you to all the sponsors for helping improve Gitnuro and JetBrains for providing the necessary tooling.
Lines changed: 3 additions & 1 deletion
Loading
Lines changed: 3 additions & 1 deletion
Loading
Lines changed: 3 additions & 1 deletion
Loading
Lines changed: 3 additions & 1 deletion
Loading
Lines changed: 3 additions & 1 deletion
Loading

src/main/kotlin/com/jetpackduba/gitnuro/App.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ import androidx.compose.ui.ExperimentalComposeUiApi
1414
import androidx.compose.ui.Modifier
1515
import androidx.compose.ui.input.key.onPreviewKeyEvent
1616
import androidx.compose.ui.platform.LocalDensity
17-
import org.jetbrains.compose.resources.painterResource
1817
import androidx.compose.ui.unit.Density
1918
import androidx.compose.ui.unit.DpSize
2019
import androidx.compose.ui.unit.dp
2120
import androidx.compose.ui.unit.sp
2221
import androidx.compose.ui.window.Window
2322
import androidx.compose.ui.window.application
2423
import androidx.compose.ui.window.rememberWindowState
25-
import com.jetpackduba.gitnuro.credentials.SshProcess
2624
import com.jetpackduba.gitnuro.di.DaggerAppComponent
2725
import com.jetpackduba.gitnuro.extensions.preferenceValue
2826
import com.jetpackduba.gitnuro.extensions.toWindowPlacement
@@ -52,8 +50,8 @@ import com.jetpackduba.gitnuro.ui.dialogs.settings.ProxyType
5250
import kotlinx.coroutines.launch
5351
import org.eclipse.jgit.lib.GpgConfig
5452
import org.eclipse.jgit.lib.Signers
55-
import org.eclipse.jgit.transport.URIish
5653
import org.eclipse.jgit.util.LfsFactory
54+
import org.jetbrains.compose.resources.painterResource
5755
import java.io.File
5856
import java.io.FileOutputStream
5957
import java.net.Authenticator

src/main/kotlin/com/jetpackduba/gitnuro/AppConstants.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private val lgpl__2_1 = License("LGPL-2.1", "https://www.gnu.org/licenses/old-li
3434

3535
data class License(
3636
val name: String,
37-
val url: String
37+
val url: String,
3838
)
3939

4040
data class Project(val name: String, val url: String, val license: License)

src/main/kotlin/com/jetpackduba/gitnuro/Logging.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Logging @Inject constructor() {
7575
}
7676

7777
if (!directory.exists()) {
78-
if(directory.isFile) {
78+
if (directory.isFile) {
7979
directory.delete()
8080
}
8181

0 commit comments

Comments
 (0)