Skip to content

Commit

Permalink
chore: build with proper api url
Browse files Browse the repository at this point in the history
  • Loading branch information
d-reader-luka committed May 7, 2024
1 parent b94e8ca commit e7a2d65
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ class Environment extends _$Environment {

void updateForChangeNetwork({
required String cluster,
required String apiUrl,
Ed25519HDPublicKey? publicKey,
}) {
state = state.copyWithNullables(
Expand Down

0 comments on commit e7a2d65

Please sign in to comment.