Allow importing food JSON via share intent / deep link

Aperta
#407 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, dart, flutter, json
Ambito
backend, mobile

Direzione di ricerca

Start by finding the existing routine share intent and import handling, then compare its accepted JSON format with the example food payload in the issue. Add food JSON recognition through the existing intent or a deep link. Done means sharing the example food JSON opens GymMane and imports the food without manual pasting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Hey, great app. I use it for calorie tracking. Since there's no barcode scanner, I built a small scanner app for myself that looks up the nutrition values and generates the food JSON that GymMane already understands.

The problem is the last step: I have to copy the JSON, open GymMane, go to the right tab and paste it in by hand. Sharing the JSON to GymMane works for routines, but not for food. A shared food JSON isn't recognized.

Would it be possible to handle the food JSON in the existing share intent (the same way routines are imported), or to add a deep link for it? Either would let my scanner send a food to GymMane in one tap, without a manual paste.

Here's an example of what my scanner generates:

{
  "gymmane": "gymmane-food",
  "v": 1,
  "food": {
    "name": "Greek yogurt 2%",
    "serving_name": "1 pot",
    "grams": 170,
    "liquid": false,
    "per100": {"kcal": 73, "protein": 9.9, "carbs": 3.9, "fat": 2, "sugar": 3.6, "saturated": 1.3, "sodium": 36}
  }
}

If the format I'm using differs from your current one in any way, tell me and I'll adjust my scanner.

Lingua principale
Dart
Stelle
844
Fork
98
Merge medio
23h 57m
PR unite (30g)
13

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di InlitX/GymMane

Tutte le issue di InlitX/GymMane

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.