Something new happens
- Download
flutter
from official site. - Put in
/Users/emanuel/tools
folder (or any other desired folder). - Add to your
~/.zshrc
the commandexport PATH="$PATH:/Users/emanuel/tools/flutter/bin"
.
- Install android studio
- Go to android studio. Preferences | Appearance & Behavior | System Settings | Android SDK. in SDK Tools tab, install Andriod SDK Command-line tools.
- Run
flutter doctor --android-licenses
- Install Xcode from app store.
- Run the following commands in the hidush working directory
curl -sL https://firebase.tools | bash
dart pub global activate flutterfire_cli
- Add
export PATH="$PATH":"$HOME/.pub-cache/bin"
to~/.zshrc
- Run
flutterfire configure
- Make sure to move
firebase_options.dart
tolib/common
- Integrate google play console with firebase (App integrity SHA1/SHA256)
- Make sure to update
build.gradle
based on firebaseSDK instructions
- Run
./gradlew signingReport
fromandriod
directory and copy the SHA1 to firestorm. - In the end make sure to do
flutter clean
Run the following command in the directory that contains the main.py
file
gcloud beta functions deploy cms-upsert-hidush \
--gen2 \
--runtime python39 \
--trigger-http \
--entry-point main_upsert_hidush \
--memory 128Mi \
--set-env-vars CMS_API_KEY=XXXXXXX \
--source . \
--allow-unauthenticated
gcloud beta functions describe cms-upsert-hidush --gen2
Run flutter run --release
Follow this guide https://docs.flutter.dev/deployment/android#signing-the-app and create key.properties
etc.