2022-10-12 14:03:29 +00:00
|
|
|
# Building
|
|
|
|
|
2022-10-12 21:25:41 +00:00
|
|
|
Clone the repo, then open the project in Android Studio.
|
|
|
|
|
2022-10-12 14:03:29 +00:00
|
|
|
Make sure the required Android NDK platforms are installed, and the environment
|
|
|
|
variable `ANDROID_NDK_TOOLCHAIN_DIR` is configured correctly.
|
|
|
|
|
|
|
|
On Windows, this might be a path such as the following (NDK "Side by side" SDK tool):
|
|
|
|
|
|
|
|
```
|
|
|
|
%LOCALAPPDATA%\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin
|
|
|
|
```
|
2022-10-12 21:25:41 +00:00
|
|
|
|
|
|
|
Set your API ID and hash in the rust code.
|
|
|
|
|
|
|
|
Change the Cargo.toml to point to a local grammers source tree and remove the version argument.
|
|
|
|
|
|
|
|
Sync gradle files, and Android Studio's "build" and "run" should Just Work.
|