rangers_applog_flutter_plugin 1.0.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 46

RangersAppLogFlutterPlugin #

RangersAppLog的Flutter插件。支持埋点上报。

集成 #

在项目中添加安装插件 #

pubspec.yaml 中添加依赖

 dependencies:
 	rangers_applog_flutter_plugin: ^1.0.1

执行 flutter packages get 命令安装插件

 flutter packages get  

iOS 端 #

依赖RangersAppLog并初始化SDK。

如果pod install失败,在Podfile中添加下面的code

source 'https://github.com/CocoaPods/Specs.git'

pre_install do |installer|
  # workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
  Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end

初始化方式请参考RangersAppLog

检查是否有注册RangersApplogFlutterPlugin的代码

#import "GeneratedPluginRegistrant.h"
#import <rangers_applog_flutter_plugin/RangersApplogFlutterPlugin.h>

@implementation GeneratedPluginRegistrant

+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry {

	/// 
  [RangersApplogFlutterPlugin registerWithRegistrar:[registry registrarForPlugin:@"RangersApplogFlutterPlugin"]];
}

@end

Android 端 #

尚未支持,待后续更新。

Flutter 中使用插件 #

import插件

import 'package: rangers_applog_flutter_plugin/rangers_applog_flutter_plugin.dart';

使用Flutter plugin上报

 RangersApplogFlutterPlugin.eventV3("appid", "test_event", {"key":"value"});

其他更多接口请参考Demo和plugin注释。

1.0.1 #

  • 修改iOS SDK依赖版本号

1.0.0 #

废弃版本号

  • 增加日志上报接口
  • 增加获取基本属性接口

example/README.md

rangers_applog_flutter_plugin_example #

Demonstrates how to use the rangers_applog_flutter_plugin plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

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

Use this package as a library

1. Depend on it

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


dependencies:
  rangers_applog_flutter_plugin: ^1.0.1

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:rangers_applog_flutter_plugin/rangers_applog_flutter_plugin.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
46
Learn more about scoring.

We analyzed this package on Dec 9, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.6

Health suggestions

Format lib/rangers_applog_flutter_plugin.dart.

Run flutter format to format lib/rangers_applog_flutter_plugin.dart.

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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test