Skip to content

Commit

Permalink
🚀 Deploy 1.2.1-web+10
Browse files Browse the repository at this point in the history
⬆️ Upgrade dependencies major version
🚚 Change MultiProvider to ChangeNotifierProvider
🚚 Replaced release notes with GitHub link
  • Loading branch information
iqfareez committed May 23, 2021
1 parent c9ed3c7 commit b7b8c4b
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 72 deletions.
2 changes: 0 additions & 2 deletions ios/Runner/GeneratedPluginRegistrant.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Generated file. Do not edit.
//

// clang-format off

#ifndef GeneratedPluginRegistrant_h
#define GeneratedPluginRegistrant_h

Expand Down
2 changes: 0 additions & 2 deletions ios/Runner/GeneratedPluginRegistrant.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Generated file. Do not edit.
//

// clang-format off

#import "GeneratedPluginRegistrant.h"

#if __has_include(<fluttertoast/FluttertoastPlugin.h>)
Expand Down
4 changes: 2 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
ThemeController.to.getThemeModeFromPreferences();
return MultiProvider(
providers: [ChangeNotifierProvider(create: (_) => SettingProvider())],
return ChangeNotifierProvider(
create: (context) => SettingProvider(),
child: GetMaterialApp(
title: 'Malaysia Prayer Time',
theme: ThemeData.light().copyWith(
Expand Down
2 changes: 1 addition & 1 deletion lib/networking/ApiProvider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:http/http.dart' as http;
import 'CustomException.dart';

class ApiProvider {
Future<dynamic> get(dynamic url) async {
Future<dynamic> get(Uri url) async {
var responseJson;
try {
final response = await http.get(url);
Expand Down
6 changes: 3 additions & 3 deletions lib/repository/prayerTime_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ class AzanTimesTodayRepository {
ApiProvider _provider = ApiProvider();

Future<Mpti906PrayerModel> fetchAzanMptMonth(String location) async {
String url = 'https://mpt.i906.my/api/prayer/$location';
GetStorage().write(kStoredApiPrayerCall, url);
final response = await _provider.get(url);
Uri uri = Uri.parse('https://mpt.i906.my/api/prayer/$location');
GetStorage().write(kStoredApiPrayerCall, uri);
final response = await _provider.get(uri);
return Mpti906PrayerModel.fromJson(response);
}
}
4 changes: 2 additions & 2 deletions lib/views/Settings part/AboutPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ class AboutAppPage extends StatelessWidget {
Card(
child: ListTile(
title: Text(
'Release Notes',
'GitHub',
textAlign: TextAlign.center,
),
onTap: () {
LaunchUrl.normalLaunchUrl(url: kReleaseNotesLink);
LaunchUrl.normalLaunchUrl(url: kGithubRepoLink);
},
),
),
Expand Down
83 changes: 38 additions & 45 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0"
convert:
dependency: transitive
description:
name: convert
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
crypto:
dependency: transitive
description:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.0"
version: "3.0.1"
fake_async:
dependency: transitive
description:
Expand All @@ -77,14 +70,14 @@ packages:
name: ffi
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
version: "1.0.0"
file:
dependency: transitive
description:
name: file
url: "https://pub.dartlang.org"
source: hosted
version: "6.1.0"
version: "6.1.1"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -96,14 +89,14 @@ packages:
name: flutter_spinkit
url: "https://pub.dartlang.org"
source: hosted
version: "4.1.2+1"
version: "5.0.0"
flutter_svg:
dependency: "direct main"
description:
name: flutter_svg
url: "https://pub.dartlang.org"
source: hosted
version: "0.19.3"
version: "0.22.0"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -120,65 +113,65 @@ packages:
name: fluttertoast
url: "https://pub.dartlang.org"
source: hosted
version: "7.1.8"
version: "8.0.7"
font_awesome_flutter:
dependency: "direct main"
description:
name: font_awesome_flutter
url: "https://pub.dartlang.org"
source: hosted
version: "8.11.0"
version: "9.0.0"
get:
dependency: "direct main"
description:
name: get
url: "https://pub.dartlang.org"
source: hosted
version: "3.25.6"
version: "4.1.4"
get_storage:
dependency: "direct main"
description:
name: get_storage
url: "https://pub.dartlang.org"
source: hosted
version: "1.4.0"
version: "2.0.2"
google_fonts:
dependency: "direct main"
description:
name: google_fonts
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.2"
version: "2.1.0"
hijri:
dependency: "direct main"
description:
path: "."
ref: HEAD
resolved-ref: fd01c7dc88cf1f29edbd4cf9d992d1eb17d969c3
resolved-ref: "86cc31daab46e6e9b15a0580521ea53942568333"
url: "https://github.com/iqfareez/hijri_date.git"
source: git
version: "3.0.0"
version: "3.0.1"
http:
dependency: "direct main"
description:
name: http
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.2"
version: "0.13.3"
http_parser:
dependency: transitive
description:
name: http_parser
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.4"
version: "4.0.0"
intl:
dependency: "direct main"
description:
name: intl
url: "https://pub.dartlang.org"
source: hosted
version: "0.16.1"
version: "0.17.0"
js:
dependency: transitive
description:
Expand Down Expand Up @@ -220,63 +213,63 @@ packages:
name: path_drawing
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.1+1"
version: "0.5.1"
path_parsing:
dependency: transitive
description:
name: path_parsing
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4"
version: "0.2.1"
path_provider:
dependency: transitive
description:
name: path_provider
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.27"
version: "2.0.1"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+2"
version: "2.0.0"
path_provider_macos:
dependency: transitive
description:
name: path_provider_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.4+8"
version: "2.0.0"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.4"
version: "2.0.1"
path_provider_windows:
dependency: transitive
description:
name: path_provider_windows
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.4+3"
version: "2.0.1"
pedantic:
dependency: transitive
description:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.10.0"
version: "1.11.0"
petitparser:
dependency: transitive
description:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.0"
version: "4.1.0"
platform:
dependency: transitive
description:
Expand All @@ -290,21 +283,21 @@ packages:
name: plugin_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.3"
version: "2.0.0"
process:
dependency: transitive
description:
name: process
url: "https://pub.dartlang.org"
source: hosted
version: "4.1.0"
version: "4.2.1"
provider:
dependency: "direct main"
description:
name: provider
url: "https://pub.dartlang.org"
source: hosted
version: "4.3.3"
version: "5.0.0"
sky_engine:
dependency: transitive
description: flutter
Expand Down Expand Up @@ -351,7 +344,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.3.0"
typed_data:
dependency: transitive
description:
Expand All @@ -365,42 +358,42 @@ packages:
name: url_launcher
url: "https://pub.dartlang.org"
source: hosted
version: "5.7.10"
version: "6.0.4"
url_launcher_linux:
dependency: transitive
description:
name: url_launcher_linux
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+4"
version: "2.0.0"
url_launcher_macos:
dependency: transitive
description:
name: url_launcher_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+9"
version: "2.0.0"
url_launcher_platform_interface:
dependency: transitive
description:
name: url_launcher_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.9"
version: "2.0.3"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.5+3"
version: "2.0.0"
url_launcher_windows:
dependency: transitive
description:
name: url_launcher_windows
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+3"
version: "2.0.0"
vector_math:
dependency: transitive
description:
Expand All @@ -414,21 +407,21 @@ packages:
name: win32
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.4+1"
version: "2.0.5"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
version: "0.2.0"
xml:
dependency: transitive
description:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "4.5.1"
version: "5.1.1"
sdks:
dart: ">=2.12.0 <3.0.0"
flutter: ">=1.24.0-10.1.pre"
flutter: ">=2.0.0"
Loading

0 comments on commit b7b8c4b

Please sign in to comment.