mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00

* 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>
17 lines
417 B
Dart
17 lines
417 B
Dart
import 'package:spotube/collections/env.dart';
|
|
import 'package:spotube/models/matched_track.dart';
|
|
import 'package:supabase/supabase.dart';
|
|
|
|
class SupabaseService {
|
|
static final api = SupabaseClient(
|
|
Env.supabaseUrl ?? "",
|
|
Env.supabaseAnonKey ?? "",
|
|
);
|
|
|
|
Future<void> insertTrack(MatchedTrack track) async {
|
|
await api.from("tracks").insert(track.toJson());
|
|
}
|
|
}
|
|
|
|
final supabase = SupabaseService();
|