Skip to content

Update settings.gradle #4

Update settings.gradle

Update settings.gradle #4

Workflow file for this run

name: Build and upload APK
on:
push:
branches:
- main
jobs:
build:
name: Build and Upload to release
permissions:
contents: write
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '21'
- name: Create .env File
run: |
echo "endpoint=$ENDPOINT" > .env
echo "projectId=${{secrets.PROJECTID}}" >> .env
echo "databaseId=${{secrets.DATABASEID}}" >> .env
echo "userCollection=${{secrets.USERCOLLECTION}}" >> .env
echo "tweetCollection=${{secrets.TWEETCOLLECTION}}" >> .env
echo "notificationCollections=${{secrets.NOTIFICATIONCOLLECTIONS}}" >> .env
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.3'
channel: 'stable'
- name: verify flutter version
run: flutter --version
- name: Install dependencies
run: flutter pub get
- name: Build APK and ios
run: flutter build apk --release --split-per-abi
- run: |
flutter build ios --no-codesign
cd build/ios/iphoneos
mkdir Payload
cd Payload
ln -s ../Runner.app
cd ..
zip -r app.ipa Payload