Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
fix(ios): declare error codes enum within main class
Browse files Browse the repository at this point in the history
This problem occurs, if the plugin is used together with "cordova-plugin-advanced-imagepicker". I'm not sure, if this is a proper fix - but the error is gone with this little modification.
  • Loading branch information
pinhead84 authored May 4, 2023
1 parent 619e123 commit 1d83826
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ios/ContactsX.swift
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,11 @@ import PhoneNumberKit
}
return ContactsX._PhoneNumberKitInstance!;
}
}

enum ErrorCodes:NSNumber {
case UnsupportedAction = 1
case WrongJsonObject = 2
case PermissionDenied = 3
case UnknownError = 10
enum ErrorCodes:NSNumber {
case UnsupportedAction = 1
case WrongJsonObject = 2
case PermissionDenied = 3
case UnknownError = 10
}
}

0 comments on commit 1d83826

Please sign in to comment.