Esempio n. 1
0
        private void InjectBundleAndSDKVersion(PostProcessorContext context, string manifest)
        {
            int             targetSdkVersion  = context.Get <int>("TargetSDKVersion");
            AndroidManifest manifest2         = new AndroidManifest(manifest);
            string          bundleVersion     = PlayerSettings.bundleVersion;
            int             bundleVersionCode = PlayerSettings.Android.bundleVersionCode;

            manifest2.SetVersion(bundleVersion, bundleVersionCode);
            int minSdkVersion = (int)PlayerSettings.Android.minSdkVersion;

            manifest2.AddUsesSDK(minSdkVersion, targetSdkVersion);
            string bundleIdentifier = PlayerSettings.bundleIdentifier;

            if (this.IsValidAndroidBundleIdentifier(bundleIdentifier))
            {
                manifest2.packageName = bundleIdentifier;
            }
            manifest2.Save();
        }
 private void InjectBundleAndSDKVersion(PostProcessorContext context, string manifest)
 {
     int targetSdkVersion = context.Get<int>("TargetSDKVersion");
     AndroidManifest manifest2 = new AndroidManifest(manifest);
     string bundleVersion = PlayerSettings.bundleVersion;
     int bundleVersionCode = PlayerSettings.Android.bundleVersionCode;
     manifest2.SetVersion(bundleVersion, bundleVersionCode);
     int minSdkVersion = (int) PlayerSettings.Android.minSdkVersion;
     manifest2.AddUsesSDK(minSdkVersion, targetSdkVersion);
     string bundleIdentifier = PlayerSettings.bundleIdentifier;
     if (this.IsValidAndroidBundleIdentifier(bundleIdentifier))
     {
         manifest2.packageName = bundleIdentifier;
     }
     manifest2.Save();
 }