Skip to content

Commit 42b20b7

Browse files
author
xulinfeng
committed
Initial commit.
1 parent daeb802 commit 42b20b7

File tree

106 files changed

+7305
-18
lines changed

Some content is hidden

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

106 files changed

+7305
-18
lines changed

.github/workflows/dart.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Flutter Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: macos-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
- uses: subosito/flutter-action@v1
15+
with:
16+
channel: 'stable'
17+
- run: flutter pub get
18+
- run: flutter test
19+
- run: cd ./example && flutter build ios --simulator -t lib/ios.dart && flutter build apk -t lib/android.dart

.github/workflows/publish.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- v*.*
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: subosito/flutter-action@v1
13+
with:
14+
channel: 'stable'
15+
- uses: modool/flutter-package-publisher@master
16+
with:
17+
credentialJson: ${{ secrets.CREDENTIAL_JSON }}

.gitignore

Lines changed: 77 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,82 @@
1-
# See https://www.dartlang.org/guides/libraries/private-files
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
211

3-
# Files and directories created by pub
12+
# blutter
13+
blutter_tools
14+
15+
# IntelliJ related
16+
*.iml
17+
*.ipr
18+
*.iws
19+
.idea
20+
21+
# Visual Studio Code related
22+
.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
**/doc/api/
426
.dart_tool/
27+
.flutter-plugins
528
.packages
29+
.pub-cache/
30+
.pub/
31+
.flutter-plugins-dependencies
32+
633
build/
7-
# If you're building an application, you may want to check-in your pubspec.lock
8-
pubspec.lock
34+
coverage/
35+
artifacts/
36+
blutter_tools/
937

10-
# Directory created by dartdoc
11-
# If you don't generate documentation locally you can remove this line.
12-
doc/api/
13-
14-
# Avoid committing generated Javascript files:
15-
*.dart.js
16-
*.info.json # Produced by the --dump-info flag.
17-
*.js # When generated by dart2js. Don't specify *.js if your
18-
# project includes source files written in JavaScript.
19-
*.js_
20-
*.js.deps
21-
*.js.map
38+
# Android related
39+
**/android/**/gradle-wrapper.jar
40+
**/android/.gradle
41+
**/android/captures/
42+
**/android/gradlew
43+
**/android/gradlew.bat
44+
**/android/local.properties
45+
**/android/**/GeneratedPluginRegistrant.java
46+
**/android/**/gen/
47+
48+
# iOS/XCode related
49+
**/ios/**/*.mode1v3
50+
**/ios/**/*.mode2v3
51+
**/ios/**/*.moved-aside
52+
**/ios/**/*.pbxuser
53+
**/ios/**/*.perspectivev3
54+
**/ios/**/*sync/
55+
**/ios/**/.sconsign.dblite
56+
**/ios/**/.tags*
57+
**/ios/**/.vagrant/
58+
**/ios/**/DerivedData/
59+
**/ios/**/Icon?
60+
**/ios/**/Pods/
61+
**/ios/**/.symlinks/
62+
**/ios/**/profile
63+
**/ios/**/xcuserdata
64+
**/ios/.generated/
65+
**/ios/Flutter/App.framework
66+
**/ios/Flutter/Flutter.framework
67+
**/ios/Flutter/Generated.xcconfig
68+
**/ios/Flutter/app.flx
69+
**/ios/Flutter/app.zip
70+
**/ios/Flutter/flutter_assets/
71+
**/ios/ServiceDefinitions.json
72+
**/ios/Runner/GeneratedPluginRegistrant.*
73+
74+
# Exceptions to above rules.
75+
!**/ios/**/default.mode1v3
76+
!**/ios/**/default.mode2v3
77+
!**/ios/**/default.pbxuser
78+
!**/ios/**/default.perspectivev3
79+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
80+
81+
pubspec.lock
82+
!**/example/pubspec.lock

.idea/flutter_native.iml

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.metadata

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: 20e59316b8b8474554b38493b8ca888794b0234a
8+
channel: unknown
9+
10+
project_type: package

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.0.1
2+
3+
* Initial release.

CONTRIBUTING.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
Contributing to the Flutter Object Cache Package
2+
=============================================
3+
4+
What you will need
5+
------------------
6+
7+
* A Linux, Mac OS X, or Windows machine (note: to run and compile iOS specific parts you'll need access to a Mac OS X machine);
8+
* git (used for source version control, installation instruction can be found [here](https://git-scm.com/));
9+
* The Flutter SDK (installation instructions can be found [here](https://flutter.io/get-started/install/));
10+
* A personal GitHub account (if you don't have one, you can sign-up for free [here](https://github.com/))
11+
12+
Setting up your development environment
13+
---------------------------------------
14+
15+
* Fork `https://github.com/modool/flutter_object_cache` into your own GitHub account. If you already have a fork and moving to a new computer, make sure you update you fork.
16+
* If you haven't configured your machine with an SSH key that's known to github, then
17+
follow [GitHub's directions](https://help.github.com/articles/generating-ssh-keys/)
18+
to generate an SSH key.
19+
* Clone your forked repo on your local development machine: `git clone [email protected]:<your_name_here>/flutter_object_cache.git`
20+
* Change into the `flutter_object_cache` directory: `cd flutter_object_cache`
21+
* Add an upstream to the original repo, so that fetch from the master repository and not your clone: `git remote add upstream [email protected]:Modool/flutter_object_cache.git`
22+
23+
Running the example project
24+
---------------------------
25+
26+
* Change into the example directory: `cd example`
27+
* Run the App: `flutter run`
28+
29+
Contribute
30+
----------
31+
32+
We really appreciate contributions via GitHub pull requests. To contribute take the following steps:
33+
34+
* Make sure you are up to date with the latest code on the master:
35+
* `git fetch upstream`
36+
* `git checkout upstream/develop -b <name_of_your_branch>`
37+
* Apply your changes
38+
* Verify your changes and fix potential warnings/ errors:
39+
* Check formatting: `flutter format .`
40+
* Run static analyses: `flutter analyzes`
41+
* Run unit-tests: `flutter test`
42+
* Commit your changes: `git commit -am "<your informative commit message>"`
43+
* Push changes to your fork: `git push origin <name_of_your_branch>`
44+
45+
Send us your pull request:
46+
47+
* Go to `https://github.com/modool/flutter_object_cache` and click the "Compare & pull request" button.
48+
49+
Please make sure you solved all warnings and errors reported by the static code analyses and that you fill in the full pull request template. Failing to do so will result in us asking you to fix it.

0 commit comments

Comments
 (0)