I am unable to increment the build number of my Flutter app automatically when I deploy it using CodeMagic (https://codemagic.io/) which is owned by Nevercode.
I followed the steps described on this page: https://developer.nevercode.io/docs/incrementing-ios-app-version.
The script they suggest is this:
DSYM_INFO_PLIST="${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Info.plist"
buildNumber=$NEVERCODE_BUILD_NUMBER
stringLength=${#buildNumber}
if [ $stringLength -ne 0 ]; then
echo "Updating build number to $buildNumber"
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"
if [ -f "$DSYM_INFO_PLIST" ]; then
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $BUILD_NUMBER" "$DSYM_INFO_PLIST"
fi
else
echo …Run Code Online (Sandbox Code Playgroud) 我可以使用 Mailer 包发送简单的 HTML 电子邮件(https://pub.dartlang.org/packages/mailer)。正如他们的示例所示,"<h1>Test</h1>\\n<p>Hey! Here\'s some HTML content</p>"它作为简单的 HTML 文本工作:
final message = new Message()\n..from = new Address(username, \'Your name\')\n..recipients.add(\'destination@example.com\')\n..ccRecipients.addAll([\'destCc1@example.com\', \'destCc2@example.com\'])\n..bccRecipients.add(new Address(\'bccAddress@example.com\'))\n..subject = \'Test Dart Mailer library :: :: ${new DateTime.now()}\'\n..text = \'This is the plain text.\\nThis is line 2 of the text part.\'\n..html = "<h1>Test</h1>\\n<p>Hey! Here\'s some HTML content</p>";\nRun Code Online (Sandbox Code Playgroud)\n\n但是如果我想创建一封复杂的 HTML 电子邮件怎么办?例如,stripo.email 提供带有 HTML 代码的模板。如何将此 HTML 代码作为..html该new Message()方法参数的字符串传递?
以下是 stripo.email 网站为其模板创建的 HTML 代码:
\n\n<!DOCTYPE …Run Code Online (Sandbox Code Playgroud)