eclipsesource / tabris-plugin-firebase

A firebase plugin for Tabris.js
https://tabrisjs.com
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

Fix broken AppDelegate after injecting the sources #42

Open karolszafranski opened 6 years ago

karolszafranski commented 6 years ago

It's possible that methods implemented by this plugin are already implemented in AppDelegate.m file. Using the script with its current state leads to a compile-time error: "Duplicate implementation for a method: xxx"

We have to check first if the method is implemented, and if it is then we inject the new code to the existing implementation. If it's not then we just put in the whole method. Like we did before.