Files
Privado-iOS/iOS/project-sym.yml
2022-04-28 12:46:53 +03:00

166 lines
5.4 KiB
YAML

name: PrivadoVPN
options:
bundleIdPrefix: io.privado
defaultConfig: {{defaultConfig}}
attributes:
ORGANIZATIONNAME: Privado LLC
packages:
Starscream:
path: Vendors/spm/Starscream
SwiftyMarkdown:
path: Vendors/spm/SwiftyMarkdown
SwiftyPing:
path: Vendors/spm/SwiftyPing
SwiftyStoreKit:
path: Vendors/spm/SwiftyStoreKit
SnowplowTracker:
path: Vendors/spm/Snowplow_2.2.0
Sentry:
url: https://github.com/getsentry/sentry-cocoa
majorVersion: 5.2.2
targets:
Privado:
scheme:
environmentVariables:
COPYRIGHT: Privado LLC
testTargets:
- PrivadoTests
type: application
platform: iOS
deploymentTarget: 12.0
devices: [iPhone, iPad]
name: {{TARGET_PRIVADO_NAME}}
sources:
- path: ./Privado/Sources
name: Privado
excludes:
- "**/PreferencesWindowFlow/**"
- "**/ServerListTableView.swift"
- "**/ServerListWindow.swift"
- "**/OpenVPNService.swift"
- "**/WireGuardService.swift"
- path: ./Assets
name: Assets
buildPhase: resources
templates: [Shared]
entitlements:
path: "./Privado/Privado.entitlements"
properties:
com.apple.developer.networking.networkextension: [packet-tunnel-provider]
com.apple.developer.networking.vpn.api: [allow-vpn]
com.apple.security.inherit: true
com.apple.security.application-groups: [group.$(PRODUCT_BUNDLE_IDENTIFIER)]
keychain-access-groups: [$(AppIdentifierPrefix){{APPLICATION_IDENTIFIER}}]
settings:
base:
GCC_PREPROCESSOR_DEFINITIONS:
- "$(inherited)"
- PRODUCTION
- SIMULATOR
PRODUCT_BUNDLE_IDENTIFIER: "{{APPLICATION_IDENTIFIER}}"
CODE_SIGN_STYLE: Manual
DEVELOPMENT_TEAM: "{{DEVELOPMENT_TEAM}}"
OTHER_CODE_SIGN_FLAGS: --timestamp
INFOPLIST_FILE: "./Privado/Info.plist"
ENABLE_BITCODE: NO
ASSETCATALOG_COMPILER_APPICON_NAME: "AppIcon.iOS"
LD_RUNPATH_SEARCH_PATHS:
- "$(inherited)"
- "@executable_path/Frameworks"
- "@loader_path/Frameworks"
configs:
debug:
ENABLE_SWIFTLINT: YES
CODE_SIGN_IDENTITY: "{{CODE_SIGN_IDENTITY}}"
PROVISIONING_PROFILE_SPECIFIER: "{{PROVISIONING_PROFILE_SPECIFIER}}"
SWIFT_ACTIVE_COMPILATION_CONDITIONS:
- SIMULATOR
release:
ENABLE_SWIFTLINT: YES
SWIFT_ACTIVE_COMPILATION_CONDITIONS:
- PRODUCTION
- SIMULATOR
CODE_SIGN_IDENTITY: "{{CODE_SIGN_IDENTITY}}"
PROVISIONING_PROFILE_SPECIFIER: "{{PROVISIONING_PROFILE_SPECIFIER}}"
info:
path: ./Privado/Info.plist
properties:
CFBundleDevelopmentRegion: $(DEVELOPMENT_LANGUAGE)
CFBundleDisplayName: {{CFBundleDisplayName}}
CFBundleExecutable: $(EXECUTABLE_NAME)
CFBundleIdentifier: $(PRODUCT_BUNDLE_IDENTIFIER)
CFBundleInfoDictionaryVersion: "6.0"
CFBundleName: $(PRODUCT_NAME)
CFBundlePackageType: $(PRODUCT_BUNDLE_PACKAGE_TYPE)
CFBundleShortVersionString: "2.1.1"
CFBundleVersion: "5"
CFBundlePackageType: APPL
CFBundleURLTypes:
- CFBundleTypeRole: "Editor"
CFBundleURLSchemes: [privadovpn]
ITSAppUsesNonExemptEncryption: false
LSRequiresIPhoneOS: true
PRIVADO_BUILD_TIMESTAMP: "2021-12-06"
UIAppFonts:
- "SF-Pro-Text-Semibold.otf"
- "Spartan-Regular.ttf"
- "Spartan-SemiBold.ttf"
- "Spartan-Bold.ttf"
- "Spartan-Medium.ttf"
- "SF-Pro-Text-Black.otf"
- "SF-Pro-Text-Heavy.ttf"
- "SF-Pro-Text-Regular.otf"
- "SF-Pro-Text-Light.ttf"
- "SF-Pro-Text-Bold.otf"
- "Roboto-Black.ttf"
- "Roboto-Medium.ttf"
UILaunchStoryboardName: "Launch"
UIMainStoryboardFile: ""
UIRequiredDeviceCapabilities: ["armv7"]
UIStatusBarStyle: "UIStatusBarStyleLightContent"
UISupportedInterfaceOrientations: ["UIInterfaceOrientationPortrait"]
UISupportedInterfaceOrientations~ipad: ["UIInterfaceOrientationPortrait", "UIInterfaceOrientationPortraitUpsideDown", "UIInterfaceOrientationLandscapeLeft", "UIInterfaceOrientationLandscapeRight"]
UIViewControllerBasedStatusBarAppearance: true
dependencies:
- package: Sentry
- package: Starscream
- package: SwiftyMarkdown
- package: SwiftyPing
- package: SwiftyStoreKit
- package: SnowplowTracker
- sdk: StoreKit.framework
preBuildScripts:
- script:
/usr/libexec/PlistBuddy -c "Set :PRIVADO_BUILD_TIMESTAMP $(date +%F)" ${INFOPLIST_FILE}
name: "Change Build time in plist"
PrivadoTests:
type: bundle.unit-test
platform: iOS
sources:
- path: Tests/Sources
name: TestSources
- path: Tests/Assets
name: TestAssets
buildPhase: resources
settings:
base:
TEST_HOST: $(BUILT_PRODUCTS_DIR)/{{TARGET_PRIVADO_NAME}}.app/{{TARGET_PRIVADO_NAME}}
BUNDLE_LOADER: "$(TEST_HOST)"
info:
path: ./Privado/Info.plist
targetTemplates:
Shared:
preBuildScripts:
- script: |
if [ "$ENABLE_SWIFTLINT" == YES ] && which swiftlint >/dev/null ; then
swiftlint lint --config "${PROJECT_DIR}/../BuildTools/Configs/.swiftlint.yml"
fi
name: "SwiftLint"