Testing Here
Testing Here

Reputation: 185

Circle CI integration on Android with external module hosted on a different github repository

I have an Android project with my own external module hosted on a different github repository. On my settings.gradle I set this module as follows:

include ':common'
project(':common').projectDir = new File(settingsDir, '../android-common/common')

Currently, Circle doesn't build my project because it obviously doesn't know about my android-common folder.

Is there a way I could set this up to make my build work?

Upvotes: 1

Views: 127

Answers (1)

FelicianoTech
FelicianoTech

Reputation: 4017

You can manually tell CircleCI to pull down that repo in circle.yml.

First, for the correct permissions, you'd need to setup a 'User Key'. This gives CircleCI access to that external module.

Then, you can run a git clone in circle.yml in whatever phase makes sense for you. Sounds like

dependencies:
  pre:

might be a good section. Depending on your needs, having the module as a Git Submodule is supported as well.

-Ricardo
CircleCI Developer Evangelist

Upvotes: 1

Related Questions