mozilla / rust-android-gradle

Apache License 2.0
1.03k stars 67 forks source link

Specify different apiLevel for different CPU architecture #37

Open tjohnn opened 4 years ago

tjohnn commented 4 years ago

There is probably an existing solution around it, the apiLevel option only allows specifying just one api level for the builds of all the cpu architectures.

If I specify apiLevel = 17 and add arm64 to my targets, build won't succeed 'cos NDK does not have anything for arm64 on apiLevel 17. On the other hand if I switch apiLevel = 21, the app crashes on devices running api 17 due to incompatible librust.so built with it.