Should I include RL as a git submodule in my Flex project? If so, how?
I have a github account.
I have used git submodule for web projects involving PHP.
I find this easy to bring in other github repo and update the code easily, making my web projects easier to maintain.
I feel like doing the same for RL.
Should I include RL as a git submodule in my brand new Flex project?
if so, how? I have never done git submodule in a Flex project before.
Please advise.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by creynders on 16 Apr, 2012 07:16 AM
There's no real difference between adding a git submodule to a RL or Flex project than to a PHP one. Only thing you have to do is add the RL
srcdirectory as a source directory to the Flex project, through Project Properties>Actionscript Build Path>Source Path>Add folderAnd I'm not sure whether this is still necessary but previously you needed to add this to your compiler options
-keep-as3-metadata+=Inject -keep-as3-metadata+=PostConstructin Project Proeprties>Actionscript Compiler>Additional compiler arguments3 Posted by kimcity on 16 Apr, 2012 07:25 AM
Hi creynders,
I do not quite understand your explanation.
Here is an example. https://github.com/simkimsia/DragDropDemo-in-AIR
I have the swc for v1.5.2 RL inside the libs folder.
I used the examples in the book for the MosaicApp as reference and wrote code in the src folder.
How do I add this https://github.com/robotlegs/robotlegs-framework as a submodule?
Support Staff 4 Posted by creynders on 17 Apr, 2012 07:41 AM
git submodule add https://github.com/robotlegs/robotlegs-framework.git vendor/robotlegswill install the RL source in a directoryvendor/robotlegscd vendor/robotlegsgit checkout masterAnd then add
vendor/robotlegs/srcas a source directory to your project as I described in the previous post5 Posted by kimcity on 17 Apr, 2012 07:44 AM
Thank you, will try now.
Regards
KimSia
金城
6 Posted by kimcity on 17 Apr, 2012 07:55 AM
I have only made local commits based on your recommendations.
Have not pushed these changes to the remote github repo.
I am getting errors about the base class Reflector.
See the screenshot here. http://cl.ly/FtOk
Support Staff 7 Posted by creynders on 17 Apr, 2012 08:30 AM
Ah, yes, you'll have to add swiftsuspenders as gitmodule too.
https://github.com/tschneidereit/SwiftSuspenders
Just follow the same steps as with the RL repo, but use branch
the-pastinstead ofmaster8 Posted by kimcity on 17 Apr, 2012 09:04 AM
Hi creynders,
it worked! Thank you!!
So basically the code that I have in my own src... I can organize it however I want, right?
I can even rename them to org.whatevertheheckiwant.controller.bootstrap.BootstrapClasses.as
etc.
Yes?
Support Staff 9 Posted by creynders on 17 Apr, 2012 10:21 AM
Yes, absolutely.
Ondina D.F. closed this discussion on 24 Apr, 2012 12:51 PM.
kimcity re-opened this discussion on 27 Apr, 2012 12:36 AM
10 Posted by kimcity on 27 Apr, 2012 12:36 AM
Thank you creynders!!
Ondina D.F. closed this discussion on 28 Jun, 2012 09:14 AM.