Library with Robot Classes (as of now form 2018-19) Very primitive at moment
- Go to your project folder in the command line
- Run
git submodule init
- Run
git submodule add https://github.com/FTC-Team-5197-Gearheads/Gearheader.git
- Delete the
Gearheaderdirectory in your project folder - Run
git submodule update - In Android Studio do a sync
File -> Sync with File SystemandFile -> Sync with Gradle File System. You are done! No need to do the next steps below.
- Download the Zip file from the latest (or desired )version in Releases
- Unzip it
- Move it under the directory of your current Android Studio Project
- Open your project in Android Studio and choose
File -> Sync with File System - Choose
File -> Sync Project with Gradle Files - Open
settings.gradleand add this line:include ':Gearheader'. For those doing manual installation itsinclude ':Gearheader-[Version Number]'(basically, it should match the name of the folder) - Open the
build.release.gradlefile underTeamCode(or wherever you will be writing your code) and add this line:implementation project(':Gearheader')within the curly brackets - Repeat step 7 for the
build.release.gradlefile underFtcRobotController - Repeat step 5
- To test, go ahead and try to make an object of type
Lookeebot. (make sure the editor importsedu.boscotech.gearheads.gearheader.samplerobots). If no errors arise, you are good to go.
- Then after, make sure to go back to the parent respository of your current project and commit these changes.
- Run
git pullfrom the submodule directory ([Your Project]/Gearheader)to be up to date. Don't worry. Only stable changes will be pushed on master. Then in the parent repo, commit these chabges
- Repeat steps for Installation
- Feel free to fork this library and send pull requests.