Best way to share code between 2 projects?
I have a project and it's free/iAd sibling. The apps are 90% the same. Is there a way to "include" code from outside the project? I was thinking of having my folders like:
- App
- App Free
- App Shared
Ideally, "App" and "App Free" would "include" most of their code from the "App Shared" folder. Of course, I tried this and I got a "could not find the file" error. Is there another way to accomplish this?
3 Answers
-
I decided to just create symbolic links in the Resources folders to the "App Shared" folder.
-
There's been a lot of talk about this on various forums generally.
There's essentially 2 camps:
- 2 separate apps
- 1 app that allows itself to be upgrades
The advantage of (2) is that you only have to maintain one release (so there's 1 review process, same version numbers, etc) and you don't compete against yourself on the marketplace.
Essentially with (2) you provide users with a reg page inside the app, verify payment and return a unique key which you store in app properties. You can then check it periodically to see if it's valid.
-
On Windows XP I tried using LinkShellExtension to create "virtual" folders that mirror a real folder. Unfortunately that caused a Windows error while packaging the Android APK.