1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How are you making your addon work for both 1.1 and 1.2?

Discussion in 'XenForo Development Discussions' started by tyteen4a03, Jul 9, 2013.

  1. tyteen4a03

    tyteen4a03 Well-Known Member

    Just wondering the options out there...

    So far from my tinkerings, the biggest issue is that callback signature must match.
     
    0xym0r0n likes this.
  2. Chris D

    Chris D XenForo Developer Staff Member

    You might have to branch and release two versions for something like that. Or just go 1.2 exclusive.
     
  3. Jon W

    Jon W Well-Known Member

    tyteen4a03 likes this.
  4. tyteen4a03

    tyteen4a03 Well-Known Member

  5. Jon W

    Jon W Well-Known Member

    The nice thing about @xfrocks's method is that there is no duplicate code. You could do something similar by making both of those files extend a single file that includes the methods where the callback signature does not need to change.
     

Share This Page