<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
    <title>AirID BLE Software for MacOS</title>
    <allowed-os-versions>
        <os-version min="10.14"/>
    </allowed-os-versions>
    <license file="LICENSE.txt"/>
    <readme file="README.txt"/>
    <conclusion file="CONCLUSION.txt"/>
    <options customize="always" require-scripts="false" rootVolumeOnly="true" hostArchitectures="arm64,x86_64"/>
    <script><![CDATA[
                function osx_before_catalina() 
                {
	                if((system.compareVersions(system.version.ProductVersion, '10.15')) == -1)
	                {
	                    return true;
	                }
                    else
                    {
                        return false;
                    }
                }

                function osx_after_catalina() 
                {
                    if((system.compareVersions(system.version.ProductVersion, '10.15')) >= 0)
                    {
                        return true;
                    }
                    else
                    {
                      return false;
                    }
	            }


                function osx_after_mojave() 
                {
                     if((system.compareVersions(system.version.ProductVersion, '10.14')) >= 0)
                     {
                        return true;
                     }
                     else
                     {
                        return false;
                     }
                }

                function osx_after_yosemite() 
                {
                     if((system.compareVersions(system.version.ProductVersion, '10.12')) >= 0)
                     {
                        return true;
                     }
                     else
                     {
                        return false;
                     }
                }
            ]]></script>
    <choices-outline>
        <line choice="default"/>
        <line choice="airid-central"/>
    </choices-outline>
    <choice id="default" title="AirID BLE IFD Handler for PC/SC" description="AirID BLE PC/SC IFD Handler for macOS" enabled="true" start_enabled="true" start_selected="true" start_visible="true" visible="true">
        <pkg-ref id="com.airid.macos.ifd-airid-ble" onConclusion="RequireRestart" active="true" installKBytes="1231">ifd-airid-ble.pkg</pkg-ref>
    </choice>
    <choice id="airid-central" title="AirID Central" description="AirID Central Management" enabled="true" start_enabled="true" start_selected="true" start_visible="true" visible="true">
        <pkg-ref id="com.certgate.macos.AirIDCentral" onConclusion="none" active="true">AirIDCentral.pkg</pkg-ref>
    </choice>
    <pkg-ref id="com.airid.macos.ifd-airid-ble" version="1.2.5">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.2.3" CFBundleVersion="1.2.3.1" id="com.certgate.macos.ifd-airid-ble" path="libexec/SmartCardServices/drivers/ifd-airid-ble.bundle"/>
            <bundle CFBundleShortVersionString="2.0.1" CFBundleVersion="2.0.1.0" id="com.certgate.macos.airiddriver" path="libexec/SmartCardServices/drivers/ifd-airid-ble.bundle/Contents/Frameworks/AirIDDriver_Mac.framework"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="com.certgate.macos.AirIDCentral" version="2.1.0.1" installKBytes="11679">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.23.0 34-gb9236ff2bd3b" CFBundleVersion="1.23.0" id="org.sparkle-project.Sparkle" path="Applications/AirIDCentral.app/Contents/Frameworks/Sparkle.framework"/>
            <bundle CFBundleShortVersionString="1.0" CFBundleVersion="1" id="com.certgate.macos.AirIDCentral.Launcher" path="Applications/AirIDCentral.app/Contents/Library/LoginItems/Launcher.app"/>
            <bundle CFBundleShortVersionString="2.1.2" CFBundleVersion="1" id="org.cocoapods.Zip" path="Applications/AirIDCentral.app/Contents/Frameworks/Zip.framework"/>
            <bundle CFBundleShortVersionString="2.1.1" CFBundleVersion="2.1.1.1" id="com.certgate.macos.AirIDCentral" path="Applications/AirIDCentral.app"/>
            <bundle CFBundleShortVersionString="1.23.0 34-gb9236ff2bd3b" CFBundleVersion="1.23.0" id="org.sparkle-project.Sparkle.Autoupdate" path="Applications/AirIDCentral.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="com.airid.macos.ifd-airid-ble">#ifd-airid-ble.pkg</pkg-ref>
    <pkg-ref id="com.certgate.macos.AirIDCentral">#AirIDCentral.pkg</pkg-ref>
</installer-gui-script>