<?xml version="1.0" encoding="utf-8"?>

<root xmlns:android="http://schemas.android.com/apk/res/android">
	<androidManifestUpdates>
		<addPermission android:name="android.permission.INTERNET" />
		<addPermission android:name="android.permission.RECORD_AUDIO" />
		<addPermission android:name="android.permission.READ_EXTERNAL_STORAGE" />
		<addPermission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
	</androidManifestUpdates>

	<resourceCopies>
		<copyFile src="$S(PluginDir)/libs/Android/$S(Architecture)/libMicrosoft.CognitiveServices.Speech.core.so"
                  dst="$S(BuildDir)/libs/$S(Architecture)/libMicrosoft.CognitiveServices.Speech.core.so" />

		<copyFile src="$S(PluginDir)/libs/Android/$S(Architecture)/libMicrosoft.CognitiveServices.Speech.extension.audio.sys.so"
                  dst="$S(BuildDir)/libs/$S(Architecture)/libMicrosoft.CognitiveServices.Speech.extension.audio.sys.so" />

		<copyFile src="$S(PluginDir)/libs/Android/$S(Architecture)/libMicrosoft.CognitiveServices.Speech.extension.kws.so"
                  dst="$S(BuildDir)/libs/$S(Architecture)/libMicrosoft.CognitiveServices.Speech.extension.kws.so" />

		<copyFile src="$S(PluginDir)/libs/Android/$S(Architecture)/libMicrosoft.CognitiveServices.Speech.extension.kws.ort.so"
                  dst="$S(BuildDir)/libs/$S(Architecture)/libMicrosoft.CognitiveServices.Speech.extension.kws.ort.so" />

		<copyFile src="$S(PluginDir)/libs/Android/$S(Architecture)/libMicrosoft.CognitiveServices.Speech.extension.lu.so"
                  dst="$S(BuildDir)/libs/$S(Architecture)/libMicrosoft.CognitiveServices.Speech.extension.lu.so" />
	</resourceCopies>

	<soLoadLibrary>
		<loadLibrary name="Microsoft.CognitiveServices.Speech.core"
                     failmsg="libMicrosoft.CognitiveServices.Speech.core.so not loaded and may be required for AzSpeech." />

		<loadLibrary name="Microsoft.CognitiveServices.Speech.extension.audio.sys"
                     failmsg="libMicrosoft.CognitiveServices.Speech.extension.audio.sys.so not loaded and may be required for AzSpeech." />

		<loadLibrary name="Microsoft.CognitiveServices.Speech.extension.kws"
                     failmsg="libMicrosoft.CognitiveServices.Speech.extension.kws.so not loaded and may be required for AzSpeech." />

		<loadLibrary name="Microsoft.CognitiveServices.Speech.extension.kws.ort"
                     failmsg="libMicrosoft.CognitiveServices.Speech.extension.kws.ort.so not loaded and may be required for AzSpeech." />

		<loadLibrary name="Microsoft.CognitiveServices.Speech.extension.lu"
                     failmsg="libMicrosoft.CognitiveServices.Speech.extension.lu.so not loaded and may be required for AzSpeech." />
	</soLoadLibrary>
</root>