Skip to content

Commit

Permalink
add missing step to rust in android docs
Browse files Browse the repository at this point in the history
  • Loading branch information
trbutler4 committed Sep 7, 2024
1 parent f40ad94 commit 89a9a58
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/src/getting-started/rust-in-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,16 @@ class MainActivity : AppCompatActivity() {
}
}
```

Add the following to your build.gradle file to link the library:

```kotlin
sourceSets {
named("main") {
jniLibs.srcDir("src/main/jni/")
// Configure the JNI libraries directory
// Note: For newer configurations, JNI libraries are often managed differently
// Check your specific plugin version's documentation for precise configuration
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.example.beerus_android;

public class Beerus {
}

0 comments on commit 89a9a58

Please sign in to comment.