Skip to content

Commit

Permalink
Add notice about AGP bug for 3rd-party modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuAuahDark committed Sep 27, 2023
1 parent f7bc09e commit 8a882ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions love/src/jni/lua-modules/lua-modules-readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Each folder must contains:
The LOCAL_MODULE_FILENAME must be set accordingly as ndk-build appends "lib" prefix from LOCAL_MODULE by default.
For Lua includes and libraries, simply link the native library with "liblove".
Caveat: If the library is meant to be loaded as require("my.library") then you MUST set LOCAL_MODULE_FILENAME to my.library (with dots)
Caveat 2: Due to bug in AGP, the LOCAL_MODULE_FILENAME must match with the folder name!
* If your module interacts with Java-side, a file java.txt must contain where it should look Java source files.
Example, if you have src/java/your/package/name/MyFile.java, then you need to write "src/java" in java.txt.
If this file is absent, then your Java-side code will not be compiled along.

0 comments on commit 8a882ca

Please sign in to comment.