Giter Site home page Giter Site logo

Cordova Plugin about dbcamera HOT 17 OPEN

danielebogo avatar danielebogo commented on June 9, 2024
Cordova Plugin

from dbcamera.

Comments (17)

mkcode avatar mkcode commented on June 9, 2024

Quick instructions to play around with this:

   npm install -g cordova
   git clone https://github.com/vulume/Cordova-DBCamera
   cordova create dbcamera-test
   cd dbcamera-test
   cordova platform add iOS
   cordova plugin add ../Cordova-DBCamera
   open platforms/ios/*.xcodeproj

from dbcamera.

danielebogo avatar danielebogo commented on June 9, 2024

Hi @mkcode ,
sorry for my delay. Your work is awesome. I'm very happy. I hope to finish the new release asap with a refactor on many classes and many bug fixes. Specially a little documentation on all API.
Thanks again and let me know what you think about new changes.

Daniele

from dbcamera.

mkcode avatar mkcode commented on June 9, 2024

Sounds great. Btw - I evaluated every IOS camera related cocoapod before deciding that dbcamera was the best so thank you for creating this.

Looking forward to see what changes in the upcoming release. There are a few changes I will make shortly to the cordova plugin, mainly using an already compiled .a file instead of source files - will avoid having to set the gnu99 dialect. Will do this when I pull in the next release.

Also, I was forced to temporarily disable passing the metadata back to the JS callback. Cordova JSONSerializes the metadata NSdictionary - but it breaks on iPhone5Ss. It looks like the 5S and the 5 send back different metadata - and I don't have a 5S to debug this on. I'd like to look into this more some point soon.

Cheers

from dbcamera.

danielebogo avatar danielebogo commented on June 9, 2024

Thanks a lot @mkcode. You can take a look to the master, for a preview. I'll just add a few small changes and more precise documentation.

from dbcamera.

mkcode avatar mkcode commented on June 9, 2024

Lot's of good changes. The new image cropping bounds are exactly what I wanted.

Look's like I'll need to update the Container related code in the plugin. I spent some time yesterday working on a update script that makes the plugin from the cocoapod spec, with compiling the source for the plugin. Hopefully, it won't be just me who is will update the project. I'll get this out this week.

from dbcamera.

danielebogo avatar danielebogo commented on June 9, 2024

I've done a name refactoring; all the controllers have ViewController suffix. This is because i've created a custom settings of alloc option (in the Profiler) to check if the app has some retain cycle. And fortunately it's ok. No retain cycles ;)

from dbcamera.

danielebogo avatar danielebogo commented on June 9, 2024

The completion block within the container, handles the cameraView. This avoid the init of the cameraViewController in the init method of the container (solution for a old pull request i've accepted). In the block you can change the properties values of the cameraView.

from dbcamera.

mkcode avatar mkcode commented on June 9, 2024

Plugin is working nicely at version 2.0 :-)

I ended up making this repo to manage updating https://github.com/mkcode/cocoapod-to-cordova

from dbcamera.

danielebogo avatar danielebogo commented on June 9, 2024

Great! I've merged the pull request!

from dbcamera.

danielebogo avatar danielebogo commented on June 9, 2024

Hi @mkcode ,
i've done a little change... take a look to this commit bc9a3fcbb056dd3d765005821d080a9f4f1f7080. I've moved the DBCameraGridView (thinking about a custom grid view implementation) to a public property. Only this.

from dbcamera.

mkcode avatar mkcode commented on June 9, 2024

Thanks for the update. The cordova plugin is up to date with this change. The default grid view is perfect for my use case, but adding a way to easily customize this is a great change.

I'm considering the best way to handle locking the orientation to portrait. I did this in the cordova plugin: vulume/Cordova-DBCamera@34d7a40...9e8625b

This forces portrait mode for the lifetime of the NavController, but I questioned when I implemented this if should add this to the individual ViewControllers and submit a PR to this project. Currently - the views don't support landscape, so perhaps they should be locked into portrait mode in each ViewController - then they could be updated on an individual basis if they do support landscape in the future. I'm also not sure of the best practice for this - to lock the orientation in the NavController or the ViewControllers.

from dbcamera.

danielebogo avatar danielebogo commented on June 9, 2024

Hi @mkcode ,
i've updated the library with different bug fixes and pull requests.
Take a look ok?

from dbcamera.

Ekta410 avatar Ekta410 commented on June 9, 2024

Thank you so much. You both @mkcode , @danielebogo have done really a great work. Can you please help me out regarding how to use these plugins in DevExpress ? As my application works on DevExpress + AngularJS + Cordova, and I want to access camera properties like Grids, Tilt Angle, orientation. Please help me out.

from dbcamera.

mrameezraja avatar mrameezraja commented on June 9, 2024

@danielebogo thanks for creating such a great plugin.
Can you guys please tell me how can i add a label in place of grid button? I want to show a category title in place of grid button. Objective-C is not not my thing. I am a javascript developer.

Any help would be highly appreciated.

from dbcamera.

dalmendray avatar dalmendray commented on June 9, 2024

Hi @mkcode,

I would like to use your plugin via build.phonegap. What do I have to write in the config.xml file to install your plugin through the phonegap build website?

Thanks

from dbcamera.

mkcode avatar mkcode commented on June 9, 2024

@dalmendray - the plugin title is com.vulume.cordova.dbcamera. Hopefully you get it by referencing that.

I no longer maintain this project. Feel to use it, but at your own risk.

from dbcamera.

mkcode avatar mkcode commented on June 9, 2024

@danielebogo - Just a note, that I am no longer contributing to this project. Let me know if I can help transition this work in any way.

from dbcamera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.