Skip to content

Commit

Permalink
[fix] Add more docs comments, more description in pubspec.yaml, 0.1.0+1
Browse files Browse the repository at this point in the history
  • Loading branch information
smileShirely committed Jul 21, 2021
1 parent ef804a8 commit fc49cf9
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

[English](./CHANGELOG_en.md)

## [0.1.0+1]

* 增加一些 docs comment,修改 pubspec.yaml 的描述信息

## [0.1.0]

* 开源
4 changes: 4 additions & 0 deletions CHANGELOG_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

[简体中文](./CHANGELOG.md)

## [0.1.0+1]

* Add some docs comments, modify description in pubspec.yaml.

## [0.1.0]

* Open source.
2 changes: 2 additions & 0 deletions lib/core/plugin_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class PluginManager {

PluginManager._();

/// Register a single [plugin]
void register(Pluggable plugin) {
if (plugin.name == null ||
plugin.name.isEmpty ||
Expand All @@ -26,6 +27,7 @@ class PluginManager {
_pluginsMap[plugin.name] = plugin;
}

/// Register multiple [plugins]
void registerAll(List<Pluggable> plugins) {
for (final plugin in plugins) {
assert(plugin is Pluggable);
Expand Down
1 change: 1 addition & 0 deletions lib/core/ui/root_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const defaultLocalizationsDelegates = const [
GlobalCupertinoLocalizations.delegate,
];

/// Wrap your App widget. If [enable] is false, the function will return [child].
Widget injectUMEWidget({
@required Widget child,
@required bool enable,
Expand Down
2 changes: 2 additions & 0 deletions lib/util/store_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:shared_preferences/shared_preferences.dart';
mixin StoreMixin {
Future<SharedPreferences> _sharedPref = SharedPreferences.getInstance();

/// Store a object with the [key]. The [obj] must be one of [bool], [double], [int], [String] or [List]<String>.
Future<void> storeWithKey(String key, dynamic obj) async {
if (obj == null) {
return;
Expand All @@ -22,6 +23,7 @@ mixin StoreMixin {
}
}

/// Fetch a object by the [key]
Future<dynamic> fetchWithKey(String key) async {
final SharedPreferences prefs = await _sharedPref;
final savedKey = 'ume_${runtimeType.toString}_$key';
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_ume
description: UME is an in-app debug kits platform for Flutter apps.
version: 0.1.0
description: UME is an in-app debug kits platform for Flutter apps. Produced by Flutter Infra team of ByteDance.
version: 0.1.0+1
homepage: https://github.com/bytedance/flutter_ume

environment:
Expand Down

0 comments on commit fc49cf9

Please sign in to comment.