Add a touch more details to readme instructions

This commit is contained in:
expectocode 2022-10-12 22:08:17 +01:00
parent 476f80cb5e
commit 87601b0967
6 changed files with 13 additions and 6 deletions

View File

@ -7,6 +7,7 @@
<option name="testRunner" value="GRADLE" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="Embedded JDK" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="Android Studio default JDK" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

View File

@ -1,5 +1,7 @@
# Building
Clone repo, open project in Android Studio.
Make sure the required Android NDK platforms are installed, and the environment
variable `ANDROID_NDK_TOOLCHAIN_DIR` is configured correctly.
@ -8,3 +10,7 @@ On Windows, this might be a path such as the following (NDK "Side by side" SDK t
```
%LOCALAPPDATA%\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin
```
Set your API ID and hash in the rust code.
Sync gradle files, and "build" should work.

View File

@ -69,7 +69,7 @@ dependencies {
cargo {
module = "../native"
libname = "talaria"
targets = ["arm64", "arm", "x86"]
targets = ["arm64"]
profile = 'release'
}

0
gradlew vendored Normal file → Executable file
View File

View File

@ -9,10 +9,10 @@ crate-type = ["cdylib"]
[dependencies]
jni = { version = "0.10.2", default-features = false }
# v0.4 of grammers-* is currently unreleased; clone the project and use path dependencies
grammers-client = { version = "0.4.0" }
grammers-tl-types = { version = "0.4.0" }
grammers-session = { version = "0.4.0" }
# v0.4 of grammers-* is currently unreleased; clone the project and use path dependencies, delete version =.
grammers-client = { path = "/home/tanuj/code/grammers/lib/grammers-client" }
grammers-tl-types = { path = "/home/tanuj/code/grammers/lib/grammers-tl-types" }
grammers-session = { path = "/home/tanuj/code/grammers/lib/grammers-session" }
tokio = { version = "1.5.0", features = ["full"] }
log = "0.4.14"
android_logger = "0.11.1"