Skip to content

Commit 8663054

Browse files
authored
Fix ios setup issues (#62)
1 parent 3e22cb3 commit 8663054

15 files changed

+94
-159
lines changed

android/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ android {
3636
dev {
3737
dimension "flavor-type"
3838
applicationId "com.xmartlabs.template.dev"
39-
resValue "string", "app_name", "Template Prod"
39+
resValue "string", "app_name", "Template Dev"
4040
}
4141
prod {
4242
dimension "flavor-type"
4343
applicationId "com.xmartlabs.template"
44-
resValue "string", "app_name", "Template Dev"
44+
resValue "string", "app_name", "Template"
4545
}
4646
staging {
4747
dimension "flavor-type"

ios/Flutter/devDebug.xcconfig

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "Generated.xcconfig"
22

3-
FLUTTER_TARGET=lib/main_dev.dart
3+
FLUTTER_TARGET=lib/main.dart
44
ASSET_PREFIX=dev
5-
BUNDLE_NAME=Template Prod
6-
BUNDLE_DISPLAY_NAME=Template Prod
5+
BUNDLE_NAME=Template Dev
6+
BUNDLE_DISPLAY_NAME=Template Dev

ios/Flutter/devProfile.xcconfig

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "Generated.xcconfig"
22

3-
FLUTTER_TARGET=lib/main_dev.dart
3+
FLUTTER_TARGET=lib/main.dart
44
ASSET_PREFIX=dev
5-
BUNDLE_NAME=Template Prod
6-
BUNDLE_DISPLAY_NAME=Template Prod
5+
BUNDLE_NAME=Template Dev
6+
BUNDLE_DISPLAY_NAME=Template Dev

ios/Flutter/devRelease.xcconfig

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "Generated.xcconfig"
22

3-
FLUTTER_TARGET=lib/main_dev.dart
3+
FLUTTER_TARGET=lib/main.dart
44
ASSET_PREFIX=dev
5-
BUNDLE_NAME=Template Prod
6-
BUNDLE_DISPLAY_NAME=Template Prod
5+
BUNDLE_NAME=Template Dev
6+
BUNDLE_DISPLAY_NAME=Template Dev

ios/Flutter/prodDebug.xcconfig

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "Generated.xcconfig"
22

3-
FLUTTER_TARGET=lib/main_prod.dart
3+
FLUTTER_TARGET=lib/main.dart
44
ASSET_PREFIX=prod
5-
BUNDLE_NAME=Template Dev
6-
BUNDLE_DISPLAY_NAME=Template Dev
5+
BUNDLE_NAME=Template
6+
BUNDLE_DISPLAY_NAME=Template

ios/Flutter/prodProfile.xcconfig

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "Generated.xcconfig"
22

3-
FLUTTER_TARGET=lib/main_prod.dart
3+
FLUTTER_TARGET=lib/main.dart
44
ASSET_PREFIX=prod
5-
BUNDLE_NAME=Template Dev
6-
BUNDLE_DISPLAY_NAME=Template Dev
5+
BUNDLE_NAME=Template
6+
BUNDLE_DISPLAY_NAME=Template

ios/Flutter/prodRelease.xcconfig

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "Generated.xcconfig"
22

3-
FLUTTER_TARGET=lib/main_prod.dart
3+
FLUTTER_TARGET=lib/main.dart
44
ASSET_PREFIX=prod
5-
BUNDLE_NAME=Template Dev
6-
BUNDLE_DISPLAY_NAME=Template Dev
5+
BUNDLE_NAME=Template
6+
BUNDLE_DISPLAY_NAME=Template

ios/Flutter/stagingDebug.xcconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "Generated.xcconfig"
22

3-
FLUTTER_TARGET=lib/main_staging.dart
3+
FLUTTER_TARGET=lib/main.dart
44
ASSET_PREFIX=staging
55
BUNDLE_NAME=Template Sta
66
BUNDLE_DISPLAY_NAME=Template Sta

ios/Flutter/stagingProfile.xcconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "Generated.xcconfig"
22

3-
FLUTTER_TARGET=lib/main_staging.dart
3+
FLUTTER_TARGET=lib/main.dart
44
ASSET_PREFIX=staging
55
BUNDLE_NAME=Template Sta
66
BUNDLE_DISPLAY_NAME=Template Sta

ios/Flutter/stagingRelease.xcconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "Generated.xcconfig"
22

3-
FLUTTER_TARGET=lib/main_staging.dart
3+
FLUTTER_TARGET=lib/main.dart
44
ASSET_PREFIX=staging
55
BUNDLE_NAME=Template Sta
66
BUNDLE_DISPLAY_NAME=Template Sta

ios/Podfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '9.0'
2+
platform :ios, '12.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

ios/Podfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ SPEC CHECKSUMS:
5050
path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
5151
sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904
5252

53-
PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
53+
PODFILE CHECKSUM: 4e8f8b2be68aeea4c0d5beb6ff1e79fface1d048
5454

5555
COCOAPODS: 1.11.3

ios/Runner.xcodeproj/project.pbxproj

+58-41
Large diffs are not rendered by default.

ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

-91
This file was deleted.

pubspec.yaml

+11-2
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,34 @@ flavorizr:
7070
flavors:
7171
dev:
7272
app:
73-
name: 'Template Prod'
73+
name: 'Template Dev'
7474
android:
7575
applicationId: 'com.xmartlabs.template.dev'
7676
ios:
7777
bundleId: 'com.xmartlabs.template.dev'
78+
variables:
79+
FLUTTER_TARGET:
80+
value: "lib/main.dart"
7881
prod:
7982
app:
80-
name: 'Template Dev'
83+
name: 'Template'
8184
android:
8285
applicationId: 'com.xmartlabs.template'
8386
ios:
8487
bundleId: 'com.xmartlabs.template'
88+
variables:
89+
FLUTTER_TARGET:
90+
value: "lib/main.dart"
8591
staging:
8692
app:
8793
name: 'Template Sta'
8894
android:
8995
applicationId: 'com.xmartlabs.template.sta'
9096
ios:
9197
bundleId: 'com.xmartlabs.template.sta'
98+
variables:
99+
FLUTTER_TARGET:
100+
value: "lib/main.dart"
92101
instructions:
93102
- assets:download
94103
- assets:extract

0 commit comments

Comments
 (0)