Mention & Use keepDebugSymbols as doNotStrip is deprecated in gradle 7+
The doNotStrip which is suggested in "Native library stripping" in RB documentation at: https://f-droid.org/docs/Reproducible_Builds/#native-library-stripping
is deprecated as can be seen in: https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/PackagingOptions#doNotStrip(kotlin.String)
This function is deprecated. This method is deprecated. Use jniLibs.keepDebugSymbols.add() instead.
it's used in Briar metadata: https://gitlab.com/fdroid/fdroiddata/-/blob/1a6c22fd972697d7a5ef26bb89062519f3e1170e/metadata/org.briarproject.briar.android.yml#L581
From the build log of briar the verrsion Gradle 7.3.3 is used, thus the newer method keepDebugSymbols should be used.
https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/JniLibsPackagingOptions#keepDebugSymbols() https://stackoverflow.com/a/74866533
Suggestion is to:
- edit the /docs/Reproducible_Builds/ document on website to mention the new keepDebugSymbols for AGP 7+
- Use keepDebugSymbols instead of doNotStrip for briar build