Specify different apiLevel for different CPU architecture

Open
#37 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, kotlin

Research direction

Start by tracing how the apiLevel option is applied to builds for each CPU architecture and how the configured targets are passed to the Android build. Check the existing solution mentioned in the issue, then define per-architecture API-level behavior and verify that both arm64 and API 17 builds remain compatible.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Kotlin
Stars
1.3k
Forks
95
Avg merge
15m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla/rust-android-gradle

All issues in mozilla/rust-android-gradle

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.