leancloud_storage 0.1.4

  • Readme
  • Changelog
  • Installing
  • 68

leancloud_storage #

A new Flutter package project.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

[0.1.4] - 版本更新 #

  • 修复批量删除的 bug
  • 修复地理坐标经度 key 的 bug

[0.1.3] - 版本更新 #

  • 支持缓存查询(iOS/Android),用法如下:
// 初始化
LeanCloud.initialize( 'xxx', 'yyy',  server: 'https://zzz.com', queryCache: new LCQueryCache());

// 查询
List<LCObject> list = await query.find(cachePolicy: CachePolicy.networkElseCache);

[0.1.2] - 版本更新 #

  • 支持 iOS/Android 环境下保存登录用户数据
  • 重构获取当前用户接口为异步方法
LCUser currentUser = await LCUser.getCurrent();

[0.1.1] - 版本更新 #

  • 完善时间,时区相关实现
  • 完善 Geo 相关接口和实现
  • 支持正则查询
  • 增加 User-Agent 统计
  • 完善单元测试,覆盖了 79.9%

[0.1.0] - 基础版本 #

[0.0.6] - test #

[0.0.5] - test #

[0.0.4] - test #

[0.0.3] - test #

[0.0.2] - 调整依赖库版本 #

[0.0.1] - test #

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  leancloud_storage: ^0.1.4

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:leancloud_storage/internal/codec/lc_decoder.dart';
import 'package:leancloud_storage/internal/codec/lc_encoder.dart';
import 'package:leancloud_storage/internal/file/lc_aws_uploader.dart';
import 'package:leancloud_storage/internal/file/lc_mime_type_map.dart';
import 'package:leancloud_storage/internal/file/lc_qiniu_uploader.dart';
import 'package:leancloud_storage/internal/http/lc_app_router.dart';
import 'package:leancloud_storage/internal/http/lc_app_server.dart';
import 'package:leancloud_storage/internal/http/lc_http_client.dart';
import 'package:leancloud_storage/internal/object/lc_batch.dart';
import 'package:leancloud_storage/internal/object/lc_object_data.dart';
import 'package:leancloud_storage/internal/object/lc_subclass_info.dart';
import 'package:leancloud_storage/internal/operation/lc_add_operation.dart';
import 'package:leancloud_storage/internal/operation/lc_add_relation_operation.dart';
import 'package:leancloud_storage/internal/operation/lc_add_unique_operation.dart';
import 'package:leancloud_storage/internal/operation/lc_decrement_operation.dart';
import 'package:leancloud_storage/internal/operation/lc_delete_operation.dart';
import 'package:leancloud_storage/internal/operation/lc_increment_operation.dart';
import 'package:leancloud_storage/internal/operation/lc_operation.dart';
import 'package:leancloud_storage/internal/operation/lc_remove_operation.dart';
import 'package:leancloud_storage/internal/operation/lc_remove_relation_operation.dart';
import 'package:leancloud_storage/internal/operation/lc_set_operation.dart';
import 'package:leancloud_storage/internal/query/lc_compositional_condition.dart';
import 'package:leancloud_storage/internal/query/lc_equal_condition.dart';
import 'package:leancloud_storage/internal/query/lc_operation_condition.dart';
import 'package:leancloud_storage/internal/query/lc_query_condition.dart';
import 'package:leancloud_storage/internal/query/lc_related_condition.dart';
import 'package:leancloud_storage/internal/utils/lc_utils.dart';
import 'package:leancloud_storage/internal/utils/lc_uuid.dart';
import 'package:leancloud_storage/lc_acl.dart';
import 'package:leancloud_storage/lc_cloud.dart';
import 'package:leancloud_storage/lc_exception.dart';
import 'package:leancloud_storage/lc_file.dart';
import 'package:leancloud_storage/lc_geo_point.dart';
import 'package:leancloud_storage/lc_logger.dart';
import 'package:leancloud_storage/lc_object.dart';
import 'package:leancloud_storage/lc_query.dart';
import 'package:leancloud_storage/lc_query_cache.dart';
import 'package:leancloud_storage/lc_relation.dart';
import 'package:leancloud_storage/lc_role.dart';
import 'package:leancloud_storage/lc_user.dart';
import 'package:leancloud_storage/lc_user_auth_data_login_option.dart';
import 'package:leancloud_storage/leancloud.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
49
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
68
Learn more about scoring.

We analyzed this package on Feb 26, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.8

Maintenance suggestions

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and leancloud_storage.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
convert ^2.1.1 2.1.1
crypto ^2.1.3 2.1.4
dio ^3.0.8 3.0.9
dio_http_cache ^0.2.5 0.2.5
flutter 0.0.0
shared_preferences ^0.5.6+1 0.5.6+2
Transitive dependencies
_fe_analyzer_shared 1.0.3
analyzer 0.39.4
args 1.5.2
async 2.4.0
build 1.2.2
build_config 0.4.2
charcode 1.1.3
checked_yaml 1.0.2
collection 1.14.11 1.14.12
csslib 0.16.1
dart_style 1.3.3
flutter_web_plugins 0.0.0
glob 1.2.0
html 0.14.0+3
http_parser 3.1.3
js 0.6.1+1
json_annotation 3.0.1
json_serializable 3.2.5
logging 0.11.4
matcher 0.12.6
meta 1.1.8
node_interop 1.0.3
node_io 1.0.1+2
package_config 1.9.1
path 1.6.4
pedantic 1.9.0
pub_semver 1.4.3
pubspec_parse 0.1.5
quiver 2.1.2+1
shared_preferences_macos 0.0.1+6
shared_preferences_platform_interface 1.0.3
shared_preferences_web 0.1.2+4
sky_engine 0.0.99
source_gen 0.9.5
source_span 1.6.0
sqflite 1.2.1
stack_trace 1.9.3
string_scanner 1.0.5
synchronized 2.2.0
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
watcher 0.9.7+13
yaml 2.2.0
Dev dependencies
flutter_test