private static void BuildSetting_Android(BuildConfig.AndroidSetting pAndroidSetting)
        {
            if (string.IsNullOrEmpty(pAndroidSetting.strFullPackageName) == false)
            {
                PlayerSettings.applicationIdentifier = pAndroidSetting.strFullPackageName;
            }

            PlayerSettings.Android.keyaliasName = pAndroidSetting.strKeyalias_Name;
            PlayerSettings.Android.keyaliasPass = pAndroidSetting.strKeyalias_Password;

            PlayerSettings.Android.keystoreName = Application.dataPath + pAndroidSetting.strKeystore_RelativePath;
            PlayerSettings.Android.keystorePass = pAndroidSetting.strKeystore_Password;

            if (pAndroidSetting.bUse_IL_TO_CPP_Build)
            {
                PlayerSettings.SetScriptingBackend(BuildTargetGroup.Android, ScriptingImplementation.IL2CPP);
            }
            else
            {
                PlayerSettings.SetScriptingBackend(BuildTargetGroup.Android, ScriptingImplementation.Mono2x);
            }

            Debug.LogFormat(const_strPrefix_ForDebugLog + " Build Setting [Android]\n" +
                            "strPackageName : {0}\n" +
                            "keyaliasName : {1}, keyaliasPass : {2}\n" +
                            "keystoreName : {3}, keystorePass : {4}\n" +
                            "bUse_IL_TO_CPP_Build : {5}",
                            PlayerSettings.applicationIdentifier,
                            PlayerSettings.Android.keyaliasName, PlayerSettings.Android.keyaliasPass,
                            PlayerSettings.Android.keystoreName, PlayerSettings.Android.keystorePass,
                            pAndroidSetting.bUse_IL_TO_CPP_Build);;
        }
Example #2
0
        // ==============================================================================================


        /// <summary>
        /// 안드로이드 세팅
        /// </summary>
        private static void BuildSetting_Android(BuildConfig.AndroidSetting pSetting)
        {
            if (string.IsNullOrEmpty(pSetting.strFullPackageName) == false)
            {
                PlayerSettings.applicationIdentifier = pSetting.strFullPackageName;
            }

            PlayerSettings.Android.keyaliasName = pSetting.strKeyalias_Name;
            PlayerSettings.Android.keyaliasPass = pSetting.strKeyalias_Password;

            PlayerSettings.Android.keystoreName = Application.dataPath + pSetting.strKeystore_RelativePath;
            PlayerSettings.Android.keystorePass = pSetting.strKeystore_Password;

            string strBundleVersionCode_FromCommandLine = GetCommandLineArg(mapCommandLine[ECommandLineList.android_bundle_versioncode]);

            if (int.TryParse(strBundleVersionCode_FromCommandLine, out int iBundleVersionCode))
            {
                PlayerSettings.Android.bundleVersionCode = iBundleVersionCode;
            }
            else
            {
                PlayerSettings.Android.bundleVersionCode = pSetting.iBundleVersionCode;
            }

            string strVersionCode_FromCommandLine = GetCommandLineArg(mapCommandLine[ECommandLineList.android_version]);

            if (string.IsNullOrEmpty(strVersionCode_FromCommandLine) == false)
            {
                PlayerSettings.bundleVersion = strVersionCode_FromCommandLine;
            }
            else
            {
                PlayerSettings.bundleVersion = pSetting.strVersion;
            }

            // if (pAndroidSetting.bUse_IL_TO_CPP_Build)
            //     PlayerSettings.SetScriptingBackend(BuildTargetGroup.Android, ScriptingImplementation.IL2CPP);
            // else
            //     PlayerSettings.SetScriptingBackend(BuildTargetGroup.Android, ScriptingImplementation.Mono2x);

            Debug.LogFormat(const_strPrefix_ForDebugLog + " Build Setting [Android]\n" +
                            "strPackageName : {0}\n" +
                            "keyaliasName : {1}, keyaliasPass : {2}\n" +
                            "keystoreName : {3}, keystorePass : {4}\n" +
                            "bUse_IL_TO_CPP_Build : {5}",
                            PlayerSettings.applicationIdentifier,
                            PlayerSettings.Android.keyaliasName, PlayerSettings.Android.keyaliasPass,
                            PlayerSettings.Android.keystoreName, PlayerSettings.Android.keystorePass,
                            pSetting.bUse_IL_TO_CPP_Build);
            ;
        }
Example #3
0
        private static void BuildSetting_Android(BuildConfig.AndroidSetting pAndroidSetting)
        {
            if (string.IsNullOrEmpty(pAndroidSetting.strFullPackageName) == false)
            {
                PlayerSettings.applicationIdentifier = pAndroidSetting.strFullPackageName;
            }

            PlayerSettings.Android.keyaliasName = pAndroidSetting.strKeyalias_Name;
            PlayerSettings.Android.keyaliasPass = pAndroidSetting.strKeyalias_Password;

            PlayerSettings.Android.keystoreName = Application.dataPath + pAndroidSetting.strKeystore_RelativePath;
            PlayerSettings.Android.keystorePass = pAndroidSetting.strKeystore_Password;

            Debug.LogFormat(const_strPrefix_ForDebugLog + " Build Setting [Android]\n" +
                            "strPackageName : {0}\n" +
                            "keyaliasName : {1}, keyaliasPass : {2}\n" +
                            "keystoreName : {3}, keystorePass : {4}\n",
                            PlayerSettings.applicationIdentifier,
                            PlayerSettings.Android.keyaliasName, PlayerSettings.Android.keyaliasPass,
                            PlayerSettings.Android.keystoreName, PlayerSettings.Android.keystorePass);
        }