lemberg / connfa-ios

Open Source iOS app for Conferences and Events
http://connfa.com
47 stars 40 forks source link

add new type for Events #16

Open chingnaw opened 5 years ago

chingnaw commented 5 years ago

I am trying to add a new type of Event in addition to the existing Main, BoF, and Social. I did this by adding the new type to the database option for "event_type" in the events table ie. enum('session', 'bof', 'social', 'special'). Then, I tried adding the respective files into the iOS version, but it is running into an error on main whenever I click into that menu option. The app still builds and the other menu items work. I am guessing I'm missing a specific part that links the new type into the app. Can you tell me what steps I should take to add this in. Much appreciated!

oleh-kurnenkov commented 5 years ago

Hi @chingnaw! You need to add a new entity for your type to the database. Parent entity should be DCEvent. Then you should update EDCEventStrategy enum and DCEventStrategy class to be able to work with the new database entity.

chingnaw commented 5 years ago

Hi @oleh-kurnenkov , thanks for your response! I added the new entity into the db and updated EDCEventStrategy enum. I also updated DCEventStrategy.h file with the new type in the typedef enum {} declaration and DCEventStrategy.m file with a new case for the new type. However, I am still running into an issue when I click on that menu item. I get a signal SIGTERM error in the application. Is there something else I could be missing?