π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use appFlavor instead of app.flavor dart-define in auth
Manav Rathi388ceae3b725
diff --git a/.github/workflows/auth-build.yml b/.github/workflows/auth-build.ymlindex ab49ca2a58..ac006dd134 100644--- a/.github/workflows/auth-build.yml+++ b/.github/workflows/auth-build.yml@@ -151,7 +151,7 @@ jobs:- name: Build PlayStore AABrun: |- flutter build appbundle --build-name="${RELEASE_VERSION}" --build-number="${BUILD_NUMBER}" --release --flavor playstore --dart-define=app.flavor=playstore --dart-define=cronetHttpNoPlay=true+ flutter build appbundle --build-name="${RELEASE_VERSION}" --build-number="${BUILD_NUMBER}" --release --flavor playstore --dart-define=cronetHttpNoPlay=trueenv:SIGNING_KEY_PATH: ${{ runner.temp }}/ente_auth_key.jksSIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS_AUTH }}diff --git a/mobile/apps/auth/lib/services/update_service.dart b/mobile/apps/auth/lib/services/update_service.dartindex a7069b1041..9f8ba3445c 100644--- a/mobile/apps/auth/lib/services/update_service.dart+++ b/mobile/apps/auth/lib/services/update_service.dart@@ -5,6 +5,7 @@ import 'package:ente_auth/core/constants.dart';import 'package:ente_auth/services/notification_service.dart';import 'package:ente_network/network.dart';import 'package:ente_pure_utils/ente_pure_utils.dart';+import 'package:flutter/services.dart' show appFlavor;import 'package:logging/logging.dart';import 'package:package_info_plus/package_info_plus.dart';import 'package:shared_preferences/shared_preferences.dart';@@ -16,7 +17,6 @@ class UpdateService {static final UpdateService instance = UpdateService._privateConstructor();static const kUpdateAvailableShownTimeKey = "update_available_shown_time_key";- static const String flavor = String.fromEnvironment('app.flavor');LatestVersionInfo? _latestVersion;final _logger = Logger("UpdateService");@@ -100,7 +100,7 @@ class UpdateService {if (Platform.isAndroid) {// Note: in auth, currently we don't have a way to identify if the// app was installed from play store, f-droid or github based on pkg name- if (flavor == "playstore") {+ if (appFlavor == "playstore") {return const Tuple2("Play Store", "market://details?id=io.ente.auth");}return const Tuple2(@@ -137,9 +137,7 @@ class UpdateService {}bool isIndependent() {- return flavor == "independent" ||- _packageInfo.packageName.endsWith("independent") ||- PlatformDetector.isDesktop();+ return appFlavor == "independent" || PlatformDetector.isDesktop();}}