NativeScript / android

NativeScript for Android using v8
https://docs.nativescript.org/guide/android-marshalling
Apache License 2.0
523 stars 134 forks source link

fix: allow to pass custom ndkVersion to the runtime #1671

Closed farfromrefug closed 2 years ago

farfromrefug commented 3 years ago

@FestplattenSchnitzel This answer the need for this PR https://github.com/NativeScript/android-runtime/pull/1670

Instead of fixing the version i went for allowing to set it through command line. You can then build the android runtime like this: ./gradlew -PndkVersion=20.1.5948944

@FestplattenSchnitzel why version 20.x and not 21.x ? I understand 22 might be too new but 21 should be good, right? I just want to make sure we use a recent ndk for the runtime. I dont want any crash to appear on f-droid as we would be using an old ndk (which the dev would not know about as he builds with a newer one)

FestplattenSchnitzel commented 3 years ago

@farfromrefug when building locally on my machine Gradle automatically used NDK version 20.0.5594570. But if you're sure that 21.x works, we can use that one.

I dont want any crash to appear on f-droid as we would be using an old ndk (which the dev would not know about as he builds with a newer one)

I don't like crashed either, but every version built by the F-Droid test CI so far worked perfectly fine, so the chances seem to be good.

farfromrefug commented 3 years ago

@FestplattenSchnitzel it is not a question of me being sure it is good. As we dont define it right now it is gradle which chooses it. So it must often be quite recent.

lambourn commented 2 years ago

maybe related: https://github.com/NativeScript/android-runtime/issues/1659

farfromrefug commented 2 years ago

@FestplattenSchnitzel will be released with the runtime 8.2