Skip to content
Open
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ module.exports = function(grunt) {
command: 'cordova prepare android && cordova build android --release',
},
build_ios_debug: {
command: 'cordova prepare ios && cordova build ios --debug --buildFlag="-UseModernBuildSystem=0"',
command: 'cordova prepare ios && cordova build ios --debug --buildFlag="-UseModernBuildSystem=0" --buildFlag="-scheme BETA"',
options: {
maxBuffer: 3200 * 1024
}
},
build_ios_release: {
command: 'cordova prepare ios && cordova build ios --release --buildFlag="-UseModernBuildSystem=0"',
command: 'cordova prepare ios && cordova build ios --release --buildFlag="-UseModernBuildSystem=0" --buildFlag="-scheme Bitcoin.com Wallet"',
options: {
maxBuffer: 3200 * 1024
}
Expand Down
91 changes: 91 additions & 0 deletions app-template/bitcoincom/BETA.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1D6058900D05DD3D006BFB54"
BuildableName = "Bitcoin.com Wallet.app"
BlueprintName = "Bitcoin.com Wallet"
ReferencedContainer = "container:Bitcoin.com Wallet.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1D6058900D05DD3D006BFB54"
BuildableName = "Bitcoin.com Wallet.app"
BlueprintName = "Bitcoin.com Wallet"
ReferencedContainer = "container:Bitcoin.com Wallet.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1D6058900D05DD3D006BFB54"
BuildableName = "Bitcoin.com Wallet.app"
BlueprintName = "Bitcoin.com Wallet"
ReferencedContainer = "container:Bitcoin.com Wallet.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1D6058900D05DD3D006BFB54"
BuildableName = "Bitcoin.com Wallet.app"
BlueprintName = "Bitcoin.com Wallet"
ReferencedContainer = "container:Bitcoin.com Wallet.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
21 changes: 21 additions & 0 deletions app-template/bitcoincom/import_scheme.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Set to your project and scheme

export PROJECT_FILE='../../platforms/ios/Bitcoin.com Wallet.xcodeproj'
export SCHEME='BETA.xcscheme'

# Generate path to shared schemes folder

export SCHEMES="$PROJECT_FILE"/xcshareddata/xcschemes

cd "$(dirname "$0")"

if [ ! -f "$SCHEMES/$SCHEME" ]; then

# Create folder if necessary
mkdir -p "$SCHEMES"

# Copy scheme
cp $SCHEME "$SCHEMES/$SCHEME"
fi
1 change: 1 addition & 0 deletions app-template/config-template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@

<!-- Platform Specific Settings -->
<platform name="ios">
<hook type="after_platform_add" src="app-template/bitcoincom/import_scheme.sh" />
<config-file platform="ios" target="*-Info.plist" parent="UIStatusBarHidden"><true/></config-file>
<config-file platform="ios" target="*-Info.plist" parent="UIViewControllerBasedStatusBarAppearance"><false/></config-file>
<config-file target="*-Info.plist" parent="ITSAppUsesNonExemptEncryption"><false/></config-file>
Expand Down