Commit 3aa03a3c authored by Румен Петров's avatar Румен Петров
Browse files

clean unsupported elf-sections

Prevents harmlass linker warnings on some Android versions (5.1).
parent 62af4a4f
......@@ -124,3 +124,14 @@ dependencies {
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
}
task elfcleaner(type: Exec) {
// only unix
commandLine 'sh', '-c', 'find build/*/stripped* -name lib*.so -exec elf-cleaner {} \\;'
}
tasks.whenTaskAdded { task ->
if (task.name.matches('strip.*DebugSymbols')) {
task.finalizedBy elfcleaner
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment