module Nixenvironment # template peojects repositories TEMPLATES_REPO_LIST = { 'objc' => 'https://bitbucket.org/nixsolutions/np.git', 'swift' => 'https://bitbucket.org/nixsolutions/nps.git', 'unity' => 'https://bitbucket.org/nixsolutions/nup.git', 'macos' => 'https://bitbucket.org/nixsolutions/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_COVERAGE_REPORT_SCRIPT_PATH = File.join(BUILD_SCRIPTS_PATH, 'GenerateCodeCoverageForXCTests.sh') 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_DIRECTORY = File.join(UTILS_PATH, 'XcodeIconTagger') TAGGER_UTILITY_PATH = File.join(TAGGER_UTILITY_DIRECTORY, 'IconTagger') # 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' # unity UNITY_BUILDS_IOS_PATH = 'Builds/iOS' UNITY_BUILDS_MACOS_PATH = 'Builds/MacOS' UNITY_BUILDS_WINPHONE_PATH = 'Builds/WinPhone' 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_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_TO_BUILD_KEY = 'PROJECT_TO_BUILD' PROJECT_TARGET_TO_BUILD_KEY = 'PROJECT_TARGET_TO_BUILD' PROJECT_TARGET_TO_TEST_KEY = 'PROJECT_TARGET_TO_TEST' WORKSPACE_TO_BUILD_KEY = 'WORKSPACE_TO_BUILD' WORKSPACE_SCHEME_TO_BUILD_KEY = 'WORKSPACE_SCHEME_TO_BUILD' WORKSPACE_SCHEME_TO_TEST_KEY = 'WORKSPACE_SCHEME_TO_TEST' SDK_KEY = 'SDK' SDK_FOR_TESTS_KEY = 'SDK_FOR_TESTS' EXCLUDE_PATTERN_FOR_CODE_COVERAGE_KEY = 'EXCLUDE_PATTERN_FOR_CODE_COVERAGE' 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' 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_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' PROJECT_KEY = 'PROJECT' 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' IPA_BUNDLE_ID_KEY = 'IPA_BUNDLE_ID' CURRENT_APP_VERSION_KEY = 'CURRENT_APP_VERSION' CURRENT_BUILD_VERSION_KEY = 'CURRENT_BUILD_VERSION' NAME_FOR_DEPLOYMENT_KEY = 'NAME_FOR_DEPLOYMENT' IPA_PRODUCT_KEY = 'IPA_PRODUCT' 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 end