Skip to content

Commit 6bdb4f6

Browse files
committed
Revert "Add Choreo (wpilibsuite#440)"
This reverts commit 778914a.
1 parent 3b518f6 commit 6bdb4f6

File tree

12 files changed

+0
-254
lines changed

12 files changed

+0
-254
lines changed

WPILibInstaller-Avalonia/Interfaces/IConfigurationProvider.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ public interface IConfigurationProvider
1616

1717
AdvantageScopeConfig AdvantageScopeConfig { get; }
1818

19-
ChoreoConfig ChoreoConfig { get; }
20-
2119
ElasticConfig ElasticConfig { get; }
2220

2321
VsCodeConfig VsCodeConfig { get; }

WPILibInstaller-Avalonia/Models/ChoreoConfig.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

WPILibInstaller-Avalonia/ViewModels/InstallPageViewModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ await ExtractArchive(token, new[] {
9595
configurationProvider.JdkConfig.Folder + "/",
9696
configurationProvider.UpgradeConfig.Tools.Folder + "/",
9797
configurationProvider.AdvantageScopeConfig.Folder + "/",
98-
configurationProvider.ChoreoConfig.Folder + "/",
9998
configurationProvider.ElasticConfig.Folder + "/",
10099
"installUtils/"});
101100
}

WPILibInstaller-Avalonia/ViewModels/StartPageViewModel.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -214,17 +214,6 @@ private async Task<bool> SelectResourceFilesWithFile(string file)
214214
}) ?? throw new InvalidOperationException("Not Valid");
215215
}
216216

217-
entry = zipArchive.GetEntry("choreoConfig.json");
218-
219-
using (StreamReader reader = new StreamReader(entry!.Open()))
220-
{
221-
var configStr = await reader.ReadToEndAsync();
222-
ChoreoConfig = JsonConvert.DeserializeObject<ChoreoConfig>(configStr, new JsonSerializerSettings
223-
{
224-
MissingMemberHandling = MissingMemberHandling.Error
225-
}) ?? throw new InvalidOperationException("Not Valid");
226-
}
227-
228217
entry = zipArchive.GetEntry("elasticConfig.json");
229218

230219
using (StreamReader reader = new StreamReader(entry!.Open()))
@@ -436,8 +425,6 @@ public override PageViewModelBase MoveNext()
436425

437426
public AdvantageScopeConfig AdvantageScopeConfig { get; private set; } = null!;
438427

439-
public ChoreoConfig ChoreoConfig { get; private set; } = null!;
440-
441428
public ElasticConfig ElasticConfig { get; private set; } = null!;
442429

443430
public VsCodeConfig VsCodeConfig { get; private set; } = null!;

build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ apply from: 'scripts/jdk.gradle'
103103
apply from: 'scripts/maven.gradle'
104104

105105
apply from: 'scripts/advantagescope.gradle'
106-
apply from: 'scripts/choreo.gradle'
107106
apply from: 'scripts/elastic.gradle'
108107

109108
// Tools must happen after maven
@@ -223,7 +222,6 @@ def generateFullResourcesTask = tasks.register('generateFullResources', project.
223222
jdkZipSetup(it)
224223

225224
advantageScopeZipSetup(it)
226-
choreoZipSetup(it)
227225
elasticZipSetup(it)
228226

229227
if (OperatingSystem.current().isWindows()) {
@@ -330,7 +328,6 @@ def generateConfigFiles = tasks.register('generateCommonResources', Zip) {
330328
jdkConfigFileSetup(zip)
331329

332330
advantageScopeConfigFileSetup(zip)
333-
choreoConfigFileSetup(zip)
334331
elasticConfigFileSetup(zip)
335332

336333
vscodeConfigZipSetup(zip)

files/Choreo.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

files/Choreo.vbs

Lines changed: 0 additions & 45 deletions
This file was deleted.

gradleriobase/build.gradle

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ plugins {
66
id "edu.wpi.first.GradleRIO"
77
}
88

9-
repositories {
10-
mavenCentral()
11-
maven {
12-
url = uri("https://SleipnirGroup.github.io/ChoreoLib/dep")
13-
}
14-
}
15-
169
deploy {
1710
targets {
1811
roborio(getTargetTypeClass('RoboRIO')) {
@@ -41,8 +34,6 @@ def deployCppArtifact = deploy.targets.roborio.artifacts.frcCpp
4134

4235
wpi.java.debugJni = false
4336

44-
def choreoVersion = "$choreoGitTag".substring(1)
45-
4637
dependencies {
4738
annotationProcessor wpi.java.deps.wpilibAnnotations()
4839
implementation wpi.java.deps.wpilib()
@@ -84,9 +75,6 @@ dependencies {
8475
if (project(":").ext.buildClassifier == 'Windows') {
8576
implementation "edu.wpi.first.msvc:runtime:${project(':gradleriobase').wpi.versions.wpilibVersion.get()}:x64@zip"
8677
}
87-
88-
// choreo
89-
implementation "choreo:ChoreoLib-java:$choreoVersion"
9078
}
9179

9280
test {
@@ -125,20 +113,6 @@ nativeUtils {
125113
}
126114
}
127115

128-
nativeUtils {
129-
nativeDependencyContainer {
130-
choreo(getNativeDependencyTypeClass('WPISharedMavenDependency')) {
131-
groupId = "choreo"
132-
artifactId = "ChoreoLib-cpp"
133-
headerClassifier = "headers"
134-
sourceClassifier = "sources"
135-
ext = "zip"
136-
version = choreoVersion
137-
targetPlatforms.addAll(nativeUtils.wpi.platforms.allPlatforms)
138-
}
139-
}
140-
}
141-
142116
nativeUtils {
143117
nativeDependencyContainer {
144118
xrpvendordep(getNativeDependencyTypeClass('WPISharedMavenDependency')) {
@@ -181,7 +155,6 @@ model {
181155
wpi.cpp.deps.googleTest(it)
182156

183157
wpi.cpp.deps.useLibrary(it, 'wpilibnewcommands')
184-
wpi.cpp.deps.useLibrary(it, 'choreo')
185158
wpi.cpp.deps.useLibrary(it, 'xrpvendordep')
186159
wpi.cpp.deps.useLibrary(it, 'romivendordep')
187160
}

scripts/choreo.gradle

Lines changed: 0 additions & 121 deletions
This file was deleted.

scripts/maven.gradle

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,6 @@ def downloadNewCommands = tasks.register('downloadNewCommands', Download) {
205205
overwrite false
206206
}
207207

208-
def downloadChoreo = tasks.register('downloadChoreo', Download) {
209-
src 'https://SleipnirGroup.github.io/ChoreoLib/dep/ChoreoLib2025Beta.json'
210-
def fileName = file(src.file).name
211-
dest "$buildDir/downloads/$fileName"
212-
overwrite false
213-
}
214-
215208
def downloadRomiVendor = tasks.register('downloadRomiVendor', Download) {
216209
src 'https://raw.githubusercontent.com/wpilibsuite/allwpilib/main/romiVendordep/RomiVendordep.json'
217210
def fileName = file(src.file).name
@@ -234,18 +227,13 @@ ext.mavenZipSetup = { AbstractArchiveTask zip->
234227
}
235228

236229
zip.dependsOn downloadNewCommands
237-
zip.dependsOn downloadChoreo
238230
zip.dependsOn downloadReadTheDocs
239231
zip.dependsOn downloadPythonAPI
240232

241233
zip.from(downloadNewCommands.get().outputFiles.first()) {
242234
into '/vendordeps'
243235
}
244236

245-
zip.from(downloadChoreo.get().outputFiles.first()) {
246-
into '/vendordeps'
247-
}
248-
249237
zip.from(downloadRomiVendor.get().outputFiles.first()) {
250238
into '/vendordeps'
251239
}

0 commit comments

Comments
 (0)