Skip to content

Commit 8ef18de

Browse files
authored
docs(sign/android): Add note about build.gradle.kts path (#3384)
1 parent 800ace7 commit 8ef18de

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed
70.5 KB
Loading

src/content/docs/distribute/Sign/android.mdx

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ sidebar:
66
i18nReady: true
77
---
88

9-
import { Tabs, TabItem } from '@astrojs/starlight/components';
10-
import { Code } from '@astrojs/starlight/components';
9+
import { Image } from 'astro:assets';
10+
import { Code, Tabs, TabItem } from '@astrojs/starlight/components';
11+
import BuildGradleFiletree from '@assets/distribute/sign/build-gradle-kts-filetree.png';
1112

1213
To publish on the Play Store, you need to sign your app with a digital certificate.
1314

@@ -111,6 +112,22 @@ In this example the keystore was exported to base64 with `base64 -i /path/to/key
111112

112113
Configure gradle to use your upload key when building your app in release mode by editing the `[project]/src-tauri/gen/android/app/build.gradle.kts` file.
113114

115+
:::tip
116+
117+
There are multiple different `build.gradle.kts` files in a typical Android project. If there is no `buildTypes` block you're looking at the wrong file. The one you need is in the `app/` directory relative to the keystore file from the prior step.
118+
119+
<details>
120+
<summary>
121+
Click here for a screenshot showing its location in a typical file tree.
122+
</summary>
123+
<Image
124+
src={BuildGradleFiletree}
125+
alt="build.gradle.kts location in file tree"
126+
/>
127+
</details>
128+
129+
:::
130+
114131
1. Add the needed import at the beginning of the file:
115132

116133
```kotlin

0 commit comments

Comments
 (0)