Skip to content

Commit d4b4532

Browse files
committed
Add initial plugin
1 parent 82c3956 commit d4b4532

File tree

81 files changed

+2070
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+2070
-9
lines changed

.editorconfig

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# EditorConfig is awesome:http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Don't use tabs for indentation.
7+
[*]
8+
indent_style = space
9+
# (Please don't specify an indent_size here; that has too many unintended consequences.)
10+
11+
# Code files
12+
[*.{cs,csx,vb,vbx}]
13+
indent_size = 4
14+
insert_final_newline = true
15+
charset = utf-8-bom
16+
17+
# Xml project files
18+
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
19+
indent_size = 2
20+
21+
# Xml config files
22+
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
23+
indent_size = 2
24+
25+
# JSON files
26+
[*.json]
27+
indent_size = 2
28+
29+
# Dotnet code style settings:
30+
[*.{cs,vb}]
31+
# Sort using and Import directives with System.* appearing first
32+
dotnet_sort_system_directives_first = true
33+
# Avoid "this." and "Me." if not necessary
34+
dotnet_style_qualification_for_field = false:suggestion
35+
dotnet_style_qualification_for_property = false:suggestion
36+
dotnet_style_qualification_for_method = false:suggestion
37+
dotnet_style_qualification_for_event = false:suggestion
38+
39+
# Use language keywords instead of framework type names for type references
40+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
41+
dotnet_style_predefined_type_for_member_access = true:suggestion
42+
43+
# Suggest more modern language features when available
44+
dotnet_style_object_initializer = true:suggestion
45+
dotnet_style_collection_initializer = true:suggestion
46+
dotnet_style_coalesce_expression = true:suggestion
47+
dotnet_style_null_propagation = true:suggestion
48+
dotnet_style_explicit_tuple_names = true:suggestion
49+
50+
# CSharp code style settings:
51+
[*.cs]
52+
# Prefer "var" everywhere
53+
csharp_style_var_for_built_in_types = true:suggestion
54+
csharp_style_var_when_type_is_apparent = true:suggestion
55+
csharp_style_var_elsewhere = true:suggestion
56+
57+
# Prefer method-like constructs to have a block body
58+
csharp_style_expression_bodied_methods = false:none
59+
csharp_style_expression_bodied_constructors = false:none
60+
csharp_style_expression_bodied_operators = false:none
61+
62+
# Prefer property-like constructs to have an expression-body
63+
csharp_style_expression_bodied_properties = true:none
64+
csharp_style_expression_bodied_indexers = true:none
65+
csharp_style_expression_bodied_accessors = true:none
66+
67+
# Suggest more modern language features when available
68+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
69+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
70+
csharp_style_inlined_variable_declaration = true:suggestion
71+
csharp_style_throw_expression = true:suggestion
72+
csharp_style_conditional_delegate_call = true:suggestion
73+
74+
# Newline settings
75+
csharp_new_line_before_open_brace = all
76+
csharp_new_line_before_else = true
77+
csharp_new_line_before_catch = true
78+
csharp_new_line_before_finally = true
79+
csharp_new_line_before_members_in_object_initializers = true
80+
csharp_new_line_before_members_in_anonymous_types = true

.gitattributes

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This file is understood by git 1.7.2+.
2+
3+
# Windows specific files should always be crlf on checkout
4+
*.bat text eol=crlf
5+
*.cmd text eol=crlf
6+
*.ps1 text eol=crlf
7+
8+
# Check out the following as ln always for osx/linux/cygwin
9+
*.sh text eol=lf
10+
11+
# Opt in the following types to always normalize line endings
12+
# on checkin and always use native endings on checkout.
13+
*.config text
14+
*.cs text diff=csharp
15+
*.csproj text
16+
*.md text
17+
*.msbuild text
18+
*.nuspec text
19+
*.pp text
20+
*.ps1 text
21+
*.sln text
22+
*.tt text
23+
*.txt text
24+
*.xaml text
25+
*.xml text
26+
27+
# Binary files
28+
*.bmp binary
29+
*.jpeg binary
30+
*.jpg binary
31+
*.nupkg binary
32+
*.png binary
33+
*.sdf binary
34+
35+
*.java linguist-language=Dart
36+
*.swift linguist-language=Dart

.gitignore

+90-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,96 @@
1-
# See https://www.dartlang.org/guides/libraries/private-files
1+
# Miscellaneous
2+
*.class
3+
*.lock
4+
*.log
5+
*.pyc
6+
*.swp
7+
.DS_Store
8+
.atom/
9+
.buildlog/
10+
.history
11+
.project
12+
.svn/
13+
bin/
214

3-
# Files and directories created by pub
15+
# Ignore generated code files
16+
*.g.*
17+
18+
# IntelliJ related
19+
*.iml
20+
*.ipr
21+
*.iws
22+
.idea/
23+
24+
# Android Studio related
25+
android/.classpath
26+
android/.settings/
27+
28+
# Visual Studio Code related
29+
.vscode/
30+
31+
# Flutter repo-specific
32+
/bin/cache/
33+
/bin/mingit/
34+
/dev/benchmarks/mega_gallery/
35+
/dev/bots/.recipe_deps
36+
/dev/bots/android_tools/
37+
/dev/docs/doc/
38+
/dev/docs/lib/
39+
/dev/docs/pubspec.yaml
40+
/packages/flutter/coverage/
41+
version
42+
43+
# Flutter/Dart/Pub related
44+
**/doc/api/
445
.dart_tool/
46+
.flutter-plugins
547
.packages
48+
.pub-cache/
649
.pub/
750
build/
8-
# If you're building an application, you may want to check-in your pubspec.lock
9-
pubspec.lock
51+
flutter_*.png
52+
linked_*.ds
53+
unlinked.ds
54+
unlinked_spec.ds
55+
56+
# Android related
57+
**/android/**/gradle-wrapper.jar
58+
**/android/.gradle
59+
**/android/captures/
60+
**/android/gradlew
61+
**/android/gradlew.bat
62+
**/android/local.properties
63+
**/android/**/GeneratedPluginRegistrant.java
64+
65+
# iOS/XCode related
66+
**/ios/**/*.mode1v3
67+
**/ios/**/*.mode2v3
68+
**/ios/**/*.moved-aside
69+
**/ios/**/*.pbxuser
70+
**/ios/**/*.perspectivev3
71+
**/ios/**/*sync/
72+
**/ios/**/.sconsign.dblite
73+
**/ios/**/.tags*
74+
**/ios/**/.vagrant/
75+
**/ios/**/DerivedData/
76+
**/ios/**/Icon?
77+
**/ios/**/Pods/
78+
**/ios/**/.symlinks/
79+
**/ios/**/profile
80+
**/ios/**/xcuserdata
81+
**/ios/.generated/
82+
**/ios/Flutter/App.framework
83+
**/ios/Flutter/Flutter.framework
84+
**/ios/Flutter/Generated.xcconfig
85+
**/ios/Flutter/app.flx
86+
**/ios/Flutter/app.zip
87+
**/ios/Flutter/flutter_assets/
88+
**/ios/ServiceDefinitions.json
89+
**/ios/Runner/GeneratedPluginRegistrant.*
1090

11-
# Directory created by dartdoc
12-
# If you don't generate documentation locally you can remove this line.
13-
doc/api/
91+
# Exceptions to above rules.
92+
!**/ios/**/default.mode1v3
93+
!**/ios/**/default.mode2v3
94+
!**/ios/**/default.pbxuser
95+
!**/ios/**/default.perspectivev3
96+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

.travis.yml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
matrix:
2+
include:
3+
# Job 1) Run analyzer
4+
- os: linux
5+
env:
6+
- SHARD=Analyze
7+
sudo: false
8+
addons:
9+
apt:
10+
# Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
11+
sources:
12+
- ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
13+
packages:
14+
- libstdc++6
15+
- fonts-droid
16+
before_script:
17+
- git clone https://github.com/flutter/flutter.git $HOME/flutter
18+
- export PATH=$HOME/flutter/bin:$HOME/flutter/bin/cache/dart-sdk/bin:$PATH
19+
- flutter doctor
20+
script:
21+
- flutter analyze
22+
# Job 2) Build the example binary for Android (APK)
23+
- os: linux
24+
env:
25+
- SHARD="Build example apks"
26+
jdk: oraclejdk8
27+
sudo: false
28+
addons:
29+
apt:
30+
# Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
31+
sources:
32+
- ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
33+
packages:
34+
- lib32stdc++6 # https://github.com/flutter/flutter/issues/6207
35+
- libstdc++6
36+
- fonts-droid
37+
before_script:
38+
- ./scripts/before_build_apks.sh
39+
- export ANDROID_HOME=$HOME/android-sdk
40+
- export PATH=$HOME/flutter/bin:$HOME/flutter/bin/cache/dart-sdk/bin:$PATH
41+
script:
42+
- cd ./example
43+
- flutter build apk
44+
# Job 2) Build the example binary for iOS (IPA)
45+
- os: osx
46+
env:
47+
- SHARD="Build example ipas"
48+
language: generic
49+
osx_image: xcode9.3
50+
before_script:
51+
- ./scripts/before_build_ipas.sh
52+
- export PATH=$HOME/flutter/bin:$HOME/flutter/bin/cache/dart-sdk/bin:$PATH
53+
script:
54+
- cd ./example
55+
- flutter build ios --no-codesign
56+
cache:
57+
directories:
58+
- $HOME/.pub-cache

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.0.1
2+
3+
* TODO: Describe initial release.

CODE_OF_CONDUCT.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [[email protected]](mailto:[email protected]). All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at [http://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/

0 commit comments

Comments
 (0)