diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index fd291367..2aeef03a 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -119,7 +119,7 @@ jobs: run: flutter test - name: Build apk - run: flutter build apk --release + run: flutter build apk --release --dart-define=HIDE_PLANS=false - name: Rename and move apk run: | diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index 9340117d..7dff33a3 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -20,7 +20,13 @@ platform :ios do lane :beta do match(type: "appstore", readonly: true) increment_build_number(xcodeproj: "Runner.xcodeproj") - build_app(workspace: "Runner.xcworkspace", scheme: "Runner", export_method: "app-store", codesigning_identity: "Apple Distribution") + build_app( + workspace: "Runner.xcworkspace", + scheme: "Runner", + export_method: "app-store", + codesigning_identity: "Apple Distribution", + build_args: "--dart-define=HIDE_PLANS=true" + ) app_store_connect_api_key(key_id: "325JS9JCZH", issuer_id: "dfa27d1d-2bb8-4d4d-847e-0b32f9b880b3", key_filepath: "./AuthKey.p8") upload_to_testflight end diff --git a/lib/core/const.dart b/lib/core/const.dart index f22f79aa..ad841863 100644 --- a/lib/core/const.dart +++ b/lib/core/const.dart @@ -1,5 +1,5 @@ String baseUrl = 'https://eatvio.ru'; -bool hidePlans = true; +bool hidePlans = const bool.fromEnvironment('HIDE_PLANS', defaultValue: false); const List durationValues = [7, 14, 21];