godot-camera-plugin icon indicating copy to clipboard operation
godot-camera-plugin copied to clipboard

Fixes and conversion to new android plugin system

Open pouleyKetchoupp opened this issue 3 years ago • 2 comments

I've made an update to convert your Android plugin to the new plugin system, so it has better compatibility with 3.3+ and future 4.x versions of Godot.

See https://github.com/funabab/godot-camera-plugin-demo/pull/3 for the corresponding demo project update.

In the new system, .aar files are released for different versions of Godot, and users install the plugin by just copying .aar files and a configuration file in the plugin folder.

I've updated the readme to document the steps for building and for installing the plugin.

Here's a release for Godot 3.3.2: FunababCameraPlugin-1.0.0.zip

This PR also include specific fixes to make the plugin work on recent versions (tested with Godot 3.3.2):

  • Fix failure to enable the plugin when loading project due to add-on image files
  • Fix camera permission request
  • Fix crashes with face detection
  • Fix camera preview scale (it was cropping the image before)

pouleyKetchoupp avatar Aug 13 '21 18:08 pouleyKetchoupp

hi, the app crashes while opening. Trying the demo and added the files in plugins folder.

logcat error: ERROR: Condition "!singletonClass" is true. Continuing. 05-25 20:38:45.372 32406 32420 E godot : At: platform/android/java_godot_lib_jni.cpp:105:_initialize_java_modules() - Condition "!singletonClass" is true. Continuing.

Please help, I need the camera tool and this is the only one I found for 3.3.2. Really feeling bad that there is no support for camera. have to remove anything from addons?

Swaraj-cs avatar May 25 '22 15:05 Swaraj-cs

Hi, is there any option for this plugin to work with singleton?

Swaraj-cs avatar Jul 26 '22 05:07 Swaraj-cs