-
Notifications
You must be signed in to change notification settings - Fork 9
1.4. Clone and import module
Create a new AndroidStudio Project and follow the default wizzard.
You should have the following project structure
Clone the repo down to your computer
The cloned repo not only contains the library module but the sample project also.
To preserve the .git directory and keep track of the changed you've made to the library (if you want to contribute or you forked the repo), move the whole cloned repo (the directory containing the library module and sample project) to your project location.
Next on AndroidStudio, open the project modules settings from the contextual menu or using the Ctrl + Alt + Maj + S
shortcut.
Use the import gradle project to add the library module from the cloned repo to your project
<img src="https://github.com/kalemontes/OIDCAndroidLib/wiki/images/SetUpSample6.PNG" alt=AndroidStudio Wizard New Module" width="600px"/>
Click "Finish" and Wait for gradle sync
Your settings.gradle should look like
include ':openidconnect-android-client', ':app'
project(':openidconnect-android-client').projectDir = new File('OIDCAndroidLib/openidconnect-android-client')