小编Hen*_*nry的帖子

How to increment build number of Flutter IOS app when deploying with CodeMagic

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)

continuous-integration app-store build-numbers ios flutter

9
推荐指数
2
解决办法
4822
查看次数

如何使用 Flutter Mailer 包发送复杂的电子邮件

我可以使用 Mailer 包发送简单的 HTML 电子邮件(https://pub.dartlang.org/packages/mailer)。正如他们的示例所示,"<h1>Test</h1>\\n<p>Hey! Here\'s some HTML content</p>"它作为简单的 HTML 文本工作:

\n\n
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>";\n
Run Code Online (Sandbox Code Playgroud)\n\n

但是如果我想创建一封复杂的 HTML 电子邮件怎么办?例如,stripo.email 提供带有 HTML 代码的模板。如何将此 HTML 代码作为..htmlnew Message()方法参数的字符串传递?

\n\n

以下是 stripo.email 网站为其模板创建的 HTML 代码:

\n\n

html email mailer dart flutter

5
推荐指数
1
解决办法
5364
查看次数