Coder Social home page Coder Social logo

evgenii-shcherbakov / safe Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7.06 MB

Flutter app for store secure info

Home Page: https://evgenii-shcherbakov.github.io/safe

License: MIT License

Kotlin 0.33% Swift 1.11% Objective-C 0.10% Dart 87.12% HTML 4.97% Shell 2.65% Ruby 3.72%
dart firebase flutter

safe's Introduction

safe

Flutter app

Cross-platform app for store passwords

Tech stack

  • Dart
  • Flutter
  • Provider
  • Injectable
  • Firebase

Repository secrets

Android signing

  • KEYSTORE_GIT_REPOSITORY name of git repository with keystore
  • KEYSTORE_ACCESS_TOKEN token for get access to keystore repository
  • KEYSTORE_PASSWORD password of used keystore
  • RELEASE_SIGN_KEY_ALIAS used alias for sign app using keystore
  • RELEASE_SIGN_KEY_PASSWORD used password for sign app using keystore

Build arguments

  • BUILD_ARGUMENTS_ANDROID_LINK
  • BUILD_ARGUMENTS_WEB_LINK
  • BUILD_ARGUMENTS_IOS_LINK
  • BUILD_ARGUMENTS_MACOS_LINK

Environment variables

Android (build)

  • FIREBASE_API_KEY
  • FIREBASE_APP_ID
  • FIREBASE_MESSAGING_SENDER_ID
  • FIREBASE_PROJECT_ID
  • FIREBASE_STORAGE_BUCKET

Android (signing)

  • KEYSTORE_GIT_REPOSITORY (optional)
  • KEYSTORE_ACCESS_TOKEN (optional)
  • KEYSTORE_PASSWORD (optional)
  • RELEASE_SIGN_KEY_ALIAS (optional)
  • RELEASE_SIGN_KEY_PASSWORD (optional)

Web (build)

  • FIREBASE_API_KEY
  • FIREBASE_APP_ID
  • FIREBASE_MESSAGING_SENDER_ID
  • FIREBASE_AUTH_DOMAIN
  • FIREBASE_PROJECT_ID
  • FIREBASE_STORAGE_BUCKET

IOS & MacOS (build)

  • FIREBASE_API_KEY
  • FIREBASE_APP_ID
  • FIREBASE_MESSAGING_SENDER_ID
  • FIREBASE_PROJECT_ID
  • FIREBASE_STORAGE_BUCKET
  • FIREBASE_IOS_CLIENT_ID
  • FIREBASE_IOS_BUNDLE_ID

Load project

git clone [email protected]:IIPEKOLICT/safe.git
cd safe

Update DI dependencies with active watcher (needed Flutter 3+)

cd frontend
flutter pub get
flutter packages pub run build_runner watch --delete-conflicting-outputs

Update DI dependencies (needed Flutter 3+)

cd frontend
flutter pub get
flutter packages pub run build_runner build --delete-conflicting-outputs

Build web-version (needed Flutter 3+)

cd frontend
flutter pub get
flutter packages pub run build_runner build --delete-conflicting-outputs
flutter build web --release --base-href "/$BASE_URL/" \
--dart-define=FIREBASE_API_KEY="$FIREBASE_API_KEY" \
--dart-define=FIREBASE_APP_ID="$FIREBASE_APP_ID" \
--dart-define=FIREBASE_MESSAGING_SENDER_ID="$FIREBASE_MESSAGING_SENDER_ID" \
--dart-define=FIREBASE_AUTH_DOMAIN="$FIREBASE_AUTH_DOMAIN" \
--dart-define=FIREBASE_PROJECT_ID="$FIREBASE_PROJECT_ID" \
--dart-define=FIREBASE_STORAGE_BUCKET="$FIREBASE_STORAGE_BUCKET" /

You can find generated bundle in build/web location

Build android-version (needed Flutter 3+)

cd frontend
flutter pub get
flutter packages pub run build_runner build --delete-conflicting-outputs
flutter build apk \
--dart-define=FIREBASE_API_KEY="$FIREBASE_API_KEY" \
--dart-define=FIREBASE_APP_ID="$FIREBASE_APP_ID" \
--dart-define=FIREBASE_MESSAGING_SENDER_ID="$FIREBASE_MESSAGING_SENDER_ID" \
--dart-define=FIREBASE_PROJECT_ID="$FIREBASE_PROJECT_ID" \
--dart-define=FIREBASE_STORAGE_BUCKET="$FIREBASE_STORAGE_BUCKET" /
flutter build appbundle \
--dart-define=FIREBASE_API_KEY="$FIREBASE_API_KEY" \
--dart-define=FIREBASE_APP_ID="$FIREBASE_APP_ID" \
--dart-define=FIREBASE_MESSAGING_SENDER_ID="$FIREBASE_MESSAGING_SENDER_ID" \
--dart-define=FIREBASE_PROJECT_ID="$FIREBASE_PROJECT_ID" \
--dart-define=FIREBASE_STORAGE_BUCKET="$FIREBASE_STORAGE_BUCKET" /

You can find:

  • generated APK file in build/app/outputs/flutter-apk/app-release.apk location
  • generated AAB file in build/app/outputs/bundle/release/app-release.aab location

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.