diff --git a/docs/_developer_onboarding.md b/docs/_developer_onboarding.md index 9b07f37daf..37bf8a6548 100644 --- a/docs/_developer_onboarding.md +++ b/docs/_developer_onboarding.md @@ -136,7 +136,7 @@ git clone git@github.com:matrix-org/matrix-rust-sdk.git git clone git@github.com:matrix-org/matrix-rust-components-kotlin.git ``` -Then you can launch the build script with the following params: +Then you can launch the build script from the matrix-rust-components-kotlin repository with the following params: - `-p` Local path to the rust-sdk repository - `-o` Optional output path with the expected name of the aar file. By default the aar will be located in the corresponding build/outputs/aar directory. @@ -150,12 +150,12 @@ So for example to build the sdk against aarch64-linux-android target and copy th ./scripts/build.sh -p [YOUR MATRIX RUST SDK PATH] -t aarch64-linux-android -o [YOUR element-x-android PATH]/libraries/rustsdk/matrix-rust-sdk.aar ``` -Finally let the `matrix/impl` module use this aar by switching those lines in the gradle file : +Finally let the `matrix/impl` module use this aar by changing the dependencies from `libs.matrix.sdk` to `projects.libraries.rustsdk`: ```groovy dependencies { - api(projects.libraries.rustsdk) // <- comment this line - // api(libs.matrix.sdk) // <- uncomment this line + api(projects.libraries.rustsdk) // <- use the local version of the sdk. Uncomment this line. + //implementation(libs.matrix.sdk) // <- use the released version. Comment this line. } ``` diff --git a/libraries/rustsdk/build.gradle b/libraries/rustsdk/build.gradle deleted file mode 100644 index bfafe67f28..0000000000 --- a/libraries/rustsdk/build.gradle +++ /dev/null @@ -1,2 +0,0 @@ -configurations.maybeCreate("default") -artifacts.add("default", file('matrix-rust-sdk.aar')) \ No newline at end of file diff --git a/libraries/rustsdk/build.gradle.kts b/libraries/rustsdk/build.gradle.kts new file mode 100644 index 0000000000..842825ee86 --- /dev/null +++ b/libraries/rustsdk/build.gradle.kts @@ -0,0 +1,2 @@ +configurations.maybeCreate("default") +artifacts.add("default", file("./matrix-rust-sdk.aar"))