mozilla / rust-android-gradle

Apache License 2.0
1.08k stars 70 forks source link

Add `apiLevels` parameter, controlling API level per target #52

Closed dcsommer closed 3 years ago

dcsommer commented 3 years ago

For compatibility with the maximum number of Android devices, it may be desirable to specify a lower API level for certain targets. While 64-bit JNI requires a minimum API level of 21, 32-bit JNI can be used with older API levels. My team's project uses this method to get the benefits of 64-bit performance on newer devices while also supporting older 32-bit phones.