Skip to content

Instantly share code, notes, and snippets.

@MatthewOates36
Created August 23, 2023 00:00
Show Gist options
  • Save MatthewOates36/84b46e749f814f8386cc5b67719fdbff to your computer and use it in GitHub Desktop.
Save MatthewOates36/84b46e749f814f8386cc5b67719fdbff to your computer and use it in GitHub Desktop.
Example of Adding Fast Load Dependencies to TeamCode Gradle File (be sure to replace {version} in the dependencies with the latest version number)
//
// build.gradle in TeamCode
//
// Most of the definitions for building your module reside in a common, shared
// file 'build.common.gradle'. Being factored in this way makes it easier to
// integrate updates to the FTC into your code. If you really need to customize
// the build definitions, you can place those customizations in this file, but
// please think carefully as to whether such customizations are really necessary
// before doing so.
// Custom definitions may go here
buildscript {
repositories {
mavenCentral()
maven {
url = 'https://www.matthewo.tech/maven/'
}
}
dependencies {
classpath 'org.team11260:fast-load-plugin:{version}'
}
}
// Include common definitions from above.
apply from: '../build.common.gradle'
apply from: '../build.dependencies.gradle'
apply plugin: 'org.team11260.fast-load-plugin'
android {
namespace = 'org.firstinspires.ftc.teamcode'
packagingOptions {
jniLibs.useLegacyPackaging true
}
}
repositories {
maven {
url = 'https://www.matthewo.tech/maven/'
}
}
dependencies {
implementation project(':FtcRobotController')
annotationProcessor files('lib/OpModeAnnotationProcessor.jar')
implementation 'org.team11260:fast-load:{version}'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment