build: add sentry dsn
This commit is contained in:
8
Makefile
8
Makefile
@@ -21,7 +21,8 @@ else
|
|||||||
FLAVOR=dev
|
FLAVOR=dev
|
||||||
endif
|
endif
|
||||||
TARGET=lib/main_$(FLAVOR).dart
|
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:
|
get:
|
||||||
flutter pub get
|
flutter pub get
|
||||||
@@ -35,10 +36,10 @@ translate:
|
|||||||
android-release: android-apk-release
|
android-release: android-apk-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:
|
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:
|
windows-release:
|
||||||
flutter_distributor package --platform windows --targets exe $(DISTRIBUTOR_ARGS)
|
flutter_distributor package --platform windows --targets exe $(DISTRIBUTOR_ARGS)
|
||||||
@@ -52,7 +53,6 @@ macos-release:
|
|||||||
ios-release: #not tested
|
ios-release: #not tested
|
||||||
flutter_distributor package --platform ios --targets ipa --build-export-options-plist ios/exportOptions.plist $(DISTRIBUTOR_ARGS)
|
flutter_distributor package --platform ios --targets ipa --build-export-options-plist ios/exportOptions.plist $(DISTRIBUTOR_ARGS)
|
||||||
|
|
||||||
|
|
||||||
android-libs:
|
android-libs:
|
||||||
mkdir -p $(ANDROID_OUT)
|
mkdir -p $(ANDROID_OUT)
|
||||||
curl -L $(CORE_URL)/$(CORE_NAME)-android.aar.gz | gunzip > $(ANDROID_OUT)/libcore.aar
|
curl -L $(CORE_URL)/$(CORE_NAME)-android.aar.gz | gunzip > $(ANDROID_OUT)/libcore.aar
|
||||||
|
|||||||
@@ -244,7 +244,6 @@
|
|||||||
33CC110E2044A8840003C045 /* Bundle Framework */,
|
33CC110E2044A8840003C045 /* Bundle Framework */,
|
||||||
3399D490228B24CF009A79C7 /* ShellScript */,
|
3399D490228B24CF009A79C7 /* ShellScript */,
|
||||||
DDB714AFDEF721265C0C3AF7 /* [CP] Embed Pods Frameworks */,
|
DDB714AFDEF721265C0C3AF7 /* [CP] Embed Pods Frameworks */,
|
||||||
D252A7A96F637452F3C3E2BE /* [firebase_crashlytics] Crashlytics Upload Symbols */,
|
|
||||||
);
|
);
|
||||||
buildRules = (
|
buildRules = (
|
||||||
);
|
);
|
||||||
@@ -408,29 +407,6 @@
|
|||||||
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||||
showEnvVarsInLog = 0;
|
showEnvVarsInLog = 0;
|
||||||
};
|
};
|
||||||
D252A7A96F637452F3C3E2BE /* [firebase_crashlytics] Crashlytics Upload Symbols */ = {
|
|
||||||
isa = PBXShellScriptBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
inputFileListPaths = (
|
|
||||||
);
|
|
||||||
inputPaths = (
|
|
||||||
"\"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}\"",
|
|
||||||
"\"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/\"",
|
|
||||||
"\"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Info.plist\"",
|
|
||||||
"\"$(BUILT_PRODUCTS_DIR)/$(EXECUTABLE_PATH)\"",
|
|
||||||
"\"$(PROJECT_DIR)/firebase_app_id_file.json\"",
|
|
||||||
);
|
|
||||||
name = "[firebase_crashlytics] Crashlytics Upload Symbols";
|
|
||||||
outputFileListPaths = (
|
|
||||||
);
|
|
||||||
outputPaths = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
shellPath = /bin/sh;
|
|
||||||
shellScript = "\"$PODS_ROOT/FirebaseCrashlytics/upload-symbols\" --flutter-project \"$PROJECT_DIR/firebase_app_id_file.json\" ";
|
|
||||||
};
|
|
||||||
DDB714AFDEF721265C0C3AF7 /* [CP] Embed Pods Frameworks */ = {
|
DDB714AFDEF721265C0C3AF7 /* [CP] Embed Pods Frameworks */ = {
|
||||||
isa = PBXShellScriptBuildPhase;
|
isa = PBXShellScriptBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
|
|||||||
Reference in New Issue
Block a user