Skip to content

Commit

Permalink
#162 Update CompanyIdentifier assigned numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 5, 2024
1 parent 4f0ab23 commit d58e9d3
Show file tree
Hide file tree
Showing 7 changed files with 21,161 additions and 3,926 deletions.
8 changes: 4 additions & 4 deletions Plugins/GenerateBluetoothDefinitions/Plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ struct GenerateBluetoothDefinitionsPlugin: BuildToolPlugin {
var commands = [Command]()
// Generate Bluetooth Company Identifier Definitions
if target.name == "Bluetooth" {
let inputFileName = "CompanyIdentifiers.txt"
let inputFileName = "CompanyIdentifiers.json"
let inputPath = target
.sourceFiles(withSuffix: "txt")
.sourceFiles(withSuffix: "json")
.filter { $0.type == .unknown }
.first { $0.path.lastComponent == inputFileName }
.map { $0.path }
Expand All @@ -43,12 +43,12 @@ struct GenerateBluetoothDefinitionsPlugin: BuildToolPlugin {
}
// Generate Bluetooth Company Identifier Unit Tests
if target.name == "BluetoothTests" {
let inputFileName = "CompanyIdentifiers.txt"
let inputFileName = "CompanyIdentifiers.json"
guard let bluetoothTarget = try context.package.targets(named: ["Bluetooth"]).first as? SwiftSourceModuleTarget else {
fatalError("Missing Bluetooth target")
}
let inputPath = bluetoothTarget
.sourceFiles(withSuffix: "txt")
.sourceFiles(withSuffix: "json")
.filter { $0.type == .unknown }
.first { $0.path.lastComponent == inputFileName }
.map { $0.path }
Expand Down
763 changes: 623 additions & 140 deletions Sources/Bluetooth/Generated/GeneratedCompanyIdentifierNames.swift

Large diffs are not rendered by default.

Loading

0 comments on commit d58e9d3

Please sign in to comment.