spotube/lib/collections/env.dart
Kingkor Roy Tirtho 7aff0d3f1e
cd: Armbuild Circleci project setup (#723)
* chore: fill missing translations

* chore: vscode filenesting

* docs: Add meenbeese  (#713)

* CircleCI Commit

* cd: updated circle ci build config

* cd: use custom flutter installation

* cd: use ubuntu 22.04

* cd: fix project var syntax

* cd: directly echo secrets to .env file

* cd: export bash env

* cd: they I'm stupid

* cd: ugghh breaking flutter changes on every major version

* cd: add other empty keys to .env

* cd: works!!!

* cd: store artifacts

* cd: add other package formats in circle ci build

* cd: add pub cache path

* cd: remove dart run from flutter_distributor

* cd: add appimage installer

* cd: sudo

* cd: appimagetool in path

* cd: use aarch64 binary of appimagetool

* cd: add rpmbuild deps

* cd: fix rpm arch

* cd: add github release upload capability

* cd: enable github creds context

* cd: remove token

* cd: remove parallelism

* cd: why typo??!

* cd: add github action to trigger Circle CI pipeline

* cd: trigger CCI using curl

* cd: remove quotes from bool field

* cd: ain't no

* cd: poor choice

---------

Co-authored-by: meenbeese <meenbeese@tutanota.com>
2023-09-15 22:35:09 +06:00

29 lines
903 B
Dart

import 'package:envied/envied.dart';
part 'env.g.dart';
@Envied(obfuscate: true, requireEnvFile: true, path: ".env")
abstract class Env {
@EnviedField(varName: 'SUPABASE_URL')
static final String? supabaseUrl = _Env.supabaseUrl;
@EnviedField(varName: 'SUPABASE_API_KEY')
static final String? supabaseAnonKey = _Env.supabaseAnonKey;
@EnviedField(varName: 'SPOTIFY_SECRETS')
static final String rawSpotifySecrets = _Env.rawSpotifySecrets;
static final spotifySecrets = rawSpotifySecrets.split(',').map((e) {
final secrets = e.trim().split(":").map((e) => e.trim());
return {
"clientId": secrets.first,
"clientSecret": secrets.last,
};
}).toList();
@EnviedField(varName: 'ENABLE_UPDATE_CHECK', defaultValue: "1")
static final String _enableUpdateChecker = _Env._enableUpdateChecker;
static bool get enableUpdateChecker => _enableUpdateChecker == "1";
}