Generate xcconfigs
This commit is contained in:
parent
e844a892f1
commit
d2eb2d0c36
|
|
@ -49,6 +49,15 @@ generate "{project_name: $PROJECT_NAME}" $TEMPLATES/Info.mustache $PROJECT_NAME/
|
|||
# generate file for generate xcodeproj
|
||||
generate "{project_name: $PROJECT_NAME, deployment_target: $DEPLOYMENT_TARGET}" $TEMPLATES/project.mustache project.yml
|
||||
|
||||
# generate xcconfig files
|
||||
mkdir -p Configs
|
||||
LOWERCASED_PROJECT_NAME=$(echo "$PROJECT_NAME" | tr '[:upper:]' '[:lower:]')
|
||||
generate "{project_name: $PROJECT_NAME, identifier: "ru.touchin.$LOWERCASED_PROJECT_NAME"}" $TEMPLATES/configuration.mustache Configs/StandardDebug.xcconfig
|
||||
generate "{project_name: $PROJECT_NAME, identifier: "ru.touchin.$LOWERCASED_PROJECT_NAME"}" $TEMPLATES/configuration.mustache Configs/StandardRelease.xcconfig
|
||||
|
||||
generate "{project_name: $PROJECT_NAME, identifier: "com.touchin.$LOWERCASED_PROJECT_NAME"}" $TEMPLATES/configuration.mustache Configs/EnterpriseDebug.xcconfig
|
||||
generate "{project_name: $PROJECT_NAME, identifier: "com.touchin.$LOWERCASED_PROJECT_NAME"}" $TEMPLATES/configuration.mustache Configs/EnterpriseRelease.xcconfig
|
||||
|
||||
# generate xcode project file
|
||||
echo "Generate xcodeproj file..."
|
||||
xcodegen --spec project.yml
|
||||
|
|
|
|||
|
|
@ -1,25 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" systemVersion="17A277" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
|
||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--View Controller-->
|
||||
<scene sceneID="EHf-IW-A2E">
|
||||
<objects>
|
||||
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
||||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="53" y="375"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
</document>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
PRODUCT_BUNDLE_IDENTIFIER = {{identifier}}
|
||||
PRODUCT_MODULE_NAME = {{project_name}}
|
||||
PRODUCT_NAME = {{project_name}}
|
||||
|
|
@ -11,6 +11,11 @@ configs:
|
|||
EnterpriseRelease: release
|
||||
targets:
|
||||
{{project_name}}:
|
||||
configFiles:
|
||||
StandardDebug: Configs/StandardDebug.xcconfig
|
||||
StandardRelease: Configs/StandardRelease.xcconfig
|
||||
EnterpriseDebug: Configs/EnterpriseDebug.xcconfig
|
||||
EnterpriseRelease: Configs/EnterpriseRelease.xcconfig
|
||||
type: application
|
||||
platform: iOS
|
||||
prebuildScripts:
|
||||
|
|
@ -32,6 +37,7 @@ targets:
|
|||
- "Resources/LaunchScreen.storyboard"
|
||||
- "Resources/Assets.xcassets/AppIcon.appiconset/Contents.json"
|
||||
- "Info.plist"
|
||||
- "*.xcconfig"
|
||||
- path: {{project_name}}/Analytics
|
||||
buildPhase: sources
|
||||
- path: {{project_name}}/Cells
|
||||
|
|
|
|||
Loading…
Reference in New Issue