module Nixenvironment # template peojects repositories TEMPLATES_REPO_LIST = { 'objc' => 'https://gitlab.nixdev.co/NIX_iPhone_Internal/NP.git', 'swift' => 'https://gitlab.nixdev.co/NIX_iPhone_Internal/nps.git', 'unity' => 'https://gitlab.nixdev.co/NIX_Unity_Internal/NUP.git', 'macos' => 'https://gitlab.nixdev.co/NIX_iPhone_Internal/nmp.git' } # config CONFIG_SETTINGS_FILE_NAME = 'Config' # ninbas legacy BUILD_SCRIPTS_PATH = File.expand_path('../../../legacy', __FILE__) UNITY_BUILD_ANDROID_SCRIPT_PATH = File.join(BUILD_SCRIPTS_PATH, 'UnityBuildAndroid.py') CODE_DUPLICATION_REPORT_SCRIPT_PATH = File.join(BUILD_SCRIPTS_PATH, 'GenerateCodeDuplicationReport.sh') DEPLOY_SCRIPT_PATH = File.join(BUILD_SCRIPTS_PATH, 'Deploy.sh') DEPLOY_APK_SCRIPT_PATH = File.join(BUILD_SCRIPTS_PATH, 'DeployAPK.py') # utils UTILS_PATH = File.expand_path('../../../utils', __FILE__) IDENTITIESLIST_UTILITY_PATH = File.join(UTILS_PATH, 'identitieslist') TAGGER_UTILITY_PATH = File.join(UTILS_PATH, 'AddVersionToIcons.sh') # macos MACOS_PROJECTS_DEPLOY_PATH = 'Projects/macOSProjects' # file extensions APP_EXT = '.app' IPA_EXT = '.ipa' APPEX_EXT = '.appex' DSYM_EXT = '.dSYM' ZIP_EXT = '.zip' GIT_EXT = '.git' # autogenerated AUTOGENERATED_FILES_HEADER = '### AUTOGENERATED BY Nixenvironment; DO NOT EDIT ###' AUTOGENERATED_LAST_REVISION = '_last_revision.sh' AUTOGENERATED_LAST_BUILD_VARS = '_last_build_vars.sh' AUTOGENERATED_COVERAGE = 'coverage.xml' AUTOGENERATED_DUPLICATION = 'duplication.xml' AUTOGENERATED_TEST_RESULTS = 'test-results/' # watch, extensions, widgets WATCHKIT_APP_KEY = 'WatchKit App' WATCHKIT_EXTENSION_KEY = 'WatchKit Extension' WIDGET_KEY = 'Widget' WATCHKIT_APP_PREFIX = WATCHKIT_APP_KEY + ' ' WATCHKIT_EXTENSION_PREFIX = WATCHKIT_EXTENSION_KEY + ' ' WIDGET_PREFIX = WIDGET_KEY + ' ' WATCHKIT_APP_SUFFIX = ' ' + WATCHKIT_APP_KEY WATCHKIT_EXTENSION_SUFFIX = ' ' + WATCHKIT_EXTENSION_KEY WIDGET_SUFFIX = ' ' + WIDGET_KEY WATCHKIT_APP_SUFFIX_WITH_EXT = WATCHKIT_APP_SUFFIX + APP_EXT WATCHKIT_EXTENSION_SUFFIX_WITH_EXT = WATCHKIT_EXTENSION_SUFFIX + APPEX_EXT WIDGET_SUFFIX_WITH_EXT = WIDGET_SUFFIX + APPEX_EXT IOS_BUILDS_FOLDER_NAME = 'build' IOS_PLUGINS_FOLDER_NAME = 'PlugIns' IOS_BUILD_DIRECTORY_NAME = File.join(Dir.pwd, IOS_BUILDS_FOLDER_NAME) PROVISIONING_PROFILES_PATH = File.join(Dir.home, 'Library/MobileDevice/Provisioning Profiles') # unity UNITY_BUILDS_IOS_PATH = 'Builds/iOS' UNITY_BUILDS_MACOS_PATH = 'Builds/MacOS' UNITY_BUILDS_WINPHONE_PATH = 'Builds/WinPhone' UNITY_BUILDS_WEBGL_PATH = 'Builds/WebGL' UNITY_BUILDS_IOS_PROJECT = 'Unity-iPhone.xcodeproj' UNITY_BUILDS_IOS_SCHEME = 'Unity-iPhone' UNITY_BUILDS_ICONS_PATH = 'Unity-iPhone/Images.xcassets' UNITY_BUILD_SCRIPTS_PATH = 'UnityBuildAutomationScripts' UNITY_ASSETS_EDITOR_PATH = 'Assets/Editor' UNITY_BUILD_SCRIPTS_DIR = File.join(BUILD_SCRIPTS_PATH, UNITY_BUILD_SCRIPTS_PATH) UNITY_EDITOR_DIR = File.join(Dir.pwd, UNITY_ASSETS_EDITOR_PATH) UNITY_IOS_PROJECT_PATH = File.join(Dir.pwd, UNITY_BUILDS_IOS_PATH) UNITY_MACOS_PROJECT_PATH = File.join(Dir.pwd, UNITY_BUILDS_MACOS_PATH) UNITY_WEBGL_PROJECT_PATH = File.join(Dir.pwd, UNITY_BUILDS_WEBGL_PATH) UNITY_WINPHONE_PROJECT_PATH = File.join(Dir.pwd, UNITY_BUILDS_WINPHONE_PATH) UNITY_MACOS_BUILD_NAME = 'Build' UNITY_MACOS_BUILD_PATH = File.join(UNITY_MACOS_PROJECT_PATH, "#{UNITY_MACOS_BUILD_NAME}#{APP_EXT}") # project adjuster ADJUSTER_WORKING_COPY_NAME = 'NIXProjectAdjuster' ADJUSTER_TEMP_PROJECT_NAME = 'newProj' # tests TESTS_AND_COVERAGE_TIMEOUT = 10 # config keys PROJECT_KEY = 'PROJECT' WORKSPACE_KEY = 'WORKSPACE' SCHEME_KEY = 'SCHEME' SDK_KEY = 'SDK' EXCLUDE_PATTERN_FOR_CODE_DUPLICATION_KEY = 'EXCLUDE_PATTERN_FOR_CODE_DUPLICATION' DEPLOY_HOST_KEY = 'DEPLOY_HOST' DEPLOY_PATH_KEY = 'DEPLOY_PATH' DEPLOY_USERNAME_KEY = 'DEPLOY_USERNAME' DEPLOY_PASSWORD_KEY = 'DEPLOY_PASSWORD' DEPLOY_ITUNESCONNECT_USERNAME_KEY = 'DEPLOY_ITUNESCONNECT_USERNAME' DEPLOY_TEAM_NAME_KEY = 'DEPLOY_TEAM_NAME' ICONS_PATH_KEY = 'ICONS_PATH' XCTEST_DESTINATION_DEVICE_KEY = 'XCTEST_DESTINATION_DEVICE' CONFIGURATION_FILES_PATH_KEY = 'CONFIGURATION_FILES_PATH' CODE_COVERAGE_CONFIGURATION_KEY = 'CODE_COVERAGE_CONFIGURATION' CODE_COVERAGE_IGNORE_FILE_KEY = 'CODE_COVERAGE_IGNORE_FILE' CODE_COVERAGE_OUTPUT_DIRECTORY_KEY = 'CODE_COVERAGE_OUTPUT_DIRECTORY' ENV_VAR_PREFIX_KEY = 'ENV_VAR_PREFIX' BUNDLE_ID_KEY = 'BUNDLE_ID' RESIGNED_BUNDLE_ID_KEY = 'RESIGNED_BUNDLE_ID' RESIGNED_WATCHKIT_APP_BUNDLE_ID_KEY = 'RESIGNED_WATCHKIT_APP_BUNDLE_ID' RESIGNED_WATCHKIT_EXTENSION_BUNDLE_ID_KEY = 'RESIGNED_WATCHKIT_EXTENSION_BUNDLE_ID' RESIGNED_WIDGET_BUNDLE_ID_KEY = 'RESIGNED_WIDGET_BUNDLE_ID' RESIGNED_BUNDLE_NAME_KEY = 'RESIGNED_BUNDLE_NAME' RESIGNED_ENTITLEMENTS_PATH_KEY = 'RESIGNED_ENTITLEMENTS_PATH' RESIGNED_WATCHKIT_EXTENSION_ENTITLEMENTS_PATH_KEY = 'RESIGNED_WATCHKIT_EXTENSION_ENTITLEMENTS_PATH' RESIGNED_WIDGET_ENTITLEMENTS_PATH_KEY = 'RESIGNED_WIDGET_ENTITLEMENTS_PATH' # env keys PRODUCT_SETTINGS_PATH_KEY = 'PRODUCT_SETTINGS_PATH' CONFIGURATION_BUILD_DIR_KEY = 'CONFIGURATION_BUILD_DIR' DWARF_DSYM_FOLDER_PATH_KEY = 'DWARF_DSYM_FOLDER_PATH' BUILT_PRODUCTS_DIR_KEY = 'BUILT_PRODUCTS_DIR' EXECUTABLE_NAME_KEY = 'EXECUTABLE_NAME' OBJECT_FILE_DIR_NORMAL_KEY = 'OBJECT_FILE_DIR_normal' EMBEDDED_PROFILE_NAME_KEY = 'EMBEDDED_PROFILE_NAME' TARGET_NAME_KEY = 'TARGET_NAME' CONFIGURATION_KEY = 'CONFIGURATION' APP_PRODUCT_KEY = 'APP_PRODUCT' SDK_NAME_KEY = 'SDK_NAME' CURRENT_APP_VERSION_KEY = 'CURRENT_APP_VERSION' CURRENT_BUILD_VERSION_KEY = 'CURRENT_BUILD_VERSION' IPA_BUNDLE_ID_KEY = 'IPA_BUNDLE_ID' IPA_BUNDLE_ID_RESIGNED_DEVICE_KEY = 'IPA_BUNDLE_ID_RESIGNED_DEVICE' IPA_BUNDLE_ID_RESIGNED_ADHOC_KEY = 'IPA_BUNDLE_ID_RESIGNED_ADHOC' IPA_BUNDLE_ID_RESIGNED_APPSTORE_KEY = 'IPA_BUNDLE_ID_RESIGNED_APPSTORE' NAME_FOR_DEPLOYMENT_KEY = 'NAME_FOR_DEPLOYMENT' NAME_FOR_DEPLOYMENT_RESIGNED_DEVICE_KEY = 'NAME_FOR_DEPLOYMENT_RESIGNED_DEVICE' NAME_FOR_DEPLOYMENT_RESIGNED_ADHOC_KEY = 'NAME_FOR_DEPLOYMENT_RESIGNED_ADHOC' NAME_FOR_DEPLOYMENT_RESIGNED_APPSTORE_KEY = 'NAME_FOR_DEPLOYMENT_RESIGNED_APPSTORE' IPA_PRODUCT_KEY = 'IPA_PRODUCT' IPA_PRODUCT_RESIGNED_DEVICE_KEY = 'IPA_PRODUCT_RESIGNED_DEVICE' IPA_PRODUCT_RESIGNED_ADHOC_KEY = 'IPA_PRODUCT_RESIGNED_ADHOC' IPA_PRODUCT_RESIGNED_APPSTORE_KEY = 'IPA_PRODUCT_RESIGNED_APPSTORE' APP_DSYM_KEY = 'APP_DSYM' SCM_USERNAME_KEY = 'SCM_USERNAME' SCM_PASSWORD_KEY = 'SCM_PASSWORD' WATCHKIT_EXTENSION_PRODUCT_SETTINGS_PATH_KEY = 'WATCHKIT_EXTENSION_' + PRODUCT_SETTINGS_PATH_KEY WATCHKIT_APP_PRODUCT_SETTINGS_PATH_KEY = 'WATCHKIT_APP_' + PRODUCT_SETTINGS_PATH_KEY WIDGET_PRODUCT_SETTINGS_PATH_KEY = 'WIDGET_' + PRODUCT_SETTINGS_PATH_KEY SKIP_DEPLOY_KEY = 'SKIP_DEPLOY' end