SARose
SARose

Reputation: 3725

Can Android project be nested Inside another Project

I think it's dumb that I might have to write some code twice when I know this is not how this is done. I do not know though how to implement the following or if it's even possible.

+ Master Project Folder (Single Github Repo)
+---> Android Project
       +--- Android Code
+---> Heroku Backend Project
       +--- Object Class

Is it possible for the Android project to use class from the Heroku Backend Project while insuring that the when the Android App is compiled only the referenced classes from the Heroku Backend Project is included and not all the other server stuff.

I feel like this makes a lot more sense than writing the same code twice. I just don't know if it's possible/right/how to do it.

Thanks in advance!

Upvotes: 1

Views: 411

Answers (1)

Gabriel Pereira
Gabriel Pereira

Reputation: 160

You can use a project like module library dependency. Take a look at http://developer.android.com/sdk/installing/create-project.html#SettingUpLibraryModule.

Upvotes: 1

Related Questions