apks file builds with usual files for platform and additional files with _2 suffix.
How can i disable it?
i need only usual files.
Unity3d 2018.4.4 Win10 x64
Builds IL2CPP with gradle by standart template
there is build config
static void BuildAndroid()
{
BuildTargetGroup grp = BuildTargetGroup.Android;
BuildTarget target = BuildTarget.Android;
EditorUserBuildSettings.SwitchActiveBuildTarget (grp, target);
EditorUserBuildSettings.allowDebugging = false;
EditorUserBuildSettings.development = false;
EditorUserBuildSettings.compressFilesInPackage = true;
PlayerSettings.SetIl2CppCompilerConfiguration(grp, Il2CppCompilerConfiguration.Release);
EditorUserBuildSettings.connectProfiler = false;
string kPass = Environment.GetEnvironmentVariable ("KeyPassword"),
sPass = Environment.GetEnvironmentVariable ("KeystorePassword"),
apk = Environment.GetEnvironmentVariable ("apk");
int targetAPI = 0;
int.TryParse(Environment.GetEnvironmentVariable("targetAPI"), out targetAPI);
PlayerSettings.applicationIdentifier = Environment.GetEnvironmentVariable ("AppBundle");
PlayerSettings.Android.keystoreName = Environment.GetEnvironmentVariable ("KeystoreName");
PlayerSettings.Android.keystorePass = sPass;
PlayerSettings.Android.keyaliasName = Environment.GetEnvironmentVariable ("KeyAlias");
PlayerSettings.Android.keyaliasPass = kPass;
PlayerSettings.Android.useAPKExpansionFiles = false;
//PlayerSettings.Android.targetArchitectures = AndroidArchitecture.All;
int bv = 0;
int.TryParse (Environment.GetEnvironmentVariable ("bundleVersionCode"), out bv);
PlayerSettings.Android.bundleVersionCode = bv;
PlayerSettings.allowUnsafeCode = true;
PlayerSettings.bundleVersion = Environment.GetEnvironmentVariable ("version");
PlayerSettings.scriptingRuntimeVersion = ScriptingRuntimeVersion.Latest;
PlayerSettings.SetScriptingBackend (grp, ScriptingImplementation.IL2CPP);
switch (targetAPI)
{
case 26:
PlayerSettings.Android.targetSdkVersion = UnityEditor.AndroidSdkVersions.AndroidApiLevel26;
break;
case 27:
PlayerSettings.Android.targetSdkVersion = UnityEditor.AndroidSdkVersions.AndroidApiLevel27;
break;
case 28:
PlayerSettings.Android.targetSdkVersion = UnityEditor.AndroidSdkVersions.AndroidApiLevel28;
break;
default:
PlayerSettings.Android.targetSdkVersion = UnityEditor.AndroidSdkVersions.AndroidApiLevelAuto;
break;
}
Debug.Log ("===KeystoreName: " + PlayerSettings.Android.keystoreName);
Debug.Log ("===keyaliasName: " + PlayerSettings.Android.keyaliasName);
Debug.Log ("===keystorePass: " + (string.IsNullOrEmpty (sPass) ? "!!!EMPTY!!!" : "(hidden)"));
Debug.Log ("===keyaliasPass: " + (string.IsNullOrEmpty (kPass) ? "!!!EMPTY!!!" : "(hidden)"));
Debug.Log("===targetAPI: " + PlayerSettings.Android.targetSdkVersion);
BuildPlayerOptions buildPlayerOptions = new BuildPlayerOptions ();
buildPlayerOptions.scenes = GetScenes ();
buildPlayerOptions.locationPathName = string.Format ("{0}/{1}", outputProjectsFolder, apk);
buildPlayerOptions.target = BuildTarget.Android;
buildPlayerOptions.options = BuildOptions.None;
BuildReport report = BuildPipeline.BuildPlayer (buildPlayerOptions);
BuildSummary summary = report.summary;
}