build: add sentry dsn

This commit is contained in:
problematicconsumer
2023-09-17 01:13:01 +03:30
parent f3c0978136
commit 76524d0dc8
2 changed files with 4 additions and 28 deletions

View File

@@ -21,7 +21,8 @@ else
FLAVOR=dev
endif
TARGET=lib/main_$(FLAVOR).dart
DISTRIBUTOR_ARGS=--skip-clean --build-target $(TARGET)
BUILD_ARGS=--dart-define sentry_dsn=$(SENTRY_DSN)
DISTRIBUTOR_ARGS=--skip-clean --build-target $(TARGET) --build-dart-define sentry_dsn=$(SENTRY_DSN)
get:
flutter pub get
@@ -35,10 +36,10 @@ translate:
android-release: android-apk-release
android-apk-release:
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi --target $(TARGET)
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi --target $(TARGET) $(BUILD_ARGS)
android-aab-release:
flutter build appbundle --target $(TARGET) --dart-define release=google-play
flutter build appbundle --target $(TARGET) $(BUILD_ARGS) --dart-define release=google-play
windows-release:
flutter_distributor package --platform windows --targets exe $(DISTRIBUTOR_ARGS)
@@ -52,7 +53,6 @@ macos-release:
ios-release: #not tested
flutter_distributor package --platform ios --targets ipa --build-export-options-plist ios/exportOptions.plist $(DISTRIBUTOR_ARGS)
android-libs:
mkdir -p $(ANDROID_OUT)
curl -L $(CORE_URL)/$(CORE_NAME)-android.aar.gz | gunzip > $(ANDROID_OUT)/libcore.aar