From e85802f15f469a9117597c5c9a6b2c382f7ea62e Mon Sep 17 00:00:00 2001 From: Raz Levi Date: Mon, 20 Jun 2022 15:07:48 +0300 Subject: [PATCH] Update server domain --- .packages | 2 +- lib/global/client_requests.dart | 2 +- lib/global/config.dart | 4 ++-- pubspec.yaml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.packages b/.packages index 2273139..adfc3dd 100644 --- a/.packages +++ b/.packages @@ -3,7 +3,7 @@ # # For more info see: https://dart.dev/go/dot-packages-deprecation # -# Generated by pub on 2022-06-15 20:02:30.432352. +# Generated by pub on 2022-06-20 14:55:20.394294. another_flushbar:file:///Users/raz/flutter/.pub-cache/hosted/pub.dartlang.org/another_flushbar-1.10.29/lib/ archive:file:///Users/raz/flutter/.pub-cache/hosted/pub.dartlang.org/archive-3.3.0/lib/ args:file:///Users/raz/flutter/.pub-cache/hosted/pub.dartlang.org/args-2.3.1/lib/ diff --git a/lib/global/client_requests.dart b/lib/global/client_requests.dart index 0b22226..2ab0115 100644 --- a/lib/global/client_requests.dart +++ b/lib/global/client_requests.dart @@ -52,7 +52,7 @@ class ClientRequests extends GetConnect { } Future> getSuggestions({required String pattern}) async { - Response response = await get('http://${ProjectConfig.serverAddress}/get_suggestions?name=${pattern.replaceAll(" ", "_")}'); + Response response = await get('http://${ProjectConfig.serverAddress}/get_suggestions?name=$pattern'); SortedList suggestions = getSuggestionsList; if (_isResponseSuccess(response)) { diff --git a/lib/global/config.dart b/lib/global/config.dart index 81c3d82..58ff001 100644 --- a/lib/global/config.dart +++ b/lib/global/config.dart @@ -6,11 +6,11 @@ class ProjectConfig { // Project Config static const String projectName = "WikiPo"; - static const String projectVersion = "v2.0.1"; + static const String projectVersion = "v2.0.2"; static const String googlePlayUrl = "https://play.google.com/store/apps/details?id=com.technion.android.wikiplaces.wiki_places"; static const String appEmail = "appbalanceme@gmail.com"; static const String appEmailPassword = "uruevumwrgrkkjhb"; // Backend Config - static const String serverAddress = "132.69.8.15:80"; + static const String serverAddress = "wikipo.cs.technion.ac.il"; } diff --git a/pubspec.yaml b/pubspec.yaml index 7ad9270..262986a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: wiki_places description: WikiPo app. publish_to: 'none' -version: 2.0.1+1 +version: 2.0.2+1 environment: sdk: ">=2.15.1 <3.0.0"