Beispiel #1
0
        private void ComponentDataGetBundleIdentify()
        {
            //版本
            string _v = RunningTimeData.GetRunningData(CommonKey.VERSION_LOCAL, "0.0.0.0");

            version = new Version(_v);
            string _bu = DateTime.Now.ToString("MMdd");

            buidle = int.Parse(_bu);
            if (buidle > version.Build)
            {
                buidle = 0;
                PersistenceData.SavePrefsData("LOCAL_VERSION_BUIDLE", buidle);
            }

            buidle = PersistenceData.GetPrefsDataInt("LOCAL_VERSION_BUIDLE", 0);
        }
Beispiel #2
0
        private static void GetUserSetting()
        {
            wholeModule = PersistenceData.GetPrefsDataBool("ASSET_PACKAGER_WHOLE_MODULE");

            string _v = RunningTimeData.GetRunningData(CommonKey.VERSION_LOCAL, "2.0.0.0");

            version = new Version(_v);
            string _bu = DateTime.Now.ToString("MMdd");

            buidle = int.Parse(_bu);
            if (buidle > version.Build)
            {
                buidle = 0;
                PersistenceData.SavePrefsData("LOCAL_VERSION_BUIDLE", buidle);
            }

            buidle = PersistenceData.GetPrefsDataInt("LOCAL_VERSION_BUIDLE", 0);
        }
Beispiel #3
0
        private void GetUserSetting()
        {
            ComponentDataGetServer();
            ComponentDataGetBundleIdentify();

            //基础模块(针对业务逻辑)
            string _baseJson = RunningTimeData.GetRunningData("JSON_BASE_MODULE", string.Empty);

            if (!string.IsNullOrEmpty(_baseJson))
            {
                baseModule = JsonMapper.ToObject <List <string> >(_baseJson);
            }

            //平台
            bt = (MBuidleTarget)PersistenceData.GetPrefsDataInt("BUNDLE_PLANTFORM", 0);
            //是否debug版本
            isDebug = PersistenceData.GetPrefsDataBool("BUNDLE_ISDEBUG", true);
            //全包含资源
            isFull = PersistenceData.GetPrefsDataBool("BUNDLE_ISFULL", false);
            //分离体
            buildDepartPackage = PersistenceData.GetPrefsDataBool("BUNDLE_ISDEPART", false);
            //不打新资源(不存在依然会打包资源)
            oldRes = PersistenceData.GetPrefsDataBool("BUNDLE_ISOLDRES", false);
        }