Skip to content

XCframework support#1978

Merged
aure merged 6 commits into
AudioKit:developfrom
catloafsoft:xcframework
Mar 6, 2020
Merged

XCframework support#1978
aure merged 6 commits into
AudioKit:developfrom
catloafsoft:xcframework

Conversation

@megastep

@megastep megastep commented Mar 3, 2020

Copy link
Copy Markdown
Member

This lays the groundwork for producing a working XCFramework. The main change is the AudioKit class was renamed to AKManager in order to avoid a clash with the module name. As such, it should be a new major release of AudioKit (say v5.0).

I've updated enough of the examples and tests to pass Travis, but there's more work to be done on that front.

I'm also going to try to add support for Github Actions soon as a replacement for Travis, since its build system should be able to handle our needs better and should be able to produce and upload the XCFrameworks.

@megastep
megastep requested a review from aure March 3, 2020 03:32
#if !targetEnvironment(macCatalyst)
do {
let result: UInt32? = try AudioKit.engine.outputNode.audioUnit?.getValue(forProperty: kAudioUnitProperty_IsInterAppConnected)
let result: UInt32? = try AKManager.engine.outputNode.audioUnit?.getValue(forProperty: kAudioUnitProperty_IsInterAppConnected)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 138 characters (line_length)

#if !targetEnvironment(macCatalyst)
do {
let result: UInt32? = try AudioKit.engine.outputNode.audioUnit?.getValue(forProperty: kAudioUnitProperty_IsInterAppConnected)
let result: UInt32? = try AKManager.engine.outputNode.audioUnit?.getValue(forProperty: kAudioUnitProperty_IsInterAppConnected)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 138 characters (line_length)

#if !targetEnvironment(macCatalyst)
do {
let result: UInt32? = try AudioKit.engine.outputNode.audioUnit?.getValue(forProperty: kAudioUnitProperty_IsInterAppConnected)
let result: UInt32? = try AKManager.engine.outputNode.audioUnit?.getValue(forProperty: kAudioUnitProperty_IsInterAppConnected)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 138 characters (line_length)

AudioKit.disconnectAllInputs()
try! AudioKit.stop()
AKManager.disconnectAllInputs()
try! AKManager.stop()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)

func AKTestNoEffect() {
if let existingOutput = output {
try! AudioKit.test(node: existingOutput, duration: duration, afterStart: afterStart)
try! AKManager.test(node: existingOutput, duration: duration, afterStart: afterStart)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)

func AKTestMD5Not(_ md5: String) {
if let existingOutput = output {
try! AudioKit.test(node: existingOutput, duration: duration, afterStart: afterStart)
try! AKManager.test(node: existingOutput, duration: duration, afterStart: afterStart)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)

func AKTestMD5(_ md5: String, alternate: String = "") {
if let existingOutput = output {
try! AudioKit.test(node: existingOutput, duration: duration, afterStart: afterStart)
try! AKManager.test(node: existingOutput, duration: duration, afterStart: afterStart)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)

func auditionTest() {
if let existingOutput = output {
try! AudioKit.auditionTest(node: existingOutput, duration: duration)
try! AKManager.auditionTest(node: existingOutput, duration: duration)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)

AudioKit.output = booster
try! AudioKit.renderToFile(audioFile, duration: 4, prerender: {
AKManager.output = booster
try! AKManager.renderToFile(audioFile, duration: 4, prerender: {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@houndci-bot houndci-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Loading configuration from '.swiftlint.yml'
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths AudioKit/Common/MIDI/AKMIDIInstrument.swift
Linting 'AKMIDIInstrument.swift' (1/1)

@aure
aure merged commit 3145bf4 into AudioKit:develop Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants