Skip to content

Commit 8c1cf65

Browse files
committed
Add build guide document BUILD_AND_RELEASE.md
1 parent 7ba4982 commit 8c1cf65

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

BUILD_AND_RELEASE.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Build and Release Guide for AndroidForClaw
2+
3+
## Instructions for Building and Releasing Signed APK
4+
5+
### 1. Keystore Setup
6+
- Generate a keystore using the command:
7+
```bash
8+
keytool -genkey -v -keystore your_keystore_name.jks -keyalg RSA -keysize 2048 -validity 10000 -alias your_alias_name
9+
```
10+
- Follow the prompts to set up your keystore password and other details.
11+
12+
### 2. Build Commands
13+
- To build the signed APK, navigate to your project directory and run:
14+
```bash
15+
./gradlew assembleRelease
16+
```
17+
- Make sure to replace the default signing configuration in the `build.gradle` file if required:
18+
```groovy
19+
android {
20+
signingConfigs {
21+
release {
22+
storeFile file('path_to_your_keystore/your_keystore_name.jks')
23+
storePassword 'your_keystore_password'
24+
keyAlias 'your_alias_name'
25+
keyPassword 'your_key_password'
26+
}
27+
}
28+
}
29+
```
30+
31+
### 3. APK Location
32+
- After building, the signed APK will be located at:
33+
```
34+
app/build/outputs/apk/release/app-release.apk
35+
```
36+
37+
### Additional Notes
38+
- Ensure that you have the latest version of the Android SDK and Gradle installed.
39+
- Remember to keep your keystore and passwords secure!

0 commit comments

Comments
 (0)