forked from Lonami/Talaria
Add a touch more details to readme instructions
This commit is contained in:
parent
476f80cb5e
commit
87601b0967
|
@ -7,6 +7,7 @@
|
||||||
<option name="testRunner" value="GRADLE" />
|
<option name="testRunner" value="GRADLE" />
|
||||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||||
|
<option name="gradleJvm" value="Embedded JDK" />
|
||||||
<option name="modules">
|
<option name="modules">
|
||||||
<set>
|
<set>
|
||||||
<option value="$PROJECT_DIR$" />
|
<option value="$PROJECT_DIR$" />
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
<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" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
# Building
|
# Building
|
||||||
|
|
||||||
|
Clone repo, open project in Android Studio.
|
||||||
|
|
||||||
Make sure the required Android NDK platforms are installed, and the environment
|
Make sure the required Android NDK platforms are installed, and the environment
|
||||||
variable `ANDROID_NDK_TOOLCHAIN_DIR` is configured correctly.
|
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
|
%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.
|
||||||
|
|
|
@ -69,7 +69,7 @@ dependencies {
|
||||||
cargo {
|
cargo {
|
||||||
module = "../native"
|
module = "../native"
|
||||||
libname = "talaria"
|
libname = "talaria"
|
||||||
targets = ["arm64", "arm", "x86"]
|
targets = ["arm64"]
|
||||||
profile = 'release'
|
profile = 'release'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,10 +9,10 @@ crate-type = ["cdylib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
jni = { version = "0.10.2", default-features = false }
|
jni = { version = "0.10.2", default-features = false }
|
||||||
# v0.4 of grammers-* is currently unreleased; clone the project and use path dependencies
|
# v0.4 of grammers-* is currently unreleased; clone the project and use path dependencies, delete version =.
|
||||||
grammers-client = { version = "0.4.0" }
|
grammers-client = { path = "/home/tanuj/code/grammers/lib/grammers-client" }
|
||||||
grammers-tl-types = { version = "0.4.0" }
|
grammers-tl-types = { path = "/home/tanuj/code/grammers/lib/grammers-tl-types" }
|
||||||
grammers-session = { version = "0.4.0" }
|
grammers-session = { path = "/home/tanuj/code/grammers/lib/grammers-session" }
|
||||||
tokio = { version = "1.5.0", features = ["full"] }
|
tokio = { version = "1.5.0", features = ["full"] }
|
||||||
log = "0.4.14"
|
log = "0.4.14"
|
||||||
android_logger = "0.11.1"
|
android_logger = "0.11.1"
|
||||||
|
|
Loading…
Reference in New Issue