You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow specifying the Android NDK API level in the cargo { } block.
This also allows global toolchain directories, which is helpful in
automation; and it makes the toolchain directories include the API
level, which is just good hygiene.
Copy file name to clipboardexpand all lines: plugin/src/main/kotlin/com/nishtahir/CargoExtension.kt
+6
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,12 @@ open class CargoExtension {
4
4
var module:String=""
5
5
var targets:List<String> = emptyList()
6
6
7
+
/**
8
+
* The Android NDK API level to target. Defaults to the minimum SDK version of the Android
9
+
* project's default configuration.
10
+
*/
11
+
var apiLevel:Int?=null
12
+
7
13
/**
8
14
* The Cargo [release profile](https://doc.rust-lang.org/book/second-edition/ch14-01-release-profiles.html#customizing-builds-with-release-profiles) to build.
0 commit comments