Skip to content

Commit

Permalink
release v1.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dewmal committed Mar 20, 2020
1 parent d2e0f30 commit f602058
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/constants.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
final bool debugRelease = true;
3 changes: 1 addition & 2 deletions lib/networking/api_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:async';
import 'dart:convert';

import 'package:http/http.dart' as http;
import 'package:selftrackingapp/constants.dart';
import 'package:selftrackingapp/models/news_article.dart';
import 'package:selftrackingapp/models/reported_case.dart';
import 'package:shared_preferences/shared_preferences.dart';
Expand All @@ -13,8 +14,6 @@ class ApiClient {
// final String _baseUrl = 'https://api.covid-19.health.gov.lk';
final String _baseUrl;

static final bool debugRelease = true;

ApiClient()
: _baseUrl = debugRelease
? 'http://covid19.egreen.io:8000'
Expand Down
4 changes: 3 additions & 1 deletion lib/page/screen/root_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:firebase_messaging/firebase_messaging.dart';
import 'package:flutter/material.dart';
import 'package:package_info/package_info.dart';
import 'package:provider/provider.dart';
import 'package:selftrackingapp/constants.dart';
import 'package:selftrackingapp/models/news_article.dart';
import 'package:selftrackingapp/networking/api_client.dart';
import 'package:selftrackingapp/notifiers/registered_cases_model.dart';
Expand Down Expand Up @@ -46,7 +47,8 @@ class _RootScreenState extends State<RootScreen> {
void initState() {
super.initState();
_configureFCM();
_messaging.subscribeToTopic("mobile_message");
_messaging.subscribeToTopic(
debugRelease ? "mobile_message_test" : "mobile_message");

PackageInfo.fromPlatform().then((PackageInfo packageInfo) {
var name = packageInfo.appName;
Expand Down

0 comments on commit f602058

Please sign in to comment.