Hi, I have a big project that I have developed in B4A and have recently converted to B4i also
I now wish to share as much of the code code between the two projects using
#If B4i and #If B4A around code that can't be shared.
I am slowly merging each code block into a common code block but came a across a problem with sharing my HttpUtils code
In the Android project I use a service module to make the httputil calls such as
But in the Apple project there is no service module so this code is added to a Code Module.
I wish to share the .bas code module but.
Apple Project wont load if the .bas is a service module.
Android wont compile if the .bas is a code module ("Me" not supported)
Any ideas how to get around this anyone?
Is it possible to #include code like in VB.Net to share the code in the Android Service module ?
Thanks in Advance
I now wish to share as much of the code code between the two projects using
#If B4i and #If B4A around code that can't be shared.
I am slowly merging each code block into a common code block but came a across a problem with sharing my HttpUtils code
In the Android project I use a service module to make the httputil calls such as
B4X:
Dim jobCompetitions As HttpJob
jobCompetitions.Initialize("JobCompetitions", Me)
But in the Apple project there is no service module so this code is added to a Code Module.
I wish to share the .bas code module but.
Apple Project wont load if the .bas is a service module.
Android wont compile if the .bas is a code module ("Me" not supported)
Any ideas how to get around this anyone?
Is it possible to #include code like in VB.Net to share the code in the Android Service module ?
Thanks in Advance