diff --git a/Makefile b/Makefile index c1089c57..1aef7a69 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ all: build-dev build-prod build-prod-apk build-dev: flutter clean && \ - flutter build apk --split-per-abi --release --dart-define=apiUrl=$(API_URL_DEV) --dart-define=apiUrlDevnet=$(API_URL_DEV_DEVNET) --dart-define=sentryDsn=${sentryDsn} --flavor dev --target lib/main_dev.dart && \ + flutter build apk --split-per-abi --release --dart-define=apiUrl=$(API_URL_DEV_DEVNET) --dart-define=apiUrlDevnet=$(API_URL_DEV_DEVNET) --dart-define=sentryDsn=${sentryDsn} --flavor dev --target lib/main_dev.dart && \ mv ./build/app/outputs/flutter-apk/app-armeabi-v7a-dev-release.apk ./apks/dReader-dev.apk build-prod: diff --git a/lib/features/settings/presentation/providers/change_network.dart b/lib/features/settings/presentation/providers/change_network.dart index ae8a6128..35658110 100644 --- a/lib/features/settings/presentation/providers/change_network.dart +++ b/lib/features/settings/presentation/providers/change_network.dart @@ -48,7 +48,6 @@ class ChangeNetworkController extends _$ChangeNetworkController { final envNotifier = ref.read(environmentProvider.notifier); envNotifier.updateForChangeNetwork( cluster: cluster, - apiUrl: isDevnetCluster ? Config.apiUrlDevnet : Config.apiUrl, ); if (localStoreData != null) { bool isSuccessful = diff --git a/lib/shared/domain/providers/environment/environment_notifier.dart b/lib/shared/domain/providers/environment/environment_notifier.dart index 57b73fcc..60caeb53 100644 --- a/lib/shared/domain/providers/environment/environment_notifier.dart +++ b/lib/shared/domain/providers/environment/environment_notifier.dart @@ -113,7 +113,6 @@ class Environment extends _$Environment { void updateForChangeNetwork({ required String cluster, - required String apiUrl, Ed25519HDPublicKey? publicKey, }) { state = state.copyWithNullables(