diff --git a/.github/actions/ci/action.yml b/.github/actions/ci/action.yml index e02fa324..053b4c9b 100644 --- a/.github/actions/ci/action.yml +++ b/.github/actions/ci/action.yml @@ -24,11 +24,11 @@ runs: with: xcode-version: ${{ inputs.xcode-version }} - - name: Install mint and swiftlint + - name: Install mint shell: bash run: | brew tap mint-lang/mint-lang - brew install mint-lang swiftlint libressl + brew install mint-lang libressl - name: Install cocoapods shell: bash diff --git a/LaunchDarkly/LaunchDarkly/Models/Hooks/Hook.swift b/LaunchDarkly/LaunchDarkly/Models/Hooks/Hook.swift index a76c2451..14b3642e 100644 --- a/LaunchDarkly/LaunchDarkly/Models/Hooks/Hook.swift +++ b/LaunchDarkly/LaunchDarkly/Models/Hooks/Hook.swift @@ -16,3 +16,17 @@ public protocol Hook { /// determined. The method is executed synchronously. func afterEvaluation(seriesContext: EvaluationSeriesContext, seriesData: EvaluationSeriesData, evaluationDetail: LDEvaluationDetail) -> EvaluationSeriesData } + +public extension Hook { + func metadata() -> Metadata { + return Metadata(name: "UNDEFINED") + } + + func beforeEvaluation(seriesContext: EvaluationSeriesContext, seriesData: EvaluationSeriesData) -> EvaluationSeriesData { + return seriesData + } + + func afterEvaluation(seriesContext: EvaluationSeriesContext, seriesData: EvaluationSeriesData, evaluationDetail: LDEvaluationDetail) -> EvaluationSeriesData { + return seriesData + } +}