(I have created an Answer’s hub page post)
I have implemented a Plugin based in the structure of the Module Advertising from Unreal Engine code. It contains 3 modules:
1 module to define a common interface class and the access to the core. This module reads the default provider defined by the config files.
another module to define windows code (extending the interface and writing windows-only code)
another like the one above just for android.
The plugin is another module that implements all Blueprint access to the first module.
At the moment the plugin compiles and works in windows. In android compiles and becomes part the pak file looking at the unreal editor logs apparently:
LogPlayLevel:Display: unrealpak: LogPakFile:Display: Added file Source: %PATH%/Plugins/WBPlugin/WBPlugin.uplugin Dest: …/…/…/Game/Plugins/WBPlugin/
LogPlayLevel:Display: unrealpak: LogPakFile:Display: Added file “Game/Plugins/WBPlugin/WBPlugin.uplugin”, 997 bytes.
However looking at the logcat logs from android (in Eclipse for example) :
06-23 09:20:55.553: D/UE4(11577): [2014.06.23-09.20.55:565] 0]LogLinker:Warning: Can’t find file ‘/Script/WBPlugin’
The plugin seems to compile fine in Android. Before I had that problem and managed to get it to compiled fine for Android due to a problem in the include lines in the cpp files, the sorting of listed modules in the plugin file (uplugin) and the LoadingPhase config in these. I include the .uplugin file for further information. (NOTE: It doesn’t allow me to upload files for some reason… Follow the link at the top to Answershub to find the plugin file)
Looking at UE AnswerHub and the forums most of the people suggest to add a line to DefaultEngine.ini :
I have added that line(s) with the + and without it, and also with quotes and without them. I have also tried to add this to the Android config file (AndroidEngine.ini) (not initially in the project, I have created it), like in the DefaultEngine.ini. In all cases the log output is the same.
I wonder if there is a different way to add a plugin in Android or it is just not working right now in Android. If they work, if there is anything else I am missing?