# Repo Docs

Private docs on managing repos, such as how to publishing/update apps

# Koni Connect

Repo: [https://github.com/JaggedJax/Koni-Connect](https://github.com/JaggedJax/Koni-Connect)

Formerly named: Nikon Remote

## Publishing Updates

#### 1. Update Your App Version

In the project's [app/build.gradle.kts](https://github.com/JaggedJax/Nikon-Remote/blob/main/app/build.gradle.kts), update `versionCode` and `versionName`. versiodCode must be an increasing int and match a [changelogs/x.txt](https://github.com/JaggedJax/Nikon-Remote/tree/main/fastlane/metadata/android/en-US/changelogs) file name:

```
defaultConfig {
    versionCode = 2
    versionName = "0.2.0"
}
```

<div class="code-block ng-tns-c2378584789-44 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" id="bkmrk--1" style="display:block;"><div class="formatted-code-block-internal-container ng-tns-c2378584789-44"><div class="animated-opacity ng-tns-c2378584789-44"></div></div></div>#### 2. Add the Fastlane Changelog

Create a new plain-text changelog file named after the **new `versionCode`**, not the `versionName`.

- Path: `fastlane/metadata/android/en-US/changelogs/X.txt` using the versionCode int as the file name
- Keep the text concise (under 500 characters) and plain text without complex Markdown.

#### 3. Commit, Tag, and Push

F-Droid's update checker relies on Git tags matching your `versionName` (usually prefixed with `v`, depending on your `fdroiddata` metadata's `UpdateCheckMode`).

1. Commit your version bump and `2.txt` changelog:
    
    <div class="code-block ng-tns-c2378584789-45 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" style="display:block;"><div class="formatted-code-block-internal-container ng-tns-c2378584789-45"><div class="animated-opacity ng-tns-c2378584789-45"><div class="code-block-decoration header-formatted gds-emphasized-body-m ng-tns-c2378584789-45 ng-star-inserted"><span class="ng-tns-c2378584789-45">Bash</span><div class="buttons ng-tns-c2378584789-45 ng-star-inserted"></div></div></div></div></div>
    
    ```
    git add .
    git commit -m "Release v1.1.0"
    
    ```
    
    <div class="code-block ng-tns-c2378584789-45 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" style="display:block;"><div class="formatted-code-block-internal-container ng-tns-c2378584789-45"><div class="animated-opacity ng-tns-c2378584789-45"></div></div></div>
2. Create an annotated Git tag matching your `versionName` convention (check your existing tag with `git tag` to ensure the prefix matches):
    
    <div class="code-block ng-tns-c2378584789-46 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" style="display:block;"><div class="formatted-code-block-internal-container ng-tns-c2378584789-46"><div class="animated-opacity ng-tns-c2378584789-46"><div class="code-block-decoration header-formatted gds-emphasized-body-m ng-tns-c2378584789-46 ng-star-inserted"><span class="ng-tns-c2378584789-46">Bash</span><div class="buttons ng-tns-c2378584789-46 ng-star-inserted"></div></div></div></div></div>
    
    ```
    git tag -a v1.1.0 -m "Release v1.1.0"
    
    ```
    
    <div class="code-block ng-tns-c2378584789-46 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" style="display:block;"><div class="formatted-code-block-internal-container ng-tns-c2378584789-46"><div class="animated-opacity ng-tns-c2378584789-46"></div></div></div>
3. Push both the commit and the tag to your remote repository:
    
    <div class="code-block ng-tns-c2378584789-47 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" style="display:block;"><div class="formatted-code-block-internal-container ng-tns-c2378584789-47"><div class="animated-opacity ng-tns-c2378584789-47"><div class="code-block-decoration header-formatted gds-emphasized-body-m ng-tns-c2378584789-47 ng-star-inserted"><span class="ng-tns-c2378584789-47">Bash</span></div></div></div></div>
    
    ```
    git push && git push --tags
    ```