-
-
Notifications
You must be signed in to change notification settings - Fork 30
init. ndk only if ndk opt on manifest is enabled #60
Conversation
bruno-garcia
left a comment
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.
One comment to confirm.
Also, we need to create dir now on a new PR?
Otherwise lgtm.
Codecov Report
@@ Coverage Diff @@
## master #60 +/- ##
============================================
- Coverage 44.66% 38.69% -5.97%
+ Complexity 243 185 -58
============================================
Files 52 51 -1
Lines 1442 1367 -75
Branches 90 78 -12
============================================
- Hits 644 529 -115
- Misses 766 811 +45
+ Partials 32 27 -5
Continue to review full report at Codecov.
|
| options.setCacheDirPath(envelopesDir.getAbsolutePath()); | ||
| } | ||
|
|
||
| private static boolean isNdkAvailable() { |
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.
Are we settling on the fact that NDK support will not be available on API < 21?
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.
@ninniuz for the first release, probably yes, we have a system blocker and trying to find a workaround.
JFYI dl_iterate_phdr method only available API >= 21
https://android.googlesource.com/platform/bionic/+/master/docs/status.md
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.
Yeah, tried to build the NDK feature branch on API 14 and got an error on that method :(
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 might have a workaround, parsing /proc/PID/maps by hand and getting what we need.
but still thinking if it's a good idea.
|
@bruno-garcia the configuration will be to avoid a reflection call if we already know NDK is not there or disabled. |
📢 Type of change
📜 Description
Init. NDK only if sdk opt is enabled.
💡 Motivation and Context
Right now is trying to load every time.
💚 How did you test it?
📝 Checklist
🔮 Next steps
Write tests