Skip to content

Commit

Permalink
Add flavours
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtanko committed Mar 29, 2024
1 parent 938e350 commit 6f93b18
Show file tree
Hide file tree
Showing 73 changed files with 1,208 additions and 69 deletions.
6 changes: 6 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ android {
versionNameSuffix "-dev"
}

qa {
dimension "buildType"
applicationIdSuffix ".qa"
versionNameSuffix "-qa"
}

prod {
dimension "buildType"
signingConfig signingConfigs.release
Expand Down
2 changes: 1 addition & 1 deletion ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>9.0</string>
<string>11.0</string>
</dict>
</plist>
7 changes: 7 additions & 0 deletions ios/Flutter/devDebug.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug-dev.xcconfig"
#include "Generated.xcconfig"

FLUTTER_TARGET=lib/main_dev.dart
ASSET_PREFIX=dev
BUNDLE_NAME=Template (Dev)
BUNDLE_DISPLAY_NAME=Template (Dev)
7 changes: 7 additions & 0 deletions ios/Flutter/devProfile.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.profile-dev.xcconfig"
#include "Generated.xcconfig"

FLUTTER_TARGET=lib/main_dev.dart
ASSET_PREFIX=dev
BUNDLE_NAME=Template (Dev)
BUNDLE_DISPLAY_NAME=Template (Dev)
7 changes: 7 additions & 0 deletions ios/Flutter/devRelease.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release-dev.xcconfig"
#include "Generated.xcconfig"

FLUTTER_TARGET=lib/main_dev.dart
ASSET_PREFIX=dev
BUNDLE_NAME=Template (Dev)
BUNDLE_DISPLAY_NAME=Template (Dev)
7 changes: 7 additions & 0 deletions ios/Flutter/prodDebug.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug-prod.xcconfig"
#include "Generated.xcconfig"

FLUTTER_TARGET=lib/main_prod.dart
ASSET_PREFIX=prod
BUNDLE_NAME=Template
BUNDLE_DISPLAY_NAME=Template
7 changes: 7 additions & 0 deletions ios/Flutter/prodProfile.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.profile-prod.xcconfig"
#include "Generated.xcconfig"

FLUTTER_TARGET=lib/main_prod.dart
ASSET_PREFIX=prod
BUNDLE_NAME=Template
BUNDLE_DISPLAY_NAME=Template
7 changes: 7 additions & 0 deletions ios/Flutter/prodRelease.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release-prod.xcconfig"
#include "Generated.xcconfig"

FLUTTER_TARGET=lib/main_prod.dart
ASSET_PREFIX=prod
BUNDLE_NAME=Template
BUNDLE_DISPLAY_NAME=Template
7 changes: 7 additions & 0 deletions ios/Flutter/qaDebug.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug-qa.xcconfig"
#include "Generated.xcconfig"

FLUTTER_TARGET=lib/main_qa.dart
ASSET_PREFIX=qa
BUNDLE_NAME=Template (Test)
BUNDLE_DISPLAY_NAME=Template (Test)
7 changes: 7 additions & 0 deletions ios/Flutter/qaProfile.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.profile-qa.xcconfig"
#include "Generated.xcconfig"

FLUTTER_TARGET=lib/main_qa.dart
ASSET_PREFIX=qa
BUNDLE_NAME=Template (Test)
BUNDLE_DISPLAY_NAME=Template (Test)
7 changes: 7 additions & 0 deletions ios/Flutter/qaRelease.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release-qa.xcconfig"
#include "Generated.xcconfig"

FLUTTER_TARGET=lib/main_qa.dart
ASSET_PREFIX=qa
BUNDLE_NAME=Template (Test)
BUNDLE_DISPLAY_NAME=Template (Test)
2 changes: 1 addition & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
# platform :ios, '11.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
649 changes: 590 additions & 59 deletions ios/Runner.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

109 changes: 109 additions & 0 deletions ios/Runner.xcodeproj/xcshareddata/xcschemes/dev.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1520"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F92532202B65C77F005562D1"
BuildableName = "RunnerDev.app"
BlueprintName = "RunnerDev"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug-dev"
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 = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F92532202B65C77F005562D1"
BuildableName = "RunnerDev.app"
BlueprintName = "RunnerDev"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F92532202B65C77F005562D1"
BuildableName = "RunnerDev.app"
BlueprintName = "RunnerDev"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F92532202B65C77F005562D1"
BuildableName = "RunnerDev.app"
BlueprintName = "RunnerDev"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug dev"
buildConfiguration = "Debug-prod"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
Expand Down
78 changes: 78 additions & 0 deletions ios/Runner.xcodeproj/xcshareddata/xcschemes/qa.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1530"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug-qa"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug-qa"
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 = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release-qa"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug-qa">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release-qa"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading

0 comments on commit 6f93b18

Please sign in to comment.