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

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

            androidManifest.Save();
        }
        /// <summary> Automatic generate android manifest. </summary>
        /// <param name="path"> Full pathname of the file.</param>
        public static void AutoGenerateAndroidManifest(string path)
        {
            var androidManifest = new AndroidManifest(path);

            //bool needrequestLegacyExternalStorage = (GetAndroidTargetApiLevel() >= 29);
            //androidManifest.SetExternalStorage(needrequestLegacyExternalStorage);
            androidManifest.SetPackageReadPermission();
            androidManifest.SetCameraPermission();
            androidManifest.SetBlueToothPermission();
            androidManifest.SetSDKMetaData();
            androidManifest.SetAPKDisplayedOnLauncher(isShowOnDesktop);

            androidManifest.Save();
        }
Ejemplo n.º 3
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();
        }