spotube/lib/services/supabase.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

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();