xmikos / fdroiddata

Eutopia.cz F-Droid Repository
GNU Affero General Public License v3.0
40 stars 8 forks source link

Add LibreSignal. #14

Closed mimi89999 closed 8 years ago

mimi89999 commented 8 years ago

13

mimi89999 commented 8 years ago

@xmikos What does "buildjni=jni"?

xmikos commented 8 years ago

It tells fdroid where to build native code with NDK (in which subdirectory).

buildjni=yes is not enough (it expects default location to be somewhere else or I don't know what exactly is the problem). buildjni=no should work if there is Gradle task which builds native code by itself, but it looks like this is not the case here.

From documentation:

buildjni=[yes|no|

] Enables building of native code via the ndk-build script before doing the main Ant build. The value may be a list of directories relative to the main application directory in which to run ndk-build, or ’yes’ which corresponds to ’.’ . Using explicit list may be useful to build multi-component projects.

The build and scan processes will complain (refuse to build) if this parameter is not defined, but there is a jni directory present. If the native code is being built by other means like a Gradle task, you can specify no here to avoid that. However, if the native code is actually not required or used, remove the directory instead (using rm=jni for example). Using buildjni=no when the jni code isn’t used nor built will result in an error saying that native libraries were expected in the resulting package.