Skip to content

Remove platform widgets #356

Remove platform widgets

Remove platform widgets #356

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Flutter
on:
push:
pull_request:
jobs:
build_ipa:
name: Build iOS
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
architecture: x64
- run: echo "${{ secrets.ENV_FILE }}" > .env
- run: dart pub get
- run: dart run build_runner build
- run: flutter build ios --release --no-codesign
- run: mkdir Payload
- run: cp -r build/ios/iphoneos/Runner.app Payload
- run: zip -r -X forest_park_reports.ipa Payload
- run: ls
- uses: actions/upload-artifact@v3
with:
name: forest_park_reports.ipa
path: forest_park_reports.ipa
build_apk:
name: Build Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
architecture: x64
- run: git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.10.6-x64
- run: echo "${{ secrets.ENV_FILE }}" > .env
- run: echo "${{ secrets.KEY_PROPERTIES_FILE }}" > android/key.properties
- run: echo "${{ secrets.TRILLIUM_KEYSTORE }}" | base64 --decode > android/trillium-keystore.jks
- run: dart pub get
- run: dart run build_runner build
- run: flutter build apk
- run: mv build/app/outputs/flutter-apk/app-release.apk forest_park_reports.apk
- run: flutter build appbundle
- run: mv build/app/outputs/bundle/release/app-release.aab forest_park_reports.aab
- uses: actions/upload-artifact@v3
with:
name: forest_park_reports.apk
path: forest_park_reports.apk
- uses: actions/upload-artifact@v3
with:
name: forest_park_reports.aab
path: forest_park_reports.aab