Ejemplo n.º 1
0
        public static void AutoGenerateAndroidManifest(string path)
        {
            var androidManifest = new AndroidManifest(path);

            androidManifest.SetExternalStorage();
            androidManifest.SetCameraPermission();
            androidManifest.SetBlueToothPermission();
            androidManifest.SetSDKMetaData();
            androidManifest.SetAPKDisplayedOnLauncher(isShowOnDesktop);

            androidManifest.Save();
        }
Ejemplo n.º 2
0
        public static void AutoGenerateAndroidManifest(string path)
        {
            var androidManifest = new AndroidManifest(path);

            // Set "android:requestLegacyExternalStorage='true'" attribute when the target sdk version is above api29
            bool needrequestLegacyExternalStorage = ((int)PlayerSettings.Android.targetSdkVersion >= 29);

            androidManifest.SetExternalStorage(needrequestLegacyExternalStorage);
            androidManifest.SetCameraPermission();
            androidManifest.SetBlueToothPermission();
            androidManifest.SetSDKMetaData();
            androidManifest.SetAPKDisplayedOnLauncher(isShowOnDesktop);

            androidManifest.Save();
        }