-
Notifications
You must be signed in to change notification settings - Fork 59
android: lower floor API version to 28 #764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| android { | ||
| namespace = "com.dylibso.runtimeTests" | ||
| compileSdk = 35 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need to change the compileSdk: this way we are allowed to compile using a recent Java version; minSdk will ensure it works on the lower target (in our case 28). In other words, this is similar to java.version vs java.release
|
as noted earlier in #751, |
Adjust all usages of unsupported APIs. Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
6fe5e5f to
ef895bf
Compare
Deploying chicory with
|
| Latest commit: |
ef895bf
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://cdc5655c.chicory.pages.dev |
| Branch Preview URL: | https://android-compat.chicory.pages.dev |
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
Deploying chicory with
|
| Latest commit: |
cd2ae23
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a9f9a1f2.chicory.pages.dev |
| Branch Preview URL: | https://android-compat.chicory.pages.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks a lot for this valuable contribution!
cc. @illarionov @yigit
Adjust all usages of unsupported APIs:
InputStream.readAllBytes()->com.dylibso.chicory.wasm.io.InputStreams#readAllBytes(is)List.toArray(T[]::new)->List.toArray(new T[0])toArray(T[]::new)-> `collect(toList()).toArray(new T[0]);collect(Collectors.toUnmodifiableList())->Collections.toUnmodifiableList(...collect(toList()))Notably, the changes only affect
com.dylibso.chicory:wasmbecause build-time codegen does not need to be affected.closes #745