Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit c4dd509

Browse files
committed
refactor(environment): load environment using environment_config
1 parent ef9bbaf commit c4dd509

File tree

19 files changed

+184
-173
lines changed

19 files changed

+184
-173
lines changed

.github/workflows/prepare.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,10 @@ jobs:
216216

217217
- name: Generate Environment Configuration
218218
run: |
219-
echo FLAVOR=${{ inputs.flavor }} > .env
220-
echo COMMIT=${{ github.sha }} >> .env
221-
echo BUILD=${{ needs.build-details.outputs.build-number }} >> .env
219+
export FLAVOR=${{ inputs.flavor }}
220+
export COMMIT=${{ github.sha }}
221+
export BUILD=${{ needs.build-details.outputs.build-number }}
222+
flutter packages pub run environment_config:generate
222223
223224
- name: Generate Localization
224225
run: dart ${{github.workspace }}/scripts/generate_localization.dart
@@ -231,6 +232,6 @@ jobs:
231232
with:
232233
name: core-files
233234
path: |
234-
${{ github.workspace }}/.env
235235
${{ github.workspace }}/assets/localization
236236
${{ github.workspace }}/lib/**/*.g.dart
237+
${{ github.workspace }}/lib/system/environment.dart

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ ios/Flutter/.last_build_id
4242
output/
4343
*.packages
4444
coverage/
45+
lib/system/environment.dart
4546

4647
# XCode Build Artifacts
4748
ios/build/

.vscode/launch.json

+22-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
"version": "0.2.0",
6-
"configurations": [
7-
{
8-
"name": "Debug",
9-
"request": "launch",
10-
"type": "dart"
11-
}
12-
]
13-
}
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug",
6+
"request": "launch",
7+
"type": "dart",
8+
"flutterMode": "debug"
9+
},
10+
{
11+
"name": "Profile",
12+
"request": "launch",
13+
"type": "dart",
14+
"flutterMode": "profile"
15+
},
16+
{
17+
"name": "Release",
18+
"request": "launch",
19+
"type": "dart",
20+
"flutterMode": "release"
21+
}
22+
]
23+
}

.vscode/settings.json

-5
This file was deleted.

environment_config.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
environment_config:
2+
path: system/environment.dart
3+
class: LunaEnvironment
4+
5+
fields:
6+
build:
7+
type: int
8+
default: 9999999999
9+
env_var: BUILD
10+
commit:
11+
type: String
12+
default: master
13+
env_var: COMMIT
14+
flavor:
15+
type: String
16+
default: edge
17+
env_var: FLAVOR

ios/Podfile.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ PODS:
147147
- PromisesObjC (2.1.0)
148148
- quick_actions_ios (0.0.1):
149149
- Flutter
150-
- SDWebImage (5.12.5):
151-
- SDWebImage/Core (= 5.12.5)
152-
- SDWebImage/Core (5.12.5)
150+
- SDWebImage (5.12.6):
151+
- SDWebImage/Core (= 5.12.6)
152+
- SDWebImage/Core (5.12.6)
153153
- share_plus (0.0.1):
154154
- Flutter
155155
- shared_preferences_ios (0.0.1):
@@ -272,7 +272,7 @@ SPEC CHECKSUMS:
272272
path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
273273
PromisesObjC: 99b6f43f9e1044bd87a95a60beff28c2c44ddb72
274274
quick_actions_ios: 622e9076602c57f1f937f1c13e5c59c3379347e9
275-
SDWebImage: 0905f1b7760fc8ac4198cae0036600d67478751e
275+
SDWebImage: a47aea9e3d8816015db4e523daff50cfd294499d
276276
share_plus: 056a1e8ac890df3e33cb503afffaf1e9b4fbae68
277277
shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
278278
sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904

ios/Runner.xcodeproj/project.pbxproj

+81-81
Large diffs are not rendered by default.

lib/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import 'package:lunasea/system/network/network.dart';
1919
import 'package:lunasea/system/quick_actions/quick_actions.dart';
2020
import 'package:lunasea/system/window_manager/window_manager.dart';
2121
import 'package:lunasea/system/platform.dart';
22-
import 'package:lunasea/widgets/changelog/sheet.dart';
22+
import 'package:lunasea/utils/changelog/sheet.dart';
2323

2424
/// LunaSea Entry Point: Initialize & Run Application
2525
///

lib/modules/settings/routes/system/widgets/build_details.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:lunasea/system/environment.dart';
55
import 'package:lunasea/system/flavor.dart';
66
import 'package:lunasea/system/platform.dart';
77
import 'package:lunasea/vendor.dart';
8-
import 'package:lunasea/widgets/changelog/sheet.dart';
8+
import 'package:lunasea/utils/changelog/sheet.dart';
99
import 'package:lunasea/widgets/ui.dart';
1010

1111
class BuildDetails extends ConsumerStatefulWidget {

lib/system/build.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class LunaBuild {
2121
Future<Tuple2<bool, int?>> isLatestBuildNumber() async {
2222
try {
2323
final latest = await LunaPlatform.current.getLatestBuildNumber();
24-
final current = int.parse(LunaEnvironment.build);
24+
const current = LunaEnvironment.build;
2525
return Tuple2(latest > current, latest);
2626
} catch (error, stack) {
2727
LunaLogger().error(

lib/system/environment.dart

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
import 'package:envify/envify.dart';
1+
class LunaEnvironment {
2+
static const int build = 9999999999;
23

3-
part 'environment.g.dart';
4+
static const String commit = 'master';
45

5-
@Envify(path: '.env')
6-
class LunaEnvironment {
7-
static const flavor = _LunaEnvironment.flavor;
8-
static const commit = _LunaEnvironment.commit;
9-
static const build = _LunaEnvironment.build;
6+
static const String flavor = 'stable';
107
}
File renamed without changes.

lib/widgets/changelog/changelog.dart renamed to lib/utils/changelog/changelog.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:lunasea/vendor.dart';
2-
import 'package:lunasea/widgets/changelog/change.dart';
2+
import 'package:lunasea/utils/changelog/change.dart';
33

44
part 'changelog.g.dart';
55

lib/widgets/changelog/sheet.dart renamed to lib/utils/changelog/sheet.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import 'package:lunasea/extensions/string/string.dart';
44
import 'package:lunasea/system/logger.dart';
55
import 'package:lunasea/utils/links.dart';
66
import 'package:lunasea/vendor.dart';
7-
import 'package:lunasea/widgets/changelog/change.dart';
8-
import 'package:lunasea/widgets/changelog/changelog.dart';
7+
import 'package:lunasea/utils/changelog/change.dart';
8+
import 'package:lunasea/utils/changelog/changelog.dart';
99
import 'package:lunasea/widgets/ui.dart';
1010

1111
class ChangelogSheet extends LunaBottomModalSheet {

macos/Podfile.lock

+6
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ PODS:
111111
- path_provider_macos (0.0.1):
112112
- FlutterMacOS
113113
- PromisesObjC (2.1.0)
114+
- screen_retriever (0.0.1):
115+
- FlutterMacOS
114116
- share_plus_macos (0.0.1):
115117
- FlutterMacOS
116118
- shared_preferences_macos (0.0.1):
@@ -133,6 +135,7 @@ DEPENDENCIES:
133135
- FlutterMacOS (from `Flutter/ephemeral`)
134136
- package_info_plus_macos (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus_macos/macos`)
135137
- path_provider_macos (from `Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos`)
138+
- screen_retriever (from `Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos`)
136139
- share_plus_macos (from `Flutter/ephemeral/.symlinks/plugins/share_plus_macos/macos`)
137140
- shared_preferences_macos (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos`)
138141
- sqflite (from `Flutter/ephemeral/.symlinks/plugins/sqflite/macos`)
@@ -175,6 +178,8 @@ EXTERNAL SOURCES:
175178
:path: Flutter/ephemeral/.symlinks/plugins/package_info_plus_macos/macos
176179
path_provider_macos:
177180
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos
181+
screen_retriever:
182+
:path: Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos
178183
share_plus_macos:
179184
:path: Flutter/ephemeral/.symlinks/plugins/share_plus_macos/macos
180185
shared_preferences_macos:
@@ -214,6 +219,7 @@ SPEC CHECKSUMS:
214219
package_info_plus_macos: f010621b07802a241d96d01876d6705f15e77c1c
215220
path_provider_macos: 3c0c3b4b0d4a76d2bf989a913c2de869c5641a19
216221
PromisesObjC: 99b6f43f9e1044bd87a95a60beff28c2c44ddb72
222+
screen_retriever: 59634572a57080243dd1bf715e55b6c54f241a38
217223
share_plus_macos: 853ee48e7dce06b633998ca0735d482dd671ade4
218224
shared_preferences_macos: a64dc611287ed6cbe28fd1297898db1336975727
219225
sqflite: a5789cceda41d54d23f31d6de539d65bb14100ea

macos/Runner.xcodeproj/project.pbxproj

+31-31
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
/* End PBXAggregateTarget section */
2222

2323
/* Begin PBXBuildFile section */
24+
2F600FE3F62402782192436B /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7DB48EBCA5A47F2E6F79DDFF /* Pods_Runner.framework */; };
2425
335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
2526
33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
2627
33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
2728
33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
2829
33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
29-
55FFADED2933301E97B1BABB /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A30F9665A09254A75E06F9FF /* Pods_Runner.framework */; };
3030
/* End PBXBuildFile section */
3131

3232
/* Begin PBXContainerItemProxy section */
@@ -53,7 +53,7 @@
5353
/* End PBXCopyFilesBuildPhase section */
5454

5555
/* Begin PBXFileReference section */
56-
1097536DBD513F9C322FD573 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
56+
187DB9BA0B8AAA6BED9BF820 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
5757
333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };
5858
335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; };
5959
33CC10ED2044A3C60003C045 /* LunaSea.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LunaSea.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -69,18 +69,18 @@
6969
33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = "<group>"; };
7070
33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = "<group>"; };
7171
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };
72+
7DB48EBCA5A47F2E6F79DDFF /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
73+
840D2EFF54BB8BA5C48160C9 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
7274
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = "<group>"; };
73-
A30F9665A09254A75E06F9FF /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
74-
BBC15298573357D95D4D0A99 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
75-
E6DC3F27087615BE6F68C8AF /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
75+
ECCFC5F4CC999172FEEF8738 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
7676
/* End PBXFileReference section */
7777

7878
/* Begin PBXFrameworksBuildPhase section */
7979
33CC10EA2044A3C60003C045 /* Frameworks */ = {
8080
isa = PBXFrameworksBuildPhase;
8181
buildActionMask = 2147483647;
8282
files = (
83-
55FFADED2933301E97B1BABB /* Pods_Runner.framework in Frameworks */,
83+
2F600FE3F62402782192436B /* Pods_Runner.framework in Frameworks */,
8484
);
8585
runOnlyForDeploymentPostprocessing = 0;
8686
};
@@ -105,7 +105,7 @@
105105
33CEB47122A05771004F2AC0 /* Flutter */,
106106
33CC10EE2044A3C60003C045 /* Products */,
107107
C16DBC6D5885D252E3ED5BAD /* Pods */,
108-
8F5EB1A4A52EE9E8FC5A9A78 /* Frameworks */,
108+
9981D0ECE95A3641B5BDD4CB /* Frameworks */,
109109
);
110110
sourceTree = "<group>";
111111
};
@@ -152,20 +152,20 @@
152152
path = Runner;
153153
sourceTree = "<group>";
154154
};
155-
8F5EB1A4A52EE9E8FC5A9A78 /* Frameworks */ = {
155+
9981D0ECE95A3641B5BDD4CB /* Frameworks */ = {
156156
isa = PBXGroup;
157157
children = (
158-
A30F9665A09254A75E06F9FF /* Pods_Runner.framework */,
158+
7DB48EBCA5A47F2E6F79DDFF /* Pods_Runner.framework */,
159159
);
160160
name = Frameworks;
161161
sourceTree = "<group>";
162162
};
163163
C16DBC6D5885D252E3ED5BAD /* Pods */ = {
164164
isa = PBXGroup;
165165
children = (
166-
E6DC3F27087615BE6F68C8AF /* Pods-Runner.debug.xcconfig */,
167-
BBC15298573357D95D4D0A99 /* Pods-Runner.release.xcconfig */,
168-
1097536DBD513F9C322FD573 /* Pods-Runner.profile.xcconfig */,
166+
ECCFC5F4CC999172FEEF8738 /* Pods-Runner.debug.xcconfig */,
167+
187DB9BA0B8AAA6BED9BF820 /* Pods-Runner.release.xcconfig */,
168+
840D2EFF54BB8BA5C48160C9 /* Pods-Runner.profile.xcconfig */,
169169
);
170170
path = Pods;
171171
sourceTree = "<group>";
@@ -177,14 +177,14 @@
177177
isa = PBXNativeTarget;
178178
buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
179179
buildPhases = (
180-
A5593BAE096AEA0201DAAB81 /* [CP] Check Pods Manifest.lock */,
180+
B8F3EB307248E7051FBCDFB5 /* [CP] Check Pods Manifest.lock */,
181181
33CC10E92044A3C60003C045 /* Sources */,
182182
33CC10EA2044A3C60003C045 /* Frameworks */,
183183
33CC10EB2044A3C60003C045 /* Resources */,
184184
33CC110E2044A8840003C045 /* Bundle Framework */,
185185
3399D490228B24CF009A79C7 /* ShellScript */,
186-
17DFD4E1D82334F1A6A6FCFC /* [CP] Embed Pods Frameworks */,
187-
F6073140124ACCDD312AEF35 /* [CP] Copy Pods Resources */,
186+
2C421D662824C5B857818933 /* [CP] Embed Pods Frameworks */,
187+
55ADDF159E358E6038CD610E /* [CP] Copy Pods Resources */,
188188
);
189189
buildRules = (
190190
);
@@ -253,7 +253,7 @@
253253
/* End PBXResourcesBuildPhase section */
254254

255255
/* Begin PBXShellScriptBuildPhase section */
256-
17DFD4E1D82334F1A6A6FCFC /* [CP] Embed Pods Frameworks */ = {
256+
2C421D662824C5B857818933 /* [CP] Embed Pods Frameworks */ = {
257257
isa = PBXShellScriptBuildPhase;
258258
buildActionMask = 2147483647;
259259
files = (
@@ -307,43 +307,43 @@
307307
shellPath = /bin/sh;
308308
shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
309309
};
310-
A5593BAE096AEA0201DAAB81 /* [CP] Check Pods Manifest.lock */ = {
310+
55ADDF159E358E6038CD610E /* [CP] Copy Pods Resources */ = {
311311
isa = PBXShellScriptBuildPhase;
312312
buildActionMask = 2147483647;
313313
files = (
314314
);
315315
inputFileListPaths = (
316+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
316317
);
317-
inputPaths = (
318-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
319-
"${PODS_ROOT}/Manifest.lock",
320-
);
321-
name = "[CP] Check Pods Manifest.lock";
318+
name = "[CP] Copy Pods Resources";
322319
outputFileListPaths = (
323-
);
324-
outputPaths = (
325-
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
320+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
326321
);
327322
runOnlyForDeploymentPostprocessing = 0;
328323
shellPath = /bin/sh;
329-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
324+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
330325
showEnvVarsInLog = 0;
331326
};
332-
F6073140124ACCDD312AEF35 /* [CP] Copy Pods Resources */ = {
327+
B8F3EB307248E7051FBCDFB5 /* [CP] Check Pods Manifest.lock */ = {
333328
isa = PBXShellScriptBuildPhase;
334329
buildActionMask = 2147483647;
335330
files = (
336331
);
337332
inputFileListPaths = (
338-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
339333
);
340-
name = "[CP] Copy Pods Resources";
334+
inputPaths = (
335+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
336+
"${PODS_ROOT}/Manifest.lock",
337+
);
338+
name = "[CP] Check Pods Manifest.lock";
341339
outputFileListPaths = (
342-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
340+
);
341+
outputPaths = (
342+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
343343
);
344344
runOnlyForDeploymentPostprocessing = 0;
345345
shellPath = /bin/sh;
346-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
346+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
347347
showEnvVarsInLog = 0;
348348
};
349349
/* End PBXShellScriptBuildPhase section */

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@
2121
"fastlane:update:android": "cd android && bundle update",
2222
"fastlane:update:ios": "cd ios && bundle update",
2323
"fastlane:update:macos": "cd macos && bundle update",
24-
"generate": "npm run generate:assets && npm run generate:build_runner && npm run generate:localization",
24+
"generate": "npm run generate:environment && npm run generate:assets && npm run generate:build_runner && npm run generate:localization",
2525
"generate:assets": "dart pub global activate spider && spider build",
2626
"generate:build_runner": "flutter packages pub run build_runner build",
27+
"generate:environment": "flutter pub run environment_config:generate",
2728
"generate:localization": "dart ./scripts/generate_localization.dart",
28-
"git:ignore": "npm run git:ignore:environment && npm run git:ignore:firebase",
29-
"git:ignore:environment": "git update-index --skip-worktree .env",
30-
"git:ignore:firebase": "git update-index --skip-worktree lib/firebase/options.dart",
29+
"git:ignore": "git update-index --skip-worktree lib/firebase/options.dart",
3130
"prepare": "husky install && npm run git:ignore && flutter pub get",
3231
"prepare:keychain": "npm run prepare:keychain:ios && npm run prepare:keychain:macos",
3332
"prepare:keychain:ios": "cd ios && bundle exec fastlane keychain_create && bundle exec fastlane keychain_setup",

0 commit comments

Comments
 (0)