50
Views
2
Comments
[Geofence Plugin] Where set UseLegacySwiftLanguageVersion preference
Question
geofence-plugin
Mobile icon
Forge asset by Experts

Hi to all,


This plugin does not work with swift 3.0. 


In https://github.com/compelling/cordova-plugin-geofence comment that we add the following configuration line to the plugin:

<preference name="UseLegacySwiftLanguageVersion" value="true" />

 but where should we add it?

My plugins:
Thank you very much


UserImage.jpg
Alberto De Vargas

Could anybody help me?

Thanks.

2019-11-08 16-23-42
César Mateus Conceição

Alberto De Vargas wrote:

Could anybody help me?

Thanks.

You can set on the plugin itself

{
    "plugin": {
        "url": "https://github.com/OutSystemsExperts/cordova-plugin-geofence#hotfix/swift3",
        "variables": [{
            "name": "USELEGACYSWIFTLANGUAGEVERSION",
            "value": "1"
        }]
    }
}


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.