Skip to content

Commit

Permalink
1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
haolun committed Aug 11, 2023
1 parent 5d32a34 commit b208271
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 134 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Change Log

## [v0.1.6](https://github.com/haolun1996/baseX/releases/tag/0.1.6) - 2023-07-31
- Remove
- Remove all firebase related

- TODO
- API Caching
- Endpoint Changing Method
- Check Permission for Android(12/13)
- Social Login

<br />

***
<br />

## [v0.1.5](https://github.com/haolun1996/baseX/releases/tag/0.1.5) - 2023-07-31
- Bug Fixes
- check page [runtimeType](https://github.com/haolun1996/baseX/blob/a2701d8b000555ea8969b30182bdecc299600b7a/lib/Core/x_base_widget.dart#L108C5-L122C1) is not integer/double/string/bool
Expand Down
121 changes: 0 additions & 121 deletions lib/Core/firebase_notification_controller.dart

This file was deleted.

2 changes: 0 additions & 2 deletions lib/Core/index.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,3 @@ export 'x_navigation.dart'
getController;
export 'x_logger.dart' show XLogger;
export 'x_share_pref.dart' show BaseXSharePref, X;

export 'firebase_notification_controller.dart';
7 changes: 0 additions & 7 deletions lib/Core/x_get_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ XLangController? defaultLangController;
/// * [staginBaseUrl] => Set staging base url. Required if currentEnv is staging
/// * [allowOrientationList] => Set allowed Orientation List
/// * [onFailed] => Set Global onFailed
/// * [firebaseNotificationController] => Enable FCM, will disable function if no object being pass
/// * [getPages] => Register all page route with binding (if any)
/// * [initialBinding] => Set Global Binding
/// * [additionalFunction] => Add additional function before runEtcApp
Expand All @@ -45,7 +44,6 @@ void runXApp<T extends XLabel, K extends XLanguage>({
bool? required200,
Duration timeOutDurationInSecond = timeoutDuration,
List<DeviceOrientation> allowOrientationList = const [DeviceOrientation.portraitUp],
FirebaseNotificationController? firebaseNotificationController,
DefaultBaseConstant? constantConfig,
Function? additionalFunction,
AddtionalWidget? additionalWidget,
Expand All @@ -55,8 +53,6 @@ void runXApp<T extends XLabel, K extends XLanguage>({
//Check required field
// assert(!(appLanguage != null && !requireSharePref),
// 'Required Share Preference to enable App Language');
// assert(!(firebaseNotificationController != null && !requireSharePref),
// 'Required Share Preference to enable Firebase Notification');
assert((Uri.tryParse(staginBaseUrl)?.isAbsolute ?? false), 'Please enter a valid staging url');
assert((Uri.tryParse(liveBaseUrl)?.isAbsolute ?? false), 'Please enter a valid live url');

Expand Down Expand Up @@ -87,9 +83,6 @@ void runXApp<T extends XLabel, K extends XLanguage>({
//Set Gloabal onFailed
baseConstant.onFailed = onFailed;

//Initialize Firebase Notification Controller if Exists
firebaseNotificationController?.initialize();

//Additional Function required before run app
if (additionalFunction != null) {
additionalFunction();
Expand Down
1 change: 0 additions & 1 deletion lib/base_x.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ export 'Core/index.dart';
export 'model/index.dart';
export 'custom_error/index.dart';
export 'api_service/index.dart';
export 'package:firebase_messaging/firebase_messaging.dart';
export 'x_widget/index.dart';
export 'controller/index.dart';
4 changes: 1 addition & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: BaseX Running With Flutter 3.10.x

publish_to: "none"

version: 0.1.5
version: 0.1.6

environment:
sdk: '>=3.0.0 <4.0.0'
Expand All @@ -20,8 +20,6 @@ dependencies:
device_info_plus: ^9.0.2
package_info_plus: ^4.0.2
get: ^4.6.5
firebase_core: ^2.15.0
firebase_messaging: ^14.6.5
flutter_local_notifications: ^14.1.2
intl: ^0.18.0
path_provider: ^2.0.15
Expand Down

0 comments on commit b208271

Please sign in to comment.