Skip to content

Commit fc49cf9

Browse files
committed
[fix] Add more docs comments, more description in pubspec.yaml, 0.1.0+1
1 parent ef804a8 commit fc49cf9

File tree

6 files changed

+15
-2
lines changed

6 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
[English](./CHANGELOG_en.md)
44

5+
## [0.1.0+1]
6+
7+
* 增加一些 docs comment,修改 pubspec.yaml 的描述信息
8+
59
## [0.1.0]
610

711
* 开源

CHANGELOG_en.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

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

5+
## [0.1.0+1]
6+
7+
* Add some docs comments, modify description in pubspec.yaml.
8+
59
## [0.1.0]
610

711
* Open source.

lib/core/plugin_manager.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class PluginManager {
1717

1818
PluginManager._();
1919

20+
/// Register a single [plugin]
2021
void register(Pluggable plugin) {
2122
if (plugin.name == null ||
2223
plugin.name.isEmpty ||
@@ -26,6 +27,7 @@ class PluginManager {
2627
_pluginsMap[plugin.name] = plugin;
2728
}
2829

30+
/// Register multiple [plugins]
2931
void registerAll(List<Pluggable> plugins) {
3032
for (final plugin in plugins) {
3133
assert(plugin is Pluggable);

lib/core/ui/root_widget.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const defaultLocalizationsDelegates = const [
2323
GlobalCupertinoLocalizations.delegate,
2424
];
2525

26+
/// Wrap your App widget. If [enable] is false, the function will return [child].
2627
Widget injectUMEWidget({
2728
@required Widget child,
2829
@required bool enable,

lib/util/store_mixin.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import 'package:shared_preferences/shared_preferences.dart';
33
mixin StoreMixin {
44
Future<SharedPreferences> _sharedPref = SharedPreferences.getInstance();
55

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

26+
/// Fetch a object by the [key]
2527
Future<dynamic> fetchWithKey(String key) async {
2628
final SharedPreferences prefs = await _sharedPref;
2729
final savedKey = 'ume_${runtimeType.toString}_$key';

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_ume
2-
description: UME is an in-app debug kits platform for Flutter apps.
3-
version: 0.1.0
2+
description: UME is an in-app debug kits platform for Flutter apps. Produced by Flutter Infra team of ByteDance.
3+
version: 0.1.0+1
44
homepage: https://github.com/bytedance/flutter_ume
55

66
environment:

0 commit comments

Comments
 (0)