Skip to content

BranchAttributionLevel not defined #203

@alexbainbridge

Description

@alexbainbridge

Describe the bug

In 8.4.0, can't compile app in xcode (iOS)

Cannot find type 'BranchAttributionLevel' in scope - ios - BranchService.swift

    func setConsumerProtectionAttributionLevel(level: String) -> Void {

        var attributionLevel: BranchAttributionLevel

        switch level {
        case "FULL":
            attributionLevel = BranchAttributionLevel.full
        case "REDUCED":
            attributionLevel = BranchAttributionLevel.reduced
        case "MINIMAL":
            attributionLevel = BranchAttributionLevel.minimal
        case "NONE":
            attributionLevel = BranchAttributionLevel.none
        default:
            return
        }

        Branch.getInstance().setConsumerProtectionAttributionLevel(attributionLevel)
    }

Steps to reproduce

  1. Add 8.4.0 to app
  2. Try to build in xcode

Expected behavior

Should build

SDK Version

8.4.0

Make and Model

Not applicable

OS

ios

Additional Information/Context

As this is in a new function introduced in 8.4.0 (that I am not using) I was just able to comment out to get it to build

    func setConsumerProtectionAttributionLevel(level: String) -> Void {

//        var attributionLevel: BranchAttributionLevel
//
//        switch level {
//        case "FULL":
//            attributionLevel = BranchAttributionLevel.full
//        case "REDUCED":
//            attributionLevel = BranchAttributionLevel.reduced
//        case "MINIMAL":
//            attributionLevel = BranchAttributionLevel.minimal
//        case "NONE":
//            attributionLevel = BranchAttributionLevel.none
//        default:
//            return
//        }
//
//        Branch.getInstance().setConsumerProtectionAttributionLevel(attributionLevel)
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions