Code Monkey home page Code Monkey logo

my_flutter's Introduction

mowork app for flutter

  • 生成app图标

flutter pub run flutter_launcher_icons:main

  • 打包apk(android,不要使用,安卓需要区分环境,执行最下面的命令)

flutter build apk flutter build apk --target-platform android-arm64

  • 打包ipa(ios -> app-store包,上架应用商店)

flutter build ipa --release

  • 打包ipa(ios -> ad-hoc包,给测试机型使用)

flutter build ipa --release --export-method=ad-hoc

  • 安装打包好的app

flutter install

  • 在谷歌浏览器上运行

flutter run -d chrome --web-renderer html --flavor prod -t lib/main_prod.dart

  • 打包和安装指定环境的app(仅限android)

flutter build apk --flavor dev -t lib/main_dev.dart --target-platform android-arm64 flutter install --use-application-binary build/app/outputs/flutter-apk/app-dev-release.apk

flutter build apk --flavor prod -t lib/main_prod.dart --target-platform android-arm64 flutter install --use-application-binary build/app/outputs/flutter-apk/app-prod-release.apk

  • 运行代码生成器

flutter pub run build_runner build

  • 添加指定平台

flutter create --platforms=windows,macos,linux,web

  • android minsdk>23需要手动在android下设置以下属性才能压缩安装包
packagingOptions {
        jniLibs {
            useLegacyPackaging = true
        }
    }
```.

my_flutter's People

Contributors

luoyi58624 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.